Truly independent web browser
Tests: Import WPT test for -webkit-gradient() with sign()
Andreas Klingf5f7bf3a1c72
diff --git a/Tests/LibWeb/Text/expected/wpt-import/compat/webkit-gradient-sign.txt b/Tests/LibWeb/Text/expected/wpt-import/compat/webkit-gradient-sign.txtnew file mode 100644index 00000000000..b2f7c39ce81--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/compat/webkit-gradient-sign.txt@@ -0,0 +1,7 @@+Harness status: OK++Found 2 tests++2 Fail+Fail webkit-gradient-sign+Fail webkit-gradient-sign 1diff --git a/Tests/LibWeb/Text/input/wpt-import/compat/webkit-gradient-sign.html b/Tests/LibWeb/Text/input/wpt-import/compat/webkit-gradient-sign.htmlnew file mode 100644index 00000000000..dfd6b86e27f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/compat/webkit-gradient-sign.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="help" href="https://compat.spec.whatwg.org/#css-gradients-webkit-linear-gradient">+<meta name="assert" content="Check that we do not crash even if color-stop() is not resolvable at parse time.">+<script src="../resources/testharness.js"></script>+<script src="../resources/testharnessreport.js"></script>+<script>+test(() => {+ assert_true(CSS.supports("background-image", "-webkit-gradient(linear, left top, left bottom, color-stop(calc(0.5 + 0.001 * sign(1em - 1px)), blue))"));+});++test(() => {+ assert_true(CSS.supports("background-image", "-webkit-gradient(linear, left top, left bottom, color-stop(calc(50% + 0.001% * sign(1em - 1px)), blue))"));+});+</script>