Repository navigation
Conversation
|
Friendly ping for review @tabatkins |
| 6. Let <var>promise</var> be a promise. | ||
| 7. Wait for loading of <a spec=css-cascade-4>@import</a> rules in <var>sheet</var>. | ||
| * If any of them failed to load, reject <var>promise</var>. | ||
| * If any of them resulted in a resource with a <a spec=html>Content-Type metadata</a> of anything other than `text/css`, reject <var>promise</var> with a {{TypeError}}. |
There was a problem hiding this comment.
<code>text/css</code>
|
To fully resolve #23, should we prevent a constructed style sheet from being added to two documents? |
Under "Using Constructed Stylesheets", there is a line saying a |
Yes, we should make it clear that an exception is thrown if we attempt to assign to Currently it is not obvious if an exception occurs or if such style sheets are silently ignored. |
I see. Added a line detailing |
Adding details on how to use constructed stylesheets to
adoptedStyleSheets, defining a constructor for StyleSheetList and restricting where it can be used for resolving #23.Also adding details on what content-type can @imports inside the sheet can handle (only
text/css) for resolving #14, the URL of the sheet for resolving #10 , and reason of rejecting failed loads.Preview | Diff