Tests: Import some custom-property tests

To make it easier to track progress and regressions in subsequent
changes.
This commit is contained in:
Sam Atkins 2025-07-01 11:43:24 +01:00 committed by Tim Ledbetter
commit 59f2c8df7a
Notes: github-actions[bot] 2025-07-09 15:46:45 +00:00
6 changed files with 844 additions and 0 deletions

View file

@ -0,0 +1,14 @@
Harness status: OK
Found 8 tests
3 Pass
5 Fail
Pass e.style['width'] = "var(--x)" should set the property value
Pass e.style['width'] = "var(--x,)" should set the property value
Pass e.style['width'] = "var(--x, )" should set the property value
Fail e.style['width'] = "var(--x ())" should not set the property value
Fail e.style['width'] = "var(--x () )" should not set the property value
Fail e.style['width'] = "var(--x() )" should not set the property value
Fail e.style['width'] = "var(--x (),)" should not set the property value
Fail e.style['width'] = "var(--x(),)" should not set the property value

View file

@ -0,0 +1,36 @@
Harness status: OK
Found 30 tests
2 Pass
28 Fail
Pass `initial` as a value for an unregistered custom property
Fail `inherit` as a value for an unregistered custom property
Fail `unset` as a value for an unregistered custom property
Fail `revert` as a value for an unregistered custom property
Fail `revert-layer` as a value for an unregistered custom property
Fail `initial` as a value for a non-inheriting registered custom property
Fail `initial` as a value for an inheriting registered custom property
Fail `inherit` as a value for a non-inheriting registered custom property
Fail `inherit` as a value for an inheriting registered custom property
Fail `unset` as a value for a non-inheriting registered custom property
Fail `unset` as a value for an inheriting registered custom property
Fail `revert` as a value for a non-inheriting registered custom property
Fail `revert` as a value for an inheriting registered custom property
Fail `revert-layer` as a value for a non-inheriting registered custom property
Fail `revert-layer` as a value for an inheriting registered custom property
Pass `initial` as a `var()` fallback for an unregistered custom property
Fail `inherit` as a `var()` fallback for an unregistered custom property
Fail `unset` as a `var()` fallback for an unregistered custom property
Fail `revert` as a `var()` fallback for an unregistered custom property
Fail `revert-layer` as a `var()` fallback for an unregistered custom property
Fail `initial` as a `var()` fallback for a non-inheriting registered custom property
Fail `initial` as a `var()` fallback for an inheriting registered custom property
Fail `inherit` as a `var()` fallback for a non-inheriting registered custom property
Fail `inherit` as a `var()` fallback for an inheriting registered custom property
Fail `unset` as a `var()` fallback for a non-inheriting registered custom property
Fail `unset` as a `var()` fallback for an inheriting registered custom property
Fail `revert` as a `var()` fallback for a non-inheriting registered custom property
Fail `revert` as a `var()` fallback for an inheriting registered custom property
Fail `revert-layer` as a `var()` fallback for a non-inheriting registered custom property
Fail `revert-layer` as a `var()` fallback for an inheriting registered custom property

View file

@ -0,0 +1,17 @@
Harness status: OK
Found 11 tests
1 Pass
10 Fail
Fail Self-cycle
Fail Simple a/b cycle
Fail Three-var cycle
Fail Cycle that starts in the middle of a chain
Fail Cycle with extra edge
Fail Cycle with extra edge (2)
Fail Cycle with extra edge (3)
Fail Cycle with secondary cycle
Fail Cycle with overlapping secondary cycle
Fail Cycle with deeper secondary cycle
Pass Cycle in unused fallback