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

@ -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