From 5ce518f49348fd947f8b3cf02eb8ad3aa53754f6 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 2 Sep 2025 07:30:13 +0100 Subject: [PATCH] LibWeb: Change `iterable` declaration order to match specifications --- Libraries/LibWeb/CSS/CSSNumericArray.idl | 4 +--- Libraries/LibWeb/CSS/CSSUnparsedValue.idl | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Libraries/LibWeb/CSS/CSSNumericArray.idl b/Libraries/LibWeb/CSS/CSSNumericArray.idl index 5ceaff4d6e4..9e75d076ad8 100644 --- a/Libraries/LibWeb/CSS/CSSNumericArray.idl +++ b/Libraries/LibWeb/CSS/CSSNumericArray.idl @@ -3,9 +3,7 @@ // https://drafts.css-houdini.org/css-typed-om-1/#cssnumericarray [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSNumericArray { + iterable; readonly attribute unsigned long length; getter CSSNumericValue (unsigned long index); - - // FIXME: Different order than the spec, because IDLParser requires that this comes after the indexed property getter. - iterable; }; diff --git a/Libraries/LibWeb/CSS/CSSUnparsedValue.idl b/Libraries/LibWeb/CSS/CSSUnparsedValue.idl index 825c67a489c..da82e519fcd 100644 --- a/Libraries/LibWeb/CSS/CSSUnparsedValue.idl +++ b/Libraries/LibWeb/CSS/CSSUnparsedValue.idl @@ -5,11 +5,10 @@ [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSUnparsedValue : CSSStyleValue { constructor(sequence members); + iterable; readonly attribute unsigned long length; getter CSSUnparsedSegment (unsigned long index); setter undefined (unsigned long index, CSSUnparsedSegment val); - // FIXME: Different order from the spec, because our IDL parser needs the indexed getter to be defined already. - iterable; }; // https://drafts.css-houdini.org/css-typed-om-1/#typedefdef-cssunparsedsegment