mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Move counters_simple_a.html to wpt reftests.
This commit is contained in:
parent
83439dc1df
commit
cd543ea85a
4 changed files with 25 additions and 1 deletions
|
@ -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",
|
||||
|
|
43
tests/wpt/mozilla/tests/css/counters_simple_a.html
Normal file
43
tests/wpt/mozilla/tests/css/counters_simple_a.html
Normal 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>
|
||||
|
22
tests/wpt/mozilla/tests/css/counters_simple_ref.html
Normal file
22
tests/wpt/mozilla/tests/css/counters_simple_ref.html
Normal 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>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue