Bug 148861
| Summary: | ol.start returns 0 on a reversed list if the layout had never happened | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | cdumez, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ryosuke Niwa
<ol id='ol' reversed>
<li>Three</li>
<li>Two</li>
<li>One</li>
</ol>
<script>
alert(document.getElementById('ol').start)
setTimeout(function () {alert(document.getElementById('ol').start)}, 0);
</script>
yields 0 and then 3 but they should both be 3.
This bug was found by the newly added test:
LayoutTests/http/tests/w3c/html/semantics/grouping-content/the-ol-element/ol.start-reflection-2.html
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/22588902>
Ryosuke Niwa
This is also introducing failures in html/semantics/grouping-content/the-ol-element/grouping-ol.html
Ryosuke Niwa
*** This bug has been marked as a duplicate of bug 161713 ***