Move counters_simple_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-22 09:16:45 -04:00
parent 83439dc1df
commit cd543ea85a
4 changed files with 25 additions and 1 deletions

View file

@ -827,6 +827,18 @@
"url": "/_mozilla/css/counters_nested_a.html"
}
],
"css/counters_simple_a.html": [
{
"path": "css/counters_simple_a.html",
"references": [
[
"/_mozilla/css/counters_simple_ref.html",
"=="
]
],
"url": "/_mozilla/css/counters_simple_a.html"
}
],
"css/data_img_a.html": [
{
"path": "css/data_img_a.html",
@ -5124,6 +5136,18 @@
"url": "/_mozilla/css/counters_nested_a.html"
}
],
"css/counters_simple_a.html": [
{
"path": "css/counters_simple_a.html",
"references": [
[
"/_mozilla/css/counters_simple_ref.html",
"=="
]
],
"url": "/_mozilla/css/counters_simple_a.html"
}
],
"css/data_img_a.html": [
{
"path": "css/data_img_a.html",

View file

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<link rel='match' href='counters_simple_ref.html'>
<!-- Tests that `counter` works. -->
<style>
h1, h2, h3 {
font-size: 24px;
}
h1 {
counter-increment: section 1;
counter-reset: subsection 0;
}
h1:before {
content: counter(section) ". ";
}
h2 {
counter-increment: subsection 1;
counter-reset: subsubsection 0;
}
h2:before {
content: counter(section) "." counter(subsection) ". ";
}
h3 {
counter-increment: subsubsection;
}
h3:before {
content: counter(section) "." counter(subsection) "." counter(subsubsection) ". ";
}
</style>
</head>
<body>
<h1>Foo</h1>
<h2>Boo</h2>
<h2>Quux</h2>
<h3>Blah</h3>
<h1>Bar</h1>
<h2>Boo</h2>
<h2>Quux</h2>
<h1>Baz</h1>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that `counter` works. -->
<style>
h1, h2, h3 {
font-size: 24px;
}
</style>
</head>
<body>
<h1>1. Foo</h1>
<h2>1.1. Boo</h2>
<h2>1.2. Quux</h2>
<h3>1.2.1. Blah</h3>
<h1>2. Bar</h1>
<h2>2.1. Boo</h2>
<h2>2.2. Quux</h2>
<h1>3. Baz</h1>
</body>
</html>