LibWeb/CSS: Correct definition of CSSNumericType

What I thought was a spec issue was actually a combination of my own
misunderstanding and a bug in our IDL generator. With that bug fixed, I
can correct this to how it is in the spec.
This commit is contained in:
Sam Atkins 2025-08-22 12:02:52 +01:00 committed by Andreas Kling
parent ffb236adbd
commit 9264f540dd
Notes: github-actions[bot] 2025-08-29 09:58:35 +00:00
7 changed files with 45 additions and 48 deletions

View file

@ -15,14 +15,14 @@
namespace Web::CSS {
struct CSSNumericType {
WebIDL::Long length {};
WebIDL::Long angle {};
WebIDL::Long time {};
WebIDL::Long frequency {};
WebIDL::Long resolution {};
WebIDL::Long flex {};
WebIDL::Long percent {};
Optional<Bindings::CSSNumericBaseType> percent_hint {};
Optional<WebIDL::Long> length;
Optional<WebIDL::Long> angle;
Optional<WebIDL::Long> time;
Optional<WebIDL::Long> frequency;
Optional<WebIDL::Long> resolution;
Optional<WebIDL::Long> flex;
Optional<WebIDL::Long> percent;
Optional<Bindings::CSSNumericBaseType> percent_hint;
};
// https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue