Style rules defined or imported inside a shadow tree should only allow to nodes in that shadow tree.
<rdar://problem/22727059>
*** Bug 149328 has been marked as a duplicate of this bug. ***
Created attachment 261918 [details] patch
Created attachment 261939 [details] patch
Comment on attachment 261939 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=261939&action=review > Source/WebCore/dom/ShadowRoot.cpp:84 > + // We could share style resolver with shadow roots that have identical style. Should this be a FIXME?
https://trac.webkit.org/r190256
There is a number of tests in platform/mac/TestExpectations that are marked as being tracked by a duplicate of this bug. Please unmark them if they are expected to pass now: webkit.org/b/149328 fast/shadow-dom/css-scoping-shadow-host-rule.html [ ImageOnlyFailure ] webkit.org/b/149328 fast/shadow-dom/css-scoping-shadow-host-functional-rule.html [ ImageOnlyFailure ] webkit.org/b/149328 fast/shadow-dom/css-scoping-shadow-slotted-rule.html [ ImageOnlyFailure ] webkit.org/b/149328 fast/shadow-dom/css-scoping-shadow-slot-display-override.html [ ImageOnlyFailure ] webkit.org/b/149328 fast/shadow-dom/shadow-layout-after-slot-changes.html [ ImageOnlyFailure ]
(In reply to comment #7) > There is a number of tests in platform/mac/TestExpectations that are marked > as being tracked by a duplicate of this bug. Please unmark them if they are > expected to pass now: > > webkit.org/b/149328 fast/shadow-dom/css-scoping-shadow-host-rule.html [ > ImageOnlyFailure ] > webkit.org/b/149328 > fast/shadow-dom/css-scoping-shadow-host-functional-rule.html [ > ImageOnlyFailure ] > webkit.org/b/149328 fast/shadow-dom/css-scoping-shadow-slotted-rule.html [ > ImageOnlyFailure ] > webkit.org/b/149328 > fast/shadow-dom/css-scoping-shadow-slot-display-override.html [ > ImageOnlyFailure ] > webkit.org/b/149328 fast/shadow-dom/shadow-layout-after-slot-changes.html [ > ImageOnlyFailure ] Oh oops, these are tracked by different bugs. Will update soon. Thanks for noticing that.
Done that in https://trac.webkit.org/changeset/190275.