Add basic support for enumerating computed styles (#31499)

* Add basic support for enumerating computed styles

The old code was so broken, it was enumerating the style attribute
instead of the computed styles.

So this patch implements a basic enumeration, but not including custom
properties whose computed value is not the guaranteed-invalid value.

* Feedback
This commit is contained in:
Oriol Brufau 2024-03-06 22:43:06 +01:00 committed by GitHub
parent 6283146829
commit ea38d8ad6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 175 additions and 224 deletions

View file

@ -1,3 +0,0 @@
[cssstyledeclaration-csstext.html]
[cssText on computed style declaration returns the empty string]
expected: FAIL

View file

@ -0,0 +1,3 @@
[cssstyledeclaration-custom-properties.html]
[Custom properties are included in computed style]
expected: FAIL

View file

@ -6,3 +6,5 @@
[getComputedStyle returns no style for element in non-rendered iframe (display: none)]
expected: FAIL
[getComputedStyle returns no style for detached element]
expected: FAIL

View file

@ -1,12 +0,0 @@
[getComputedStyle-getter-v-properties.tentative.html]
[margin-top]
expected: FAIL
[font-size]
expected: FAIL
[max-width]
expected: FAIL
[width]
expected: FAIL

View file

@ -1,4 +0,0 @@
[getComputedStyle-logical-enumeration.html]
[Logical properties in enumeration of computed style]
expected: FAIL

View file

@ -13,3 +13,30 @@
[This pseudo-element should parse: ::highlight( n\\61me )]
expected: FAIL
[This pseudo-element should not parse: ::before(test)]
expected: FAIL
[This pseudo-element should not parse: ::highlight]
expected: FAIL
[This pseudo-element should not parse: ::highlight(]
expected: FAIL
[This pseudo-element should not parse: ::highlight()]
expected: FAIL
[This pseudo-element should not parse: ::highlight(1)]
expected: FAIL
[This pseudo-element should not parse: ::highlight($)]
expected: FAIL
[This pseudo-element should not parse: ::highlight (name)]
expected: FAIL
[This pseudo-element should not parse: ::highlight(name)a]
expected: FAIL
[This pseudo-element should not parse: ::view-transition-group(*)]
expected: FAIL