mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d
This commit is contained in:
parent
65dd6d4340
commit
ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions
|
@ -11,9 +11,7 @@
|
|||
<h1>Description</h1>
|
||||
<p>This test continues to validate the li element.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>"If the parent element is an ol element, then the li element has an ordinal value. The value attribute is processed relative to the element's parent ol element (q.v.), if there is one. If there is not, the attribute has no effect."</blockquote>
|
||||
<p>This reftest verifies that the value attribute has no effect when applied to a list item NOT having an ol parent.</p>
|
||||
<p>This reftest verifies that the value attribute has no effect when applied to a list item NOT having an ol parent and not marked as display: list-item.</p>
|
||||
<p>A reftest is necessary because the values of li elements as calculated by the user agent are NOT available programatically. Only explicitly-set values are then available programatically.</p>
|
||||
<p>This reftest passes if you see NO sequencing information on any of the items below.</p>
|
||||
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
<h1>Description</h1>
|
||||
<p>This test continues to validate the li element.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>"If the parent element is an ol element, then the li element has an ordinal value. The value attribute is processed relative to the element's parent ol element (q.v.), if there is one. If there is not, the attribute has no effect."</blockquote>
|
||||
<p>This reftest verifies that the value attribute has no effect when applied to a list item NOT having an ol parent.</p>
|
||||
<p>This reftest verifies that the value attribute has no effect when applied to a list item NOT having an ol parent and not marked as display: list-item.</p>
|
||||
<p>A reftest is necessary because the values of li elements as calculated by the user agent are NOT available programatically. Only explicitly-set values are then available programatically.</p>
|
||||
<p>This reftest passes if you see NO sequencing information on any of the items below.</p>
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
<h1>Description</h1>
|
||||
<p>This test continues to validate the li element.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>"If the parent element is an ol element, then the li element has an ordinal value. The value attribute is processed relative to the element's parent ol element (q.v.), if there is one. If there is not, the attribute has no effect."</blockquote>
|
||||
<p>This reftest verifies that the value attribute has an effect when applied to a list item with an ol parent.</p>
|
||||
<p>A reftest is necessary because the values of li elements as calculated by the user agent are NOT available programatically. Only explicitly-set values are then available programatically.</p>
|
||||
<p>This reftest passes if you see the numbers 1. 2. 3. below the words "Ordered List"</p>
|
||||
|
|
|
@ -18,8 +18,6 @@
|
|||
<h1>Description</h1>
|
||||
<p>This test continues to validate the li element.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>"If the parent element is an ol element, then the li element has an ordinal value. The value attribute is processed relative to the element's parent ol element (q.v.), if there is one. If there is not, the attribute has no effect."</blockquote>
|
||||
<p>This reftest verifies that the value attribute has an effect when applied to a list item with an ol parent.</p>
|
||||
<p>A reftest is necessary because the values of li elements as calculated by the user agent are NOT available programatically. Only explicitly-set values are then available programatically.</p>
|
||||
<p>This reftest passes if you see the numbers 1. 2. 3. below the words "Ordered List"</p>
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>display: list-item on non-<li> elements</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<style>
|
||||
.list-item {
|
||||
display: list-item;
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
.list-item[hidden] {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if both lists display similar to the following:</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
D
|
||||
3. E</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<span>D</span>
|
||||
<li value="3">E</li>
|
||||
</ol>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<span>D</span>
|
||||
<li value="3">E</li>
|
||||
</ol>
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>display: list-item on non-<li> elements</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-display-list-item-ref.html">
|
||||
|
||||
<style>
|
||||
.list-item {
|
||||
display: list-item;
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
.list-item[hidden] {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if both lists display similar to the following:</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
D
|
||||
3. E</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ul>
|
||||
<span class="list-item">A</span>
|
||||
<span class="list-item">B</span>
|
||||
<span class="list-item" hidden>C</span>
|
||||
<span>D</span>
|
||||
<span class="list-item">E</span>
|
||||
</ul>
|
||||
|
||||
<ol>
|
||||
<div class="list-item">A</div>
|
||||
<div class="list-item">B</div>
|
||||
<div class="list-item" hidden>C</div>
|
||||
<div>D</div>
|
||||
<div class="list-item">E</div>
|
||||
</ol>
|
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be narest ancestor menu if it exists</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
1. F
|
||||
2. G
|
||||
6. H
|
||||
1. I
|
||||
2. J
|
||||
1. K
|
||||
2. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<li value="3">C</li>
|
||||
<li value="4">D</li>
|
||||
<li value="5">E</li>
|
||||
<ol>
|
||||
<li value="1">F</li>
|
||||
<li value="2">G</li>
|
||||
</ol>
|
||||
<li value="6">H</li>
|
||||
<ol>
|
||||
<li value="1">I</li>
|
||||
<li value="2">
|
||||
J
|
||||
<ol>
|
||||
<li value="1">K</li>
|
||||
<li value="2">L</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</ol>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be narest ancestor menu if it exists</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-list-owner-menu-ref.html">
|
||||
|
||||
<style>
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
1. F
|
||||
2. G
|
||||
6. H
|
||||
1. I
|
||||
2. J
|
||||
1. K
|
||||
2. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<menu>
|
||||
<li>A</li>
|
||||
<li>B</li>
|
||||
<div>
|
||||
<li>C</li>
|
||||
<span>
|
||||
<li>D</li>
|
||||
<li>E</li>
|
||||
</span>
|
||||
<menu>
|
||||
<li>F</li>
|
||||
<li>G</li>
|
||||
</menu>
|
||||
</div>
|
||||
<li>H</li>
|
||||
<menu>
|
||||
<li>I</li>
|
||||
<li>
|
||||
J
|
||||
<menu>
|
||||
<li>K</li>
|
||||
<li>L</li>
|
||||
</menu>
|
||||
</li>
|
||||
</menu>
|
||||
</menu>
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be nearest ancestor ul or ul (but not dir) if it exists</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<style>
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
1. F
|
||||
2. G
|
||||
6. H
|
||||
1. I
|
||||
2. J
|
||||
3. K
|
||||
4. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<li value="3">C</li>
|
||||
<li value="4">D</li>
|
||||
<li value="5">E</li>
|
||||
<ol>
|
||||
<li value="1">F</li>
|
||||
<li value="2">G</li>
|
||||
</ol>
|
||||
<li value="6">H</li>
|
||||
<ol>
|
||||
<li value="1">I</li>
|
||||
<li value="2">
|
||||
J
|
||||
<dir>
|
||||
<li value="3">K</li>
|
||||
<li value="4">L</li>
|
||||
</dir>
|
||||
</li>
|
||||
</ol>
|
||||
</ol>
|
|
@ -0,0 +1,64 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be nearest ancestor ul or ul (but not dir) if it exists</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-list-owner-mixed-ref.html">
|
||||
|
||||
<style>
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
.list-item {
|
||||
display: list-item;
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
1. F
|
||||
2. G
|
||||
6. H
|
||||
1. I
|
||||
2. J
|
||||
3. K
|
||||
4. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ul>
|
||||
<li>A</li>
|
||||
<li>B</li>
|
||||
<div>
|
||||
<li>C</li>
|
||||
<span>
|
||||
<li>D</li>
|
||||
<li>E</li>
|
||||
</span>
|
||||
<ol>
|
||||
<li>F</li>
|
||||
<span class="list-item">G</span>
|
||||
</ol>
|
||||
</div>
|
||||
<li>H</li>
|
||||
<ol>
|
||||
<li>I</li>
|
||||
<li>
|
||||
J
|
||||
<dir>
|
||||
<li>K</li>
|
||||
<li>L</li>
|
||||
</dir>
|
||||
</li>
|
||||
</ol>
|
||||
</ul>
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir element is not treated specially when calculating list owners</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<style>
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
6. F
|
||||
7. G
|
||||
8. H
|
||||
9. I
|
||||
10. J
|
||||
11. K
|
||||
12. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<li value="3">C</li>
|
||||
<li value="4">D</li>
|
||||
<li value="5">E</li>
|
||||
<dir>
|
||||
<li value="6">F</li>
|
||||
<li value="7">G</li>
|
||||
</dir>
|
||||
<li value="8">H</li>
|
||||
<dir>
|
||||
<li value="9">I</li>
|
||||
<li value="10">
|
||||
J
|
||||
<dir>
|
||||
<li value="11">K</li>
|
||||
<li value="12">L</li>
|
||||
</dir>
|
||||
</li>
|
||||
</dir>
|
||||
</ol>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir element is not treated specially when calculating list owners</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-list-owner-not-dir-ref.html">
|
||||
|
||||
<style>
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
6. F
|
||||
7. G
|
||||
8. H
|
||||
9. I
|
||||
10. J
|
||||
11. K
|
||||
12. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li>A</li>
|
||||
<li>B</li>
|
||||
<div>
|
||||
<li>C</li>
|
||||
<span>
|
||||
<li>D</li>
|
||||
<li>E</li>
|
||||
</span>
|
||||
<dir>
|
||||
<li>F</li>
|
||||
<li>G</li>
|
||||
</dir>
|
||||
</div>
|
||||
<li>H</li>
|
||||
<dir>
|
||||
<li>I</li>
|
||||
<li>
|
||||
J
|
||||
<dir>
|
||||
<li>K</li>
|
||||
<li>L</li>
|
||||
</dir>
|
||||
</li>
|
||||
</dir>
|
||||
</ol>
|
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be narest ancestor ol if it exists</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
1. F
|
||||
2. G
|
||||
6. H
|
||||
1. I
|
||||
2. J
|
||||
1. K
|
||||
2. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<li value="3">C</li>
|
||||
<li value="4">D</li>
|
||||
<li value="5">E</li>
|
||||
<ol>
|
||||
<li value="1">F</li>
|
||||
<li value="2">G</li>
|
||||
</ol>
|
||||
<li value="6">H</li>
|
||||
<ol>
|
||||
<li value="1">I</li>
|
||||
<li value="2">
|
||||
J
|
||||
<ol>
|
||||
<li value="1">K</li>
|
||||
<li value="2">L</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</ol>
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be narest ancestor ol if it exists</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-list-owner-ol-ref.html">
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
1. F
|
||||
2. G
|
||||
6. H
|
||||
1. I
|
||||
2. J
|
||||
1. K
|
||||
2. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li>A</li>
|
||||
<li>B</li>
|
||||
<div>
|
||||
<li>C</li>
|
||||
<span>
|
||||
<li>D</li>
|
||||
<li>E</li>
|
||||
</span>
|
||||
<ol>
|
||||
<li>F</li>
|
||||
<li>G</li>
|
||||
</ol>
|
||||
</div>
|
||||
<li>H</li>
|
||||
<ol>
|
||||
<li>I</li>
|
||||
<li>
|
||||
J
|
||||
<ol>
|
||||
<li>K</li>
|
||||
<li>L</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</ol>
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be the parent if there is no ancestor ul/ol/menu</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<style>
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
ol {
|
||||
padding: 50px;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
1. C
|
||||
1. D
|
||||
1. E
|
||||
3. F</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<li value="1">C</li>
|
||||
<li value="1">D</li>
|
||||
<blockquote>
|
||||
<li value="1">E</li>
|
||||
</blockquote>
|
||||
<li value="3">F</li>
|
||||
</ol>
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be the parent if there is no ancestor ul/ol/menu</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-list-owner-parent-ref.html">
|
||||
|
||||
<style>
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 50px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
1. C
|
||||
1. D
|
||||
1. E
|
||||
3. F</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="container">
|
||||
<li>A</li>
|
||||
<li>B</li>
|
||||
<div>
|
||||
<li>C</li>
|
||||
<span>
|
||||
<li>D</li>
|
||||
</span>
|
||||
</div>
|
||||
<blockquote>
|
||||
<li>E</li>
|
||||
</blockquote>
|
||||
<li>F</li>
|
||||
</div>
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner calculation skips elements that do not generate layout boxes</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
6. F
|
||||
7. G
|
||||
8. H
|
||||
9. I
|
||||
10. J
|
||||
1. K
|
||||
2. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<li value="3">C</li>
|
||||
<li value="4">D</li>
|
||||
<li value="5">E</li>
|
||||
<li value="6">F</li>
|
||||
<li value="7">G</li>
|
||||
<li value="8">H</li>
|
||||
<li value="9">I</li>
|
||||
<li value="10">
|
||||
J
|
||||
<ol>
|
||||
<li value="1">K</li>
|
||||
<li value="2">L</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner calculation skips elements that do not generate layout boxes</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-list-owner-skip-no-boxes-ref.html">
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
6. F
|
||||
7. G
|
||||
8. H
|
||||
9. I
|
||||
10. J
|
||||
1. K
|
||||
2. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li>A</li>
|
||||
<li>B</li>
|
||||
<div>
|
||||
<li>C</li>
|
||||
<span>
|
||||
<li>D</li>
|
||||
<li>E</li>
|
||||
</span>
|
||||
<ol style="display: contents;">
|
||||
<li>F</li>
|
||||
<li>G</li>
|
||||
</ol>
|
||||
</div>
|
||||
<li>H</li>
|
||||
<ol style="display: contents;">
|
||||
<li>I</li>
|
||||
<li>
|
||||
J
|
||||
<ol>
|
||||
<li>K</li>
|
||||
<li>L</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</ol>
|
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be nearest ancestor ul if it exists</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
1. F
|
||||
2. G
|
||||
6. H
|
||||
1. I
|
||||
2. J
|
||||
1. K
|
||||
2. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<li value="3">C</li>
|
||||
<li value="4">D</li>
|
||||
<li value="5">E</li>
|
||||
<ol>
|
||||
<li value="1">F</li>
|
||||
<li value="2">G</li>
|
||||
</ol>
|
||||
<li value="6">H</li>
|
||||
<ol>
|
||||
<li value="1">I</li>
|
||||
<li value="2">
|
||||
J
|
||||
<ol>
|
||||
<li value="1">K</li>
|
||||
<li value="2">L</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</ol>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>list owner is calculated to be nearest ancestor ul if it exists</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-list-owner-ul-ref.html">
|
||||
|
||||
<style>
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. C
|
||||
4. D
|
||||
5. E
|
||||
1. F
|
||||
2. G
|
||||
6. H
|
||||
1. I
|
||||
2. J
|
||||
1. K
|
||||
2. L</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ul>
|
||||
<li>A</li>
|
||||
<li>B</li>
|
||||
<div>
|
||||
<li>C</li>
|
||||
<span>
|
||||
<li>D</li>
|
||||
<li>E</li>
|
||||
</span>
|
||||
<ul>
|
||||
<li>F</li>
|
||||
<li>G</li>
|
||||
</ul>
|
||||
</div>
|
||||
<li>H</li>
|
||||
<ul>
|
||||
<li>I</li>
|
||||
<li>
|
||||
J
|
||||
<ul>
|
||||
<li>K</li>
|
||||
<li>L</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>If no ancestors generate CSS boxes, the list item has no owner, and thus gets numbered as 0</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
margin-left: 50px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>0. A
|
||||
0. B
|
||||
0. C</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<li value="0">A</li>
|
||||
<li value="0">B</li>
|
||||
<li value="0">C</li>
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>If no ancestors generate CSS boxes, the list item has no owner, and thus gets numbered as 0</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-no-list-owner-ref.html">
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style-type: decimal;
|
||||
margin-left: 50px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>0. A
|
||||
0. B
|
||||
0. C</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<li>A</li>
|
||||
<li>B</li>
|
||||
<li>C</li>
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>List items that are not being rendered do not participate in numbering</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. D
|
||||
4. E
|
||||
5. G</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li value="1">A</li>
|
||||
<li value="2">B</li>
|
||||
<li value="3">D</li>
|
||||
<li value="4">E</li>
|
||||
<li value="5">G</li>
|
||||
</ol>
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>List items that are not being rendered do not participate in numbering</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
|
||||
|
||||
<link rel="match" href="grouping-li-reftest-not-being-rendered-ref.html">
|
||||
|
||||
<p>This test matches if the list displays similar to the following</p>
|
||||
|
||||
<pre>1. A
|
||||
2. B
|
||||
3. D
|
||||
4. E
|
||||
5. G</pre>
|
||||
|
||||
<hr>
|
||||
|
||||
<ol>
|
||||
<li>A</li>
|
||||
<li>B</li>
|
||||
<li hidden>C</li>
|
||||
<li>D</li>
|
||||
<div>
|
||||
<li>E</li>
|
||||
<li hidden>F</li>
|
||||
<li>G</li>
|
||||
</div>
|
||||
</ol>
|
Loading…
Add table
Add a link
Reference in a new issue