Closed
Bug 1966706
Opened 1 year ago
Closed 1 year ago
Handle nested :has as a result of @scope
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
INVALID
People
(Reporter: dshin, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [at-scope-m2])
May already be handled, but one can do:
@scope(:has(~ .foo)) {
:has(&) .bar { /*...*/ }
}
OTOH this should be fine (Though useless):
@scope(:has(~ .foo)) {
:has(:scope) .bar { /*...*/ }
}
since :scope points to the exact matched element.
| Reporter | ||
Comment 1•1 year ago
|
||
bug 1975531 may make this irrelevant, since & would map to :where(:scope)
See Also: → 1975531
| Reporter | ||
Comment 2•1 year ago
|
||
CSSWG resolution means that this can't happen: https://github.com/w3c/csswg-drafts/issues/9740
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•