tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

marker-list-style-position.html (1771B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Test: ::marker pseudo elements styled with 'list-style-position' property</title>
      6 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
      7 <!-- It's not clear whether inside ::marker should be affected by ::first-line.
      8     In the 1st reference, #t3 markers inherit the blue color (like Firefox),
      9     and in the 2nd reference they don't (like Chromium and WebKit).
     10     See https://github.com/w3c/csswg-drafts/issues/4506 -->
     11 <link rel="match" href="marker-list-style-position-ref-001.html">
     12 <link rel="match" href="marker-list-style-position-ref-002.html">
     13 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
     14 <meta name="assert" content="It's the list-style-position on the list item element that decides where its ::marker is placed, not the value on the ::marker itself.">
     15 <style>
     16 body { color: black; background: white; }
     17 #t1 > li { list-style-position: inside; }
     18 #t1 li::marker { list-style-position: outside; color: blue; }
     19 
     20 #t2 > li { list-style-position: outside; }
     21 #t2 li::marker { list-style-position: inside; color: blue; }
     22 
     23 #t3 > li { list-style-position: inside; }
     24 #t3 > li::first-line { list-style-position: outside; color: blue; }
     25 #t3 li::marker { list-style-position: outside; }
     26 
     27 #t4 > li { list-style-position: inside; }
     28 #t4 > li::first-letter { list-style-position: outside; color: blue; }
     29 #t4 li::marker { list-style-position: outside; }
     30 
     31 span { font-size: 32pt; }
     32 </style>
     33 </head>
     34 <body>
     35 <ol id="t1"><li></li><li>B</li><li><span>C</span></li></ol>
     36 <ol id="t2"><li></li><li>B</li><li><span>C</span></li></ol>
     37 <ol id="t3"><li></li><li>B</li><li><span>C</span></li></ol>
     38 <ol id="t4"><li></li><li>B</li><li><span>C</span></li></ol>
     39 </body>
     40 </html>