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)

> A main point regarding polyfills is also how to handle features when they are implemented vs. when they are not. If I recall @bramus' argument correctly, the polyfill version should overrule the implemented version to avoid breaking a feature when it gets implemented with slightly different behavior.

I'm thinking the polyfill author should probablg be the one in charge of deciding that, not the API. Something like this polyfill:
``` javascript
Function.prototype.partial = (
 Function.prototype.partial || // (*)
 function(...args) {
  // ...
 }
);
```
_(*) - depending if this line is included or omitted, the existing built-in `.partial()` would be overwritten or not._


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


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

Received on Sunday, 18 January 2026 21:53:23 UTC