Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind style merge not as expected #12901

Closed
yeli19950109 opened this issue Dec 15, 2022 · 4 comments
Closed

bind style merge not as expected #12901

yeli19950109 opened this issue Dec 15, 2022 · 4 comments
Labels

Comments

@yeli19950109
Copy link

yeli19950109 commented Dec 15, 2022

Version

2.7.14

Reproduction link

codesandbox.io

Steps to reproduce

click mStyle button twice

What is expected?

show red border-right and blue border-bottom

What is actually happening?

only show red border-right. is not similar as setAttribute but vue3 is similar like setAttribute


is this a bug?

@posva posva closed this as completed Dec 15, 2022
@edison1105
Copy link
Member

edison1105 commented Dec 15, 2022

@posva
What he means is that the results of the two operations are inconsistent, but works fine in vue-core.
This might be a bug.

@posva
Copy link
Member

posva commented Dec 15, 2022

Right, I misread

@posva posva reopened this Dec 15, 2022
@posva posva added the bug label Dec 15, 2022
@ayush-pandey-9
Copy link

can I take this bug and try fixing it?

@ljf1834
Copy link

ljf1834 commented Dec 16, 2022

After the border style is set for the element, the browser will automatically format the style when the border-* style is set. The code is optimized for style reuse, resulting in bugs
image
After adding border-bottom
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants