-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define how origin is determined for a constructed stylesheet #18
Comments
All 5 inline issues are migrated to GitHub. WICG#2 Shall we allow asynchronous style sheet parsing? WICG#3 moreStyleSheets needs better name WICG#4 Shall we include added stylesheets in `document.styleSheets`? WICG#5 StyleSheetList will need to define a constructor, accepting a `sequence<StyleSheet>`. WICG#18 Define how origin is determined for a constructed stylesheet
It was proposed before to add a “default” origin, and use an Personally, I find using a dedicated at-rule reasonable. As it was mentioned here, there are reasons to ban using combinators in selectors for stylesheets with a default origin. Without an at-rule wrapping it would be weird to have special limitations on selectors in these stylesheets, unlike anywhere else. |
Unfortunately people are reluctant to add a new cascading origin (esp. people at Apple) so |
This depends on the resolution of WICG/webcomponents#468, and Google will try implementing 2 ways (one for using fake-shadow root, which is "author" origin, and the other for default styles for custom elements which is "user agent" origin). |
Whatever WICG/webcomponents#468 resolves, this depends on where the constructed stylesheet is applied, and construction itself is independent of "origin" definition, as we already removed |
Copied from inline ISSUE 5 in the section "Applying Styles In All Contexts".
By default, the added stylesheet via
.moreStyleSheets
property would have "author" origin, but do we also need other ("user", or "author default") origins?We may have other interfaces to add stylesheets to different origins, or have
CSSStyleSheet
have.origin
property?The text was updated successfully, but these errors were encountered: