vue
vue copied to clipboard
bind style merge not as expected
Version
2.7.14
Reproduction link
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
What he means is that the results of the two operations are inconsistent, but works fine in vue-core
.
This might be a bug.
Right, I misread
can I take this bug and try fixing it?
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
After adding border-bottom