-
Notifications
You must be signed in to change notification settings - Fork 658
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-contain] "scoped to an element" definition is unused (?) #2845
Comments
My guess was that the definition is provided so that other specs can use it, but I agree it's confusing. I already complained in #2349. |
Correct.
There was an attempt at making it less confusing. Not good enough I guess. Any suggestion? |
If reordering the definitions makes it harder to explain, I would at least separate them, like
And then link directly to "scoped to a sub-tree"
Currently if you click the link you are pointed to "scoped to an element", can be misleading. |
It might also be useful to add something to clarify why we're providing this unused definition -- e.g.:
|
In the style containment spec-text...
https://drafts.csswg.org/css-contain/#containment-style
...there's an explanation of what a "scoped property" is, and how it "has its effects scoped to a particular element or sub-tree." Most of this explanation is about what it means to be scoped to an element vs. scoped to a sub-tree.
However: this distinction doesn't seem to matter, because the spec only uses the "scoped to a sub-tree" behavior:
So the definition of "scoped to an element" seems to be unused, which is a bit confusing.
If it's not going to be used, perhaps it'd be clearer to skip that definition, and dive directly into explaining what it means to scope to a sub-tree, rather than explaining an unused different term first?
(CC @frivoal @tabatkins )
The text was updated successfully, but these errors were encountered: