diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-variables/var-parsing.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-variables/var-parsing.txt new file mode 100644 index 00000000000..6fd105204c9 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-variables/var-parsing.txt @@ -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 \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-variables/variable-css-wide-keywords.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-variables/variable-css-wide-keywords.txt new file mode 100644 index 00000000000..53621a77b91 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-variables/variable-css-wide-keywords.txt @@ -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 \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-variables/variable-cycles.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-variables/variable-cycles.txt new file mode 100644 index 00000000000..d79c6ee188b --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-variables/variable-cycles.txt @@ -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 \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-variables/var-parsing.html b/Tests/LibWeb/Text/input/wpt-import/css/css-variables/var-parsing.html new file mode 100644 index 00000000000..d069219fa3f --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-variables/var-parsing.html @@ -0,0 +1,21 @@ + +