rob*_*aar 5 html css web-component shadow-dom
ive started making a HTML/CSS/Vanilla JS web component library, and so far everything is going great. im using the typical ::part and all that, but i stumbled accros ::theme selector aswell, which is supposed to give quick access to styling without a creator having to set up more than necesarry.
problem is, i - whatever ive tried - can't seem to the get the ::theme selector work, is there anyone who can help me out ?
screendump is from https://meowni.ca/posts/part-theme-explainer/, tried following but i dont know if this selector is still experimental ?, it would really make styling my components alot easier if it worked !
经过大量挖掘后,我发现 ::theme 选择器是一个未实现的提案,
尽管这里提到了https://developer.mozilla.org/en-US/docs/Web/CSS/::part位于底部“另请参阅”下方。然后我发现这个解释器问题已关闭,确认 ::theme 没有成功https://github.com/fergald/docs/issues/4
::theme 选择器因此也不在 CSS 文档中2020 年 9 月 15 日 CSS W3C 编辑草案的阴影部分,请参见以下内容:
https ://drafts.csswg.org/css-shadow-parts/
我不知道是否有人会拿起火炬并实现这个伪选择器,但我确实希望如此,因为我会看到它经常使用,至少在我的需要中。
希望这个问题和答案能够帮助其他人,而不是花大量时间进入这个兔子洞:)