RESOLVED INVALID 199170
2nd selector in the compound selector list in :host pseudo-class like ":host(.class1, .class2) .class3" is not supported
https://bugs.webkit.org/show_bug.cgi?id=199170
Summary 2nd selector in the compound selector list in :host pseudo-class like ":host(...
Tim Guan-tin Chien [:timdream]
Reported 2019-06-24 11:40:03 PDT
Created attachment 372778 [details] test.html Summary: 2nd selector in the compond selector list in :host pseudo-class like ":host(.class1, .class2) .class3" is not supported Steps To Reproduce: 1. Open up test.html 2. Inspect the test. Results: The text should be red. Tested on STP Release 85 (Safari 13.0, WebKit 14608.1.28.1) macOS 10.14.4 (18E226) Notes: If I change the selector to |:host(.class2, .class1) .class3| then the text is red, indicating that the selector is supported but not implemented correctly. === Firefox doesn’t seem to support this yet (https://bugzilla.mozilla.org/show_bug.cgi?id=1561010) and Chrome can parse this test correctly. === Was filed as rdar://52060837
Attachments
test.html (288 bytes, text/html)
2019-06-24 11:40 PDT, Tim Guan-tin Chien [:timdream]
no flags
Anders Hartvoll Ruud
Comment 1 2021-03-04 04:59:03 PST
At some point :host() was indeed supposed to accept a <compound-selector-list>, but this is no longer the case. Only a single <compound-selector> should be supported now. https://drafts.csswg.org/css-scoping/#selectordef-host
Note You need to log in before you can comment on or make changes to this bug.