LibWeb/CSS: Reify numbers, dimensions and percentages as CSSUnitValue

This commit is contained in:
Sam Atkins
2025-08-18 15:29:22 +01:00
parent 5384338788
commit 24017e4ab7
Notes: github-actions[bot] 2025-08-22 08:49:39 +00:00
11 changed files with 105 additions and 23 deletions

View File

@@ -2,11 +2,11 @@ Harness status: OK
Found 6 tests
1 Pass
5 Fail
3 Pass
3 Fail
Fail CSSUnitValue with length unit constructed from IDL serializes correctly
Fail CSSUnitValue with unit "percent" constructed from IDL serializes correctly
Fail CSSUnitValue with unit "number" constructed from IDL serializes correctly
Pass CSSUnitValue with integer values constructed from IDL serializes correctly
Fail CSSKeywordValue from DOMString modified by "value" setter serializes correctly
Fail CSSKeywordValue from CSSOM modified by "value" setter serializes correctly
Pass CSSKeywordValue from DOMString modified by "value" setter serializes correctly
Pass CSSKeywordValue from CSSOM modified by "value" setter serializes correctly

View File

@@ -2,11 +2,11 @@ Harness status: OK
Found 6 tests
2 Pass
4 Fail
5 Pass
1 Fail
Pass Getting a custom property not in the computed style returns undefined
Fail Getting a valid property from computed style returns the correct entry
Pass Getting a valid property from computed style returns the correct entry
Pass Getting a valid custom property from computed style returns the correct entry
Fail Getting a list-valued property from computed style returns only the first value
Fail Computed StylePropertyMap.get is not case-sensitive
Fail Computed StylePropertyMap.get reflects updates in inline style
Pass Computed StylePropertyMap.get is not case-sensitive
Pass Computed StylePropertyMap.get reflects updates in inline style

View File

@@ -2,12 +2,12 @@ Harness status: OK
Found 7 tests
2 Pass
5 Fail
5 Pass
2 Fail
Pass Getting a custom property not in the CSS rule returns undefined
Pass Getting a valid property not in the CSS rule returns undefined
Fail Getting a valid property from CSS rule returns the correct entry
Pass Getting a valid property from CSS rule returns the correct entry
Fail Getting a valid custom property from CSS rule returns the correct entry
Fail Getting a list-valued property from CSS rule returns only the first value
Fail Declared StylePropertyMap.get is not case-sensitive
Fail Declared StylePropertyMap.get reflects changes in the CSS rule
Pass Declared StylePropertyMap.get is not case-sensitive
Pass Declared StylePropertyMap.get reflects changes in the CSS rule

View File

@@ -2,12 +2,12 @@ Harness status: OK
Found 7 tests
2 Pass
5 Fail
5 Pass
2 Fail
Pass Getting a custom property not in the inline style returns undefined
Pass Getting a valid property not in the inline style returns undefined
Fail Getting a valid property from inline style returns the correct entry
Pass Getting a valid property from inline style returns the correct entry
Fail Getting a valid custom property from inline style returns the correct entry
Fail Getting a list-valued property from inline style returns only the first value
Fail Declared StylePropertyMap.get is not case-sensitive
Fail Declared StylePropertyMap.get reflects changes in the inline style
Pass Declared StylePropertyMap.get is not case-sensitive
Pass Declared StylePropertyMap.get reflects changes in the inline style