summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/quirks-mode/supports.html
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-02-25 01:03:57 +0000
committerMoonchild <moonchild@palemoon.org>2021-02-25 01:03:57 +0000
commitceadffab6b357723981a429e11222daf6cd6dcfb (patch)
tree5603053048d6a460f79b22bdf165fb74d32d39b0 /testing/web-platform/tests/quirks-mode/supports.html
parent14fb2f966e9b54598c451e3cb35b4aa0480dafed (diff)
parentad5a13bd501e379517da1a944c104a11d951a3f5 (diff)
downloadUXP-RC_20210225.tar
UXP-RC_20210225.tar.gz
UXP-RC_20210225.tar.lz
UXP-RC_20210225.tar.xz
UXP-RC_20210225.zip
Merge branch 'master' into releaseRC_20210225
Diffstat (limited to 'testing/web-platform/tests/quirks-mode/supports.html')
-rw-r--r--testing/web-platform/tests/quirks-mode/supports.html48
1 files changed, 0 insertions, 48 deletions
diff --git a/testing/web-platform/tests/quirks-mode/supports.html b/testing/web-platform/tests/quirks-mode/supports.html
deleted file mode 100644
index 913f7d9f7..000000000
--- a/testing/web-platform/tests/quirks-mode/supports.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!--quirks-->
-<title>Syntax quirks in @supports/CSS.supports</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<link rel=help href=https://drafts.csswg.org/css-conditional/#at-supports>
-<link rel=help href=https://drafts.csswg.org/css-conditional/#the-css-interface>
-<link rel=help href=https://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk>
-<link rel=help href=https://quirks.spec.whatwg.org/#the-unitless-length-quirk>
-<style>
- /* sanity check */
- @supports (background-color: lime) { #a { background-color: lime } }
- @supports (background-position: 1px 1px) { #a { background-position: 1px 1px } }
- /* test */
- @supports (background-color: 00ff00) { #b { background-color: 00ff00 } }
- @supports (background-position: 1 1) { #b { background-position: 1 1 } }
-</style>
-<div id=a></div>
-<div id=b></div>
-<div id=c></div> <!-- c unstyled -->
-<script>
-var a = document.getElementById('a');
-var b = document.getElementById('b');
-var c = document.getElementById('c');
-
-test(function() {
- assert_not_equals(getComputedStyle(a).backgroundColor, getComputedStyle(c).backgroundColor);
-}, 'Sanity check @supports color');
-
-test(function() {
- assert_equals(getComputedStyle(b).backgroundColor, getComputedStyle(a).backgroundColor);
-}, '@supports quirky color');
-
-test(function() {
- assert_false(CSS.supports('background-color', '00ff00'));
-}, 'CSS.supports() quirky color');
-
-test(function() {
- assert_not_equals(getComputedStyle(a).backgroundPosition, getComputedStyle(c).backgroundPosition);
-}, 'Sanity check @supports length');
-
-test(function() {
- assert_equals(getComputedStyle(b).backgroundPosition, getComputedStyle(a).backgroundPosition);
-}, '@supports quirky length');
-
-test(function() {
- assert_false(CSS.supports('background-position', '1 1'));
-}, 'CSS.supports() quirky length');
-</script>