Caleb Williams

Results 106 comments of Caleb Williams

Running into a similar issue, I have something like this ```css :root { --primary: tomato; } .btn { background: var(--override, var(--primary)); } ``` the output I'm getting is ```css :root...

Also, I'm more than happy to contribute to this project to make the above possible if I could get a little guidance on where to start.

Potentially, but there's not really solid documentation on `CSSImportRule` that I could find. But given that this is still a relatively young proposal, I doubt that `CSSImportRule` is capable of...

@TakayoshiKochi I suppose that makes sense, but we _are_ proposing new interfaces and features to the CSSOM with this proposal, so I don't necessarily think it's a non-starter. What I...

Another option, depending on how #10 and #25 pan out is to have the `toString` method of a style sheet object return the URL for `@import` purposes. ```javascript const customProps...

Wouldn't `globalThis.css` not work since the `adoptedStyleSheets` currently sits on `DocumentOrShadowRoot`? I agree we should be weary of collisions, but this fact might mitigate your concern.

For what it's worth, I think the initial idea was to use `moreStyleSheets` to draw a parallel with `DocumentOrShadowRoot.prototype.styleSheets`. I just want to make sure this fact wasn't overlooked, the...

Ostensibly this API will be used for CSS modules as well, so `.constructedStyleSheets` doesn't quite fit.

Just putting some thoughts here, the purpose of this API is to share stylesheets across multiple `DocumentOrShadowRoot`s and to assume styles from CSS modules. If we want to keep the...