WebKit Bugzilla
Attachment 372778 Details for
Bug 199170
: 2nd selector in the compound selector list in :host pseudo-class like ":host(.class1, .class2) .class3" is not supported
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
test.html
test.html (text/html), 288 bytes, created by
Tim Guan-tin Chien [:timdream]
on 2019-06-24 11:40:03 PDT
(
hide
)
Description:
test.html
Filename:
MIME Type:
Creator:
Tim Guan-tin Chien [:timdream]
Created:
2019-06-24 11:40:03 PDT
Size:
288 bytes
patch
obsolete
><script> > >window.onload = () => { > var sr = document.body.attachShadow({ mode: "closed" }); > sr.innerHTML = `<style> > >:host(.class1, .class2) .class3 { > color: red; >} > > </style><div class="class3">This text should be red</div>`; > > document.body.classList.add('class2'); >} > ></script>
<script> window.onload = () => { var sr = document.body.attachShadow({ mode: "closed" }); sr.innerHTML = `<style> :host(.class1, .class2) .class3 { color: red; } </style><div class="class3">This text should be red</div>`; document.body.classList.add('class2'); } </script>
View Attachment As Raw
Actions:
View
Attachments on
bug 199170
: 372778