Fix CSSStyleDeclaration's item() to provide properties instead of values (#31299)

For example,

    style.cssText = "margin: 1px 2px 3px 4px";
    [...style];

will now be

    ["margin-top", "margin-right", "margin-bottom", "margin-left"]

instead of

    ["1px", "2px", "3px", "4px"]
This commit is contained in:
Oriol Brufau
2024-02-09 16:21:28 +01:00
committed by GitHub
parent 9d42602fe7
commit f2adcc3a12
19 changed files with 8 additions and 149 deletions

View File

@@ -1,18 +1,3 @@
[cssom-getPropertyValue-common-checks.html]
[All properties (except 'all') can serialize their initial value (computed)]
expected: FAIL
[All shorthands can serialize their longhands set to 'initial']
expected: FAIL
[All aliases can serialize target property set to 'initial']
expected: FAIL
[Can't serialize shorthand when longhands are set to different css-wide keywords]
expected: FAIL
[Can't serialize shorthand when longhands have different priority]
expected: FAIL
[Can't serialize shorthand set to 'initial' when some longhand is missing]
expected: FAIL