Re: [w3c/webcomponents] Provide a lightweight mechanism to add styles to a custom element (#468)

I simply agree with @emilio in this regard. From a Blink implementation standpoint, :element() just adds complexity. You potentially have specificity issues (:element(myelement) vs :element([attr]), do we have the specificity of the selector inside the pseudo class?). I don't know to which extent :element() would be clearer for authors. We already have e.g. universal selectors in shadow tree stylesheets which only applies to elements inside that shadow tree. I don't know if universal selectors in a stylesheet only applying to a custom element is any different.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/468#issuecomment-416849721

Received on Wednesday, 29 August 2018 07:14:00 UTC