[Webkit-unassigned] [Bug 156235] New: Shadow DOM: :host() From The First Shadow Context Should Not Style All Shadow Context

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 5 08:55:14 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=156235

            Bug ID: 156235
           Summary: Shadow DOM: :host() From The First Shadow Context
                    Should Not Style All Shadow Context
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: koivisto at iki.fi

* SUMMARY
The first “:host()” context in a template seems to dictate the the “host” styles for all shadow context in the document. Quoting draft from here https://drafts.csswg.org/css-scoping/#host-selector (if it is up-to-date),:

“The :host pseudo-class, when evaluated in the context of a shadow tree, matches the shadow tree’s host element. In any other context, it matches nothing.”

* STEPS TO REPRODUCE
1. Open included test-case


* RESULTS
Expected: Host 2 from test case shold have a black border instead of pink.
Actual: Both hosts have pink borders.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160405/dd06ee1c/attachment.html>


More information about the webkit-unassigned mailing list