3 ms·
I’m not sure if I understand you correctly, but I think SCSS does actually support that. dialog { html:has(&[open]) { overflow: hidden;
by Semaphor 4y ago
I’m not sure if I understand you correctly, but I think SCSS does actually support that.
dialog {
html:has(&[open]) {
overflow: hidden;
}
}
Is possible annd creates html:has(dialog[open]) {overflow: hidden;}
- krajzeg 4y agoNo, you're right. My SCSS is a bit rusty these days and I simply forgot how flexible it is, sorry for the misleading comment.
- aasasd 4y agoThis seems to slap the property on html, whereas the proposed nesting only uses the parent as a selector, and specifies properties for the nested element (if I'm not confusing something again). If scss can do `.parent & {...}`, that would be the same as the proposal.