- From: Tab Atkins Jr. <notifications@github.com>
- Date: Mon, 16 Mar 2020 12:53:43 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 16 March 2020 19:53:55 UTC
> A constructible stylesheet is shared and can be mutated and effect every scope it's applied to. @imported stylesheets being separate objects would break this behavior. Can you elaborate on this? Passing around a single stylesheet object lets you share, yes. But constructing a new stylesheet from the same URL will *not* share things; it's an independent sheet. (This is the sole unavoidable difference between css modules and constructed sheets; modules implicitly cache the top-level object, at least, by import url, so you'll get the same object from separate JS imports. But I don't think that argues for there being *more* differences of similar type between the two cases.) -- 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/870#issuecomment-599730407
Received on Monday, 16 March 2020 19:53:55 UTC