[csswg-drafts] [cssom] Autogeneration for `partial interface CSSStyleProperties` and *Descriptors? (#12478)

saschanaz has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom] Autogeneration for `partial interface CSSStyleProperties` and *Descriptors? ==
Context: https://github.com/w3c/csswg-drafts/issues/10105#issuecomment-2012145531

> While I'm definitely in broad strokes in favour of explicitly enumerating IDL attributes (this makes it possible for anything relying on extracted data from reffy, like WPT's idlharness tests, to actually test for presence and similar), it is unfortunate that allows things like this to fall through the cracks.

CSS*Descriptors are certainly nice in a way described above, but it's totally manual now, and that's prone to unsync.

It would be nice if this propdef also generates the IDL too (probably directly in the IDL index rather than for each table, to make it less annoying):

```html
<pre class=propdef>
Name: flex-basis
...
</pre>
```

```webidl
partial interface CSSStyleProperties {
  [CEReactions] attribute [LegacyNullToEmptyString] CSSOMString flexBasis;
  [CEReactions] attribute [LegacyNullToEmptyString] CSSOMString flex-basis;
}
```

And for descriptors:

```html
<pre class=propdef>
Name: size
For: @page
...
</pre>
```

```webidl
partial interface CSSPageDescriptors {
  attribute [LegacyNullToEmptyString] CSSOMString size;
}
```

(This needs a corresponding bikeshed issue, if people agree here.)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12478 using your GitHub account


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

Received on Saturday, 12 July 2025 11:15:27 UTC