Bug 909170 - Add some tests for @supports conditions with tokens after a declaration's priority. r=dbaron
authorCameron McCormack <cam@mcc.id.au>
Thu, 12 Dec 2013 13:09:39 +1100
changeset 160050 8ff43d5afe3e6542d1f835286f0dba8985b62d95
parent 160049 8344fa6ecea634160119b1f21af596b7c39b4126
child 160051 6ceff347849df2add64f8a0bc680757f1e95c66c
push id25821
push usercbook@mozilla.com
push dateThu, 12 Dec 2013 11:53:39 +0000
treeherdermozilla-central@d15ed5648a5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs909170
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 909170 - Add some tests for @supports conditions with tokens after a declaration's priority. r=dbaron
layout/reftests/w3c-css/submitted/conditional3/css-supports-043.xht
layout/reftests/w3c-css/submitted/conditional3/css-supports-044.xht
layout/reftests/w3c-css/submitted/conditional3/css-supports-045.xht
layout/reftests/w3c-css/submitted/conditional3/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/conditional3/css-supports-043.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+  <title>CSS Test: An @supports rule condition with a bogus priority should evaluate to false</title>
+  <link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au" />
+  <link rel="help" href="http://www.w3.org/TR/css3-conditional/#at-supports" />
+  <meta name="flags" content="" />
+  <meta name="assert" content="An @supports rule condition with a bogus priority should evaluate to false"/>
+  <link rel="match" href="support/pass.xht" />
+  <style type="text/css"><![CDATA[
+    html { background-color: red; }
+    @supports not (color: green !bogus) {
+      html { background-color: green; }
+    }
+  ]]></style>
+ </head>
+ <body>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/conditional3/css-supports-044.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+  <title>CSS Test: An @supports rule condition with tokens after the priority should evaluate to false</title>
+  <link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au" />
+  <link rel="help" href="http://www.w3.org/TR/css3-conditional/#at-supports" />
+  <meta name="flags" content="" />
+  <meta name="assert" content="An @supports rule condition with tokens after the priority should evaluate to false"/>
+  <link rel="match" href="support/pass.xht" />
+  <style type="text/css"><![CDATA[
+    html { background-color: red; }
+    @supports not (color: green !important green) {
+      html { background-color: green; }
+    }
+  ]]></style>
+ </head>
+ <body>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/conditional3/css-supports-045.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+  <title>CSS Test: An @supports rule condition with two priorities should evaluate to false</title>
+  <link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au" />
+  <link rel="help" href="http://www.w3.org/TR/css3-conditional/#at-supports" />
+  <meta name="flags" content="" />
+  <meta name="assert" content="An @supports rule condition with two priorities should evaluate to false"/>
+  <link rel="match" href="support/pass.xht" />
+  <style type="text/css"><![CDATA[
+    html { background-color: red; }
+    @supports not (color: green !important !important) {
+      html { background-color: green; }
+    }
+  ]]></style>
+ </head>
+ <body>
+ </body>
+</html>
--- a/layout/reftests/w3c-css/submitted/conditional3/reftest.list
+++ b/layout/reftests/w3c-css/submitted/conditional3/reftest.list
@@ -37,8 +37,11 @@ default-preferences pref(layout.css.supp
 == css-supports-035.xht support/pass.xht
 == css-supports-036.xht support/pass.xht
 == css-supports-037.xht support/pass.xht
 == css-supports-038.xht support/pass.xht
 == css-supports-039.xht support/pass.xht
 == css-supports-040.xht support/pass.xht
 == css-supports-041.xht support/pass.xht
 == css-supports-042.xht support/pass.xht
+== css-supports-043.xht support/pass.xht
+== css-supports-044.xht support/pass.xht
+== css-supports-045.xht support/pass.xht