Re: [w3c/webcomponents] CSS Modules (#759)

> I was under the impression that A would be applied once, before B, and not reapplied when C imports it

Are we assuming that there's a single toplevel module import that ends up including both `B` and `C`, or are they separate toplevel module imports?

It's really not clear to me what this proposal envisions in general for how the nonlinear module graph maps onto the linear cascade.  I guess for options 1 and 2 this is not an issue, because the module subgraph for any given CSS module is in fact just one node and that hands back a `CSSStyleSheet`; after that ordering in the cascade is just determined by where you place that `CSSStyleSheet` and existing cascading rules.  For option 3, it's not really clear to me what the proposal is.  If `A` and `B` are imported as separate modules, then `B` is inserted in a sheet list, then `A` is inserted, what happens?  What if the order of insertions is reversed?

-- 
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/759#issuecomment-490536393

Received on Wednesday, 8 May 2019 15:36:28 UTC