[css-houdini-drafts] [css-typed-om] CSSNumericDictionary's percentHint should be nullable (#1149)

AtkinsSJ has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] CSSNumericDictionary's percentHint should be nullable ==
A type may not have a percent hint: 

> The percent hint is either null or a [base type](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-base-type).
> https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-percent-hint

We also only assign it a value in [`type()`](https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-type) if this's percent hint isn't null. So we need a way to represent that state.
> If the [percent hint](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-percent-hint) of this is not null,
>
> Set [percentHint](https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumerictype-percenthint) to the [percent hint](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-percent-hint) of this.

Related, I think the other fields (`length` etc) might need `= 0;` in the IDL definitions, but that could just be a quirk of Ladybird's IDL parser/generator.

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


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

Received on Friday, 15 August 2025 12:43:08 UTC