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

Ran into a super weird issue today when using the `cssText` shown in the original description. Apparently it can produce invalid CSS when using custom properties: https://issues.chromium.org/issues/40804066

Obviously the bug should be fixed, but a `.toString()` function could help avoid the problem altogether.



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


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

Received on Monday, 8 July 2024 14:19:07 UTC