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

The way I phrased this in the meeting is that you can think of this feature in one of two equivalent ways:

1. It introduces a way to add your own user agent stylesheets for a custom element, at a new-ish cascade order that is basically the same as UA stylesheet order but lives after existing UA stylesheets and is scoped to only apply inside instances of this custom element
2. It introduces a way to add a stylesheet in a place in the cascade order that is the same as the very first stylesheet in a make-believe shadow root (which has no other properties of being a shadow root besides style isolation)

So, if you are unclear, please refer to the first interpretation. Unless someone can satisfy my above request for an example of the difference, then these two interpretations are equivalent.

Stated another way, this feature is definitely a custom elements feature (1), but because of the above equivalence, implementers can reuse existing machinery by thinking about it as (2). Web developers should continue thinking about it as (1) though; (2) is an implementation detail.

Hopefully you can forgive us for summarizing the feature with our implementer/spec-writer hats on in the initial report back from the face to face.

-- 
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-371368425

Received on Thursday, 8 March 2018 03:38:38 UTC