Truly independent web browser
LibWeb: Import registered color resolution test
Andreas Klingb49c07b4491c
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-properties-values-api/resolved-color-value.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-properties-values-api/resolved-color-value.txtnew file mode 100644index 00000000000..255a0d9dc5c--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-properties-values-api/resolved-color-value.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Resolved <color> value with sibling-index()\ No newline at end of filediff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-properties-values-api/resolved-color-value.html b/Tests/LibWeb/Text/input/wpt-import/css/css-properties-values-api/resolved-color-value.htmlnew file mode 100644index 00000000000..9ba0ca0c0c7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-properties-values-api/resolved-color-value.html@@ -0,0 +1,23 @@+<!DOCTYPE html>+<title>CSS Properties and Values API Test: resolved registered <color> values</title>+<link rel="help" href="https://drafts.csswg.org/css-properties-values-api/#calculation-of-computed-values">+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<style>+ @property --color {+ inherits: false;+ initial-value: black;+ syntax: "<color>";+ }+ #target {+ --color: color(srgb 0 sibling-index() 0);+ }+</style>+<div>+ <div id="target"></div>+</div>+<script>+ test(() => {+ assert_equals(getComputedStyle(target).getPropertyValue("--color"), "color(srgb 0 1 0)");+ }, "Resolved <color> value with sibling-index()");+</script>