mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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>
|
|
@ -17,9 +17,6 @@
|
|||
|
||||
<p>These reftests are necessary because the values of the ol's li children as calculated by the user agent are NOT available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>"The reversed attribute is a boolean attribute. If present, it indicates that the list is a descending list (..., 3, 2, 1). If the attribute is omitted, the list is an ascending list (1, 2, 3, ...)."</blockquote>
|
||||
|
||||
<p><strong>This reftest passes if you see an ascending list followed by two descending lists.</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
|
||||
<p>These reftests are necessary because the values of the ol's li children as calculated by the user agent are NOT available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>"The reversed attribute is a boolean attribute. If present, it indicates that the list is a descending list (..., 3, 2, 1). If the attribute is omitted, the list is an ascending list (1, 2, 3, ...)."</blockquote>
|
||||
|
||||
<p><strong>This reftest passes if you see an ascending list followed by two descending lists.</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote><p>The first item in the list has the ordinal value given by the ol element's start attribute, unless that li element has a value attribute with a value that can be successfully parsed, in which case it has the ordinal value given by that value attribute.</p>
|
||||
<p>Each subsequent item in the list has the ordinal value given by its value attribute, if it has one, or, if it doesn't, the ordinal value of the previous item, plus one if the reversed is absent, or minus one if it is present.</p></blockquote>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are numbered identically to the horizontal sequence immediately above those list items.</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -17,10 +17,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote><p>The first item in the list has the ordinal value given by the ol element's start attribute, unless that li element has a value attribute with a value that can be successfully parsed, in which case it has the ordinal value given by that value attribute.</p>
|
||||
<p>Each subsequent item in the list has the ordinal value given by its value attribute, if it has one, or, if it doesn't, the ordinal value of the previous item, plus one if the reversed is absent, or minus one if it is present.</p></blockquote>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are numbered identically to the horizontal sequence immediately above those list items.</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote><p>The first item in the list has the ordinal value given by the ol element's start attribute, unless that li element has a value attribute with a value that can be successfully parsed, in which case it has the ordinal value given by that value attribute.</p>
|
||||
<p>Each subsequent item in the list has the ordinal value given by its value attribute, if it has one, or, if it doesn't, the ordinal value of the previous item, plus one if the reversed is absent, or minus one if it is present.</p></blockquote>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are numbered identically to the horizontal sequence immediately above those list items.</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -17,10 +17,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote><p>The first item in the list has the ordinal value given by the ol element's start attribute, unless that li element has a value attribute with a value that can be successfully parsed, in which case it has the ordinal value given by that value attribute.</p>
|
||||
<p>Each subsequent item in the list has the ordinal value given by its value attribute, if it has one, or, if it doesn't, the ordinal value of the previous item, plus one if the reversed is absent, or minus one if it is present.</p></blockquote>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are numbered identically to the horizontal sequence immediately above those list items.</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote><p>The type attribute represents the state given in the cell in the second column of the row whose first cell matches the attribute's value; if none of the cells match, or if the attribute is omitted, then the attribute represents the decimal state.</p></blockquote>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote><p>The type attribute represents the state given in the cell in the second column of the row whose first cell matches the attribute's value; if none of the cells match, or if the attribute is omitted, then the attribute represents the decimal state.</p></blockquote>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>User agents should render the items of the list in a manner consistent with the state of the type attribute of the ol element.</blockquote>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>User agents should render the items of the list in a manner consistent with the state of the type attribute of the ol element.</blockquote>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states: Numbers less than or equal to zero should always use the decimal system regardless of the type attribute.</p>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
<body>
|
||||
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
|
||||
|
||||
<p>The spec states: Numbers less than or equal to zero should always use the decimal system regardless of the type attribute.</p>
|
||||
|
||||
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
|
||||
<p>(Note: each list item has no content; only the sequencing should appear.)</p>
|
||||
|
||||
|
|
|
@ -230,83 +230,68 @@
|
|||
// is the number of child li elements otherwise."
|
||||
// "The start IDL attribute has the same default as its content attribute."
|
||||
|
||||
// basic - default should be 1
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("basic").start, 1, "no start attribute provided -> 1");
|
||||
assert_equals(document.getElementById("basic").start, 1);
|
||||
}, "Default start value for non-reversed list should be 1");
|
||||
|
||||
// decimal's first element has value of .5 which should return 1
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("decimal").start, 1, "start of .5 -> 1 (default)");
|
||||
assert_equals(document.getElementById("decimal").start, 1);
|
||||
}, "IDL and content attribute parse start of '.5' correctly.");
|
||||
|
||||
// letter's first element has value of A which should return 1
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("letter").start, 1, "start of A -> 1 (default)");
|
||||
assert_equals(document.getElementById("letter").start, 1);
|
||||
}, "IDL and content attribute parse start of 'A' correctly.");
|
||||
|
||||
// basicRevGoodName - default should be 3
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("basicRevGoodName").start, 3, "no start attribute provided -> 3");
|
||||
}, "Default start value (if none provided) for reversed list = child li elements.");
|
||||
assert_equals(document.getElementById("basicRevGoodName").start, 1);
|
||||
}, "Default start value (if none provided) for reversed list = 1.");
|
||||
|
||||
// basicRevEmpty - default should be 3
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("basicRevEmpty").start, 3, "start of A -> 3 (default)");
|
||||
}, "Default start value (if failed to parse) for reversed list = child li elements.");
|
||||
assert_equals(document.getElementById("basicRevEmpty").start, 1);
|
||||
}, "Default start value (if failed to parse) for reversed list = 1.");
|
||||
|
||||
// lots - default should be 3
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("lots").start, 3, "no start attribute -> 3 (default)");
|
||||
}, "Default start value for reversed list = child li elements (even with tons of other child elements).");
|
||||
assert_equals(document.getElementById("lots").start, 1);
|
||||
}, "Default start value for reversed list = 1 (even with tons of other child elements).");
|
||||
|
||||
// adding child element changes default start value for reversed list
|
||||
test(function() {
|
||||
var myList = document.getElementById("basicRevGoodName"), myLI = document.createElement("li");
|
||||
myList.appendChild(myLI);
|
||||
assert_equals(document.getElementById("basicRevGoodName").start, 4, "Adding child element to reversed list adds 1 to start value");
|
||||
}, "Adding child element to reversed list adds 1 to start value");
|
||||
assert_equals(document.getElementById("basicRevGoodName").start, 1);
|
||||
}, "Adding child element to reversed list does not change start value");
|
||||
|
||||
// removing child element changes default start value for reversed list
|
||||
test(function() {
|
||||
var myList = document.getElementById("basicRevTrue");
|
||||
myList.removeChild(myList.children[0]);
|
||||
assert_equals(document.getElementById("basicRevTrue").start, 2, "Deleting child element from reversed list reduces start value by 1");
|
||||
}, "Deleting child element from reversed list reduces start value by 1");
|
||||
assert_equals(document.getElementById("basicRevTrue").start, 1);
|
||||
}, "Deleting child element from reversed list does not change start value");
|
||||
|
||||
// start2's first element has value of 2
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("start2").start, 2, "start of 2 -> 2");
|
||||
assert_equals(document.getElementById("start2").start, 2);
|
||||
}, "IDL and content attribute parse start of '2' correctly.");
|
||||
|
||||
// negative's first element has value of -10
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("negative").start, -10, "start of -10 -> -10");
|
||||
assert_equals(document.getElementById("negative").start, -10);
|
||||
}, "IDL and content attribute parse start of '-10' correctly.");
|
||||
|
||||
// posFloatDown's first element has value of 4.03 which should return 4
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("posFloatDown").start, 4, "start of 4.03 -> 4");
|
||||
assert_equals(document.getElementById("posFloatDown").start, 4);
|
||||
}, "IDL and content attribute parse start of '4.03' correctly.");
|
||||
|
||||
// negFloatDown's first element has value of -4.03 which should return -4
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("negFloatDown").start, -4, "start of -4.03 -> -4");
|
||||
assert_equals(document.getElementById("negFloatDown").start, -4);
|
||||
}, "IDL and content attribute parse start of '-4.03' correctly.");
|
||||
|
||||
// posFloatUp's first element has value of 4.9 which should return 4
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("posFloatUp").start, 4, "start of 4.9 -> 4");
|
||||
assert_equals(document.getElementById("posFloatUp").start, 4);
|
||||
}, "IDL and content attribute parse start of '4.9' correctly.");
|
||||
|
||||
// negFloatUp's first element has value of -4.9 which should return -4
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("negFloatUp").start, -4, "start of -4.9 -> -4");
|
||||
assert_equals(document.getElementById("negFloatUp").start, -4);
|
||||
}, "IDL and content attribute parse start of '-4.9' correctly.");
|
||||
|
||||
// exponent's first element has value of 7e2 which should return 7
|
||||
test(function() {
|
||||
assert_equals(document.getElementById("exponent").start, 7, "start of 7e2 -> 7");
|
||||
assert_equals(document.getElementById("exponent").start, 7);
|
||||
}, "IDL and content attribute parse start of '7e2' correctly.");
|
||||
|
||||
</script>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<div id='log'></div>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_equals(document.getElementById('ol').start, 3);
|
||||
assert_equals(document.getElementById('ol').start, 1);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>`reversed` should reverse the numbering correctly</title>
|
||||
<link rel=match href="reversed-1-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
|
||||
<ol reversed>
|
||||
<li>Three</li>
|
||||
<li>Two</li>
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Dynamically setting `reversed` should update the numbering</title>
|
||||
<link rel=match href="reversed-1-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
|
||||
<ol id="x">
|
||||
<li>Three</li>
|
||||
<li>Two</li>
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Reversed numbering should update on dynamic addition of child nodes</title>
|
||||
<link rel=match href="reversed-1-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
|
||||
<ol id="x" reversed>
|
||||
<li>Three</li>
|
||||
<li>Two</li>
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Reverse numbering should not be affected by nested div</title>
|
||||
<link rel=match href="reversed-1-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
|
||||
<ol reversed>
|
||||
<li>Three</li>
|
||||
<div>
|
||||
<li>Two</li>
|
||||
<li>One</li>
|
||||
</div>
|
||||
</ol>
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Reverse numbering should not count display:none elements</title>
|
||||
<link rel=match href="reversed-1-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
|
||||
<ol reversed>
|
||||
<li>Three</li>
|
||||
<li style="display:none">Three</li>
|
||||
<li>Two</li>
|
||||
<li>One</li>
|
||||
</ol>
|
Loading…
Add table
Add a link
Reference in a new issue