Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
You dont do classes with shadow dom, you do part="asd dsa" and select it with element::part(asd):dsa
-
@yellow-dog I didn't know about this thing. Could you point me to some resource regarding its semantics?
-
@yellow-dog Eg. will ::part(asd) still match this? So in that case "part" is pretty much a token list, like classes?
-
@yellow-dog God dammit, I went over that page like 6 times today. Thanks for pointing me to the solution right in front of my eyes.
Related Rants
This is practically impossible to goole due to the generic nature of the words:
I need a CSS selector to match all parts called "tab" with class "active" within a component. For some reason
my-component::part(tab).active
doesn't work, and I don't know if it's a bug or not.
rant
class
components
css
part