Re: [csswg-drafts] [cssom] Add `toString` method on `CSSStyleSheet` (#7171)

Another use case for this:

Tools that generate CSS output would benefit from being able to programmatically build and output CSS text using a standard API that ensures correctness. We're doing this in [Terrazzo's CSS plugin](https://github.com/terrazzoapp/terrazzo/issues/166) where we generate custom properties from Design Tokens. This would be a lot easier and reliable if we could reliably build valid CSS with the CSSOM spec and then print the output to a file.

A similar use case to this is exporting from platforms like Webflow.

-- 
GitHub Notification of comment by davejsdev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7171#issuecomment-3319061748 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 22 September 2025 13:31:14 UTC