Bug 148861 - ol.start returns 0 on a reversed list if the layout had never happened
Summary: ol.start returns 0 on a reversed list if the layout had never happened
Status: RESOLVED DUPLICATE of bug 161713
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-09-04 17:41 PDT by Ryosuke Niwa
Modified: 2016-09-08 21:58 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2015-09-04 17:41:08 PDT
<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
Comment 1 Radar WebKit Bug Importer 2015-09-04 17:42:11 PDT
<rdar://problem/22588902>
Comment 2 Ryosuke Niwa 2015-09-04 18:05:22 PDT
This is also introducing failures in html/semantics/grouping-content/the-ol-element/grouping-ol.html
Comment 3 Ryosuke Niwa 2016-09-08 21:58:55 PDT

*** This bug has been marked as a duplicate of bug 161713 ***