- From: Takayoshi Kochi <notifications@github.com>
- Date: Thu, 21 Jan 2016 21:42:53 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Friday, 22 January 2016 05:43:22 UTC
In https://github.com/w3c/web-platform-tests/blob/master/shadow-dom/ShadowRoot-interface.html `testStyleSheets()` hits this issue. The test creates a `<div>` and attaches a shadow on it, then appends some `<style>`s in the shadow, and checks `styleSheets.length`. In the test, the shadow host `<div>` is never attached to anything, so these `<style>`s are not connected to the document, thus the `styleSheets.length` could be 0, but the test expects 2. (For here, let's assume "in a Document" in the discussion above means the shadow host is appended to somewhere traversible from the document root.) Clarification needed when style sheets are added to ShadowRoot, 1) at `<style>` is attached in a 'ShadowRoot''s tree (the wpt test assumes this) 2) at its attached `ShadowRoot` is attached in the document tree 2 makes sense in that the timing is `<style>` is effectively applied (i.e. affects actual rendering). --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/56#issuecomment-173818950
Received on Friday, 22 January 2016 05:43:22 UTC