Chromium Code Reviews
DescriptionSupport Style Sharing for Shadow DOM V1
Style sharing has been disabled for Shadow DOM v1 slotted
elements, but should be enabled.
There used to be a bug that ::slotted([attr]) rules did
not properly prevent styles from being shared and falsely
shared.
This was because the ::slotted() rule did not match
those elements which should and they were not rejected for
style sharing.
This CL fixes the bug to enable style sharing in Shadow DOM
v1 slotted elements and implement a function to check
if style can be shared between those elements.
BUG=671319
TEST=LayoutTests/shadow-dom/slotted-pseudo-element-shared-style.html
Review-Url: https://codereview.chromium.org/2613213002
Cr-Commit-Position: refs/heads/master@{#443785}
Committed: https://chromium.googlesource.com/chromium/src/+/92740ea13dcbe5af5afcbb84949d142e82ff6c6d
Patch Set 1 : expected failure in shadow-dom/slotted-pseudo-* #Patch Set 2 : fix unit test #Patch Set 3 : (tentative - wip) #Patch Set 4 : improve check #
Total comments: 3
Patch Set 5 : update #
Messages
Total messages: 25 (19 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||