-
Notifications
You must be signed in to change notification settings - Fork 673
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
[css-cascade-6] What is the desired shape of CSSScopeRule? #8626
Comments
Fwiw, I think we should not include the wrapping parentheses so that the returned string is a proper selector, and they should be null if omitted. I don't have much opinion on the names (they seem fine), but I think it's a question worth asking. |
I agree that the names seem fine to me. Other terms that get used for these concepts are 'root', and 'boundary' or 'limit'. |
I'm fine with the names as well. I could think of some different ones, but nothing seems better, and quite a bit seem worse.
Yeah, omit the wrapping parens so the values are just the selectors themselves. The parens are a syntactic necessity for the rule itself, they're not part of the start/end bits. |
Well, wrt the names, I actually suggested |
Does |
Yeah that's a good point, so let's stick with the more generic |
Does this seem like a good candidate for async resolution? I think so. Proposal is:
|
SGTM |
The CSS Working Group just discussed
The full IRC log of that discussion<TabAtkins> miriam: Anders pushed a definition for the CSSSCopeRule, in the ED<TabAtkins> miriam: We didn't ahve a resolution on the details tho, so wanted to clarify it's defined properly <TabAtkins> miriam: Main qs in the thread are terms used for the start and end fo the scope (sometimes called "root" and "lower boudnary"/"scoping limit") <TabAtkins> miriam: In thread we decided start/end were clearest terms, especially if we do sibling scopes - they keep making sense, while upper/lower dont' <TabAtkins> miriam: Another q is what to return if one of the values isn't specified, we suggest null <TabAtkins> miriam: Final q, should the value contain the parens around the selectors? Propose no. <Rossen_> q? <TabAtkins> miriam: So proposal is accept the CSSScopeRule, with the three conclusions outlined above. <fantasai> +1 <bramus> +1 <TabAtkins> Rossen_: Looks like agreement in the thread, anyone have objections? <TabAtkins> RESOLVED: Accept the CSSScopeRule design, with the three changes noted in the thread. |
In #8468 @andruud pushed a spec definition for adding
CSSScopeRule
to CSSOM:As far as I can tell, this change in the spec never had a resolution attached – so bringing it up here to get that resolution. In conversation with @fantasai, she also raised a few questions about the final shape of this rule:
The text was updated successfully, but these errors were encountered: