Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Add reference file for style-attr case
Browse files Browse the repository at this point in the history
Modify 6 test cases and add 5 reference files.
  • Loading branch information
chenxix committed Nov 8, 2014
1 parent 3991ee7 commit b1785d0
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 0 deletions.
10 changes: 10 additions & 0 deletions css-style-attr-1/reference/style-attr-cascade-001-ref.html
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<body text="green">
<div> This should be green. It has a style
attribute with "color: red" but an important rule with "color:
green".
</div>
</body>
10 changes: 10 additions & 0 deletions css-style-attr-1/reference/style-attr-cascade-002-ref.html
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<body text="green">
<div> This should be
green. It has a style attribute with "color: red" preceeded by an
important "color: green".
</div>
</body>
10 changes: 10 additions & 0 deletions css-style-attr-1/reference/style-attr-cascade-003-ref.html
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<body text="green">
<div> This should be green. It has a style
attribute with "color: green" and a normal style rule with "color:
red".
</div>
</body>
12 changes: 12 additions & 0 deletions css-style-attr-1/reference/style-attr-cascade-004-ref.html
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<style>
div {
background-color: green;
}
</style>
<body text="white">
<div> This should be white on green. </div>
</body>
7 changes: 7 additions & 0 deletions css-style-attr-1/reference/style-attr-cascade-006-ref.html
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<body text="green">
<div> This should be green. </div>
</body>
1 change: 1 addition & 0 deletions css-style-attr-1/style-attr-cascade-001.xht
Expand Up @@ -8,6 +8,7 @@
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" />
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order"/>
<link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/>
<link rel="match" href="reference/style-attr-cascade-001-ref.html" />
<style type="text/css">

div { color: green ! important; }
Expand Down
1 change: 1 addition & 0 deletions css-style-attr-1/style-attr-cascade-002.xht
Expand Up @@ -7,6 +7,7 @@
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/style/002.xml"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" />
<link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/>
<link rel="match" href="reference/style-attr-cascade-002-ref.html" />
</head>
<body>
<div style="color: green ! important; color: red"> This should be
Expand Down
1 change: 1 addition & 0 deletions css-style-attr-1/style-attr-cascade-003.xht
Expand Up @@ -7,6 +7,7 @@
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/style/003.xml"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order"/>
<link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/>
<link rel="match" href="reference/style-attr-cascade-003-ref.html" />
<style type="text/css">
div { color: red; }
</style>
Expand Down
1 change: 1 addition & 0 deletions css-style-attr-1/style-attr-cascade-004.xht
Expand Up @@ -8,6 +8,7 @@
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" />
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order"/>
<link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/>
<link rel="match" href="reference/style-attr-cascade-004-ref.html" />
<style type="text/css">
div { color: white ! important; background: green ! important; }
</style>
Expand Down
1 change: 1 addition & 0 deletions css-style-attr-1/style-attr-cascade-005.xht
Expand Up @@ -8,6 +8,7 @@
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" />
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order"/>
<link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/>
<link rel="match" href="reference/style-attr-cascade-004-ref.html" />
<style type="text/css">
div { color: white ! important; background: red; }
</style>
Expand Down
1 change: 1 addition & 0 deletions css-style-attr-1/style-attr-cascade-006.xht
Expand Up @@ -7,6 +7,7 @@
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit" />
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order"/>
<link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/>
<link rel="match" href="reference/style-attr-cascade-006-ref.html" />
<style type="text/css">
body { color: green; }
div { color: red; }
Expand Down

0 comments on commit b1785d0

Please sign in to comment.