Re: [csswg-drafts] [cssom] Properties that allow access to parsed-but-invalid syntactic constructs (declarations, rules, etc) as a low-fi way to make polyfills easier (#13186)

If the use case is polyfills, another option might be to have a JS callback of some kind that's called whenever an invalid CSS construct is encountered. The downside would be that you'd need to register it before any invalid CSS is loaded. (Unless it's specced for the UA to re-parse existing stylesheets when the callback is registered, though that's awkward.)

(I haven't thought this through deeply, just throwing it out there as an alternative.)

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


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

Received on Saturday, 17 January 2026 17:56:37 UTC