layout/reftests/counters/t1202-counters-16-c-test.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     3  <head>
     4   <title>CSS 2.1 Test Suite: content: counters() string argument</title>
     5   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/>
     6   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/>
     7   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counter-styles"/>
     8   <style type="text/css">
    10   body, #test { counter-reset: c; }
    11   p, #test span { counter-increment: c; }
    13   span#one:before { content: counters(c, ".") " - "; }
    14   span#two:before { content: counters(c, "") " - "; }
    15   span#three:before { content: counters(c, ".", decimal) "--    --" counters(c, "-------", decimal); }
    17   </style>
    18  </head>
    19  <body>
    21  <p></p>
    23  <div id="test"><span id="one"></span><span id="two"></span><span id="three"></span></div>
    26  </body>
    27 </html>

mercurial