Summary: | :matches() shouldn't allow pseudo-elements inside. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Emilio Cobos Álvarez (:emilio) <emilio> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | dino, hi, koivisto, rniwa, simon.fraser |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Emilio Cobos Álvarez (:emilio)
2019-05-23 18:27:35 PDT
Well, I dug through the spec and the spec technically allows (but does not define of course) this grammar. WebKit is also incompatible with other engines for stuff like :host and such. I filed https://github.com/w3c/csswg-drafts/issues/3963. This would have prevented bugs like https://bugs.webkit.org/show_bug.cgi?id=198147 in the first place too. I think we'd be okay with disallowing this. WDYT, Simon / Dean? What about situations like `:matches(::before, ::after)`? For complex selectors, this can "save" a lot of characters. > :matches(::marker, li) {
I'm aware of this, it didn't seem something that would matter in practice.
There is definitely no need to allow :matches(::marker), not sure about other cases.
*** This bug has been marked as a duplicate of bug 206654 *** |