Bug 909170 - Add some tests for @supports conditions with tokens after a declaration's priority. r=dbaron

This commit is contained in:
Cameron McCormack 2013-12-12 13:09:39 +11:00
parent ceb1aa1857
commit 05b779fb0c
4 changed files with 60 additions and 0 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -42,3 +42,6 @@ default-preferences pref(layout.css.supports-rule.enabled,true)
== 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