mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Move counters_nested_a.html to wpt reftests.
This commit is contained in:
parent
b628b8f131
commit
ff216d25e3
4 changed files with 25 additions and 1 deletions
|
@ -803,6 +803,18 @@
|
|||
"url": "/_mozilla/css/class-namespaces.html"
|
||||
}
|
||||
],
|
||||
"css/counters_nested_a.html": [
|
||||
{
|
||||
"path": "css/counters_nested_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/counters_nested_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/counters_nested_a.html"
|
||||
}
|
||||
],
|
||||
"css/data_img_a.html": [
|
||||
{
|
||||
"path": "css/data_img_a.html",
|
||||
|
@ -5052,6 +5064,18 @@
|
|||
"url": "/_mozilla/css/class-namespaces.html"
|
||||
}
|
||||
],
|
||||
"css/counters_nested_a.html": [
|
||||
{
|
||||
"path": "css/counters_nested_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/counters_nested_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/counters_nested_a.html"
|
||||
}
|
||||
],
|
||||
"css/data_img_a.html": [
|
||||
{
|
||||
"path": "css/data_img_a.html",
|
||||
|
|
37
tests/wpt/mozilla/tests/css/counters_nested_a.html
Normal file
37
tests/wpt/mozilla/tests/css/counters_nested_a.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='counters_nested_ref.html'>
|
||||
<!-- Tests that `counters` works with nested counters. -->
|
||||
<style>
|
||||
section {
|
||||
counter-reset: section 0;
|
||||
}
|
||||
h1, h2, h3 {
|
||||
counter-increment: section 1;
|
||||
font-size: 24px;
|
||||
}
|
||||
h1:before, h2:before, h3:before {
|
||||
content: counters(section, ".") ". ";
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section>
|
||||
<h1>Foo</h1>
|
||||
<section>
|
||||
<h2>Boo</h2>
|
||||
<h2>Quux</h2>
|
||||
<section>
|
||||
<h3>Blah</h3>
|
||||
</section>
|
||||
</section>
|
||||
<h1>Bar</h1>
|
||||
<section></section>
|
||||
<h2>Boo</h2>
|
||||
<h2>Quux</h2>
|
||||
<h1>Baz</h1>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
29
tests/wpt/mozilla/tests/css/counters_nested_ref.html
Normal file
29
tests/wpt/mozilla/tests/css/counters_nested_ref.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that `counters` works with nested counters. -->
|
||||
<style>
|
||||
h1, h2, h3 {
|
||||
font-size: 24px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section>
|
||||
<h1>1. Foo</h1>
|
||||
<section>
|
||||
<h2>1.1. Boo</h2>
|
||||
<h2>1.2. Quux</h2>
|
||||
<section>
|
||||
<h3>1.2.1. Blah</h3>
|
||||
</section>
|
||||
</section>
|
||||
<h1>1.3. Bar</h1>
|
||||
<section></section>
|
||||
<h2>1.1. Boo</h2>
|
||||
<h2>1.2. Quux</h2>
|
||||
<h1>1.3. Baz</h1>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue