Bug 148861

Summary: ol.start returns 0 on a reversed list if the layout had never happened
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: 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   

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 ***