gecko/layout/reftests/counters/counter-ua-limits-list-00.html
L. David Baron 7f2e2e8a2c Bug 839809: Make counter-increments and list counting that would go past our internal (int32_t) limit keep the counter at its current value rather than wrapping. r=dholbert
Per CSS WG resolution regarding counter-styles-3, afternoon of 2013-02-05:
http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590
http://lists.w3.org/Archives/Public/www-style/2013Feb/0392.html

Note that this patch depends on signed integer overflow behavior in C++,
which I believe is portable despite being unspecified.
2013-02-21 18:10:59 -08:00

34 lines
861 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>test of counter UA overflow rules for HTML lists</title>
<!--
NOTE: This test cannot be contributed to the test suite because
it presumes a 4-byte unsigned integer, which is not required by
the spec. It also can't be contributed because it's testing HTML
lists.
However, it tests the rules for what happens at the UA-specific
limit, which are required by the spec.
-->
<link rel="help" href="http://dev.w3.org/csswg/css-counter-styles-3/#counter-style-range"/>
<link rel="help" href="http://krijnhoetmer.nl/irc-logs/css/20130205#l-1590"/>
<style type="text/css">
ol { margin-left: 10em; padding-left: 0; }
li { margin-left: 0; padding-left: 0 }
</style>
</head>
<body>
<ol start="2147483646">
<li>Alpha
<li>Bravo
<li>Charlie
<li>Delta
</ol>
</body>
</html>