first-line-and-marker.html (959B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Interaction of ::first-line and ::marker</title> 4 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com" /> 5 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo"> 6 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo"> 7 <link rel="match" href="first-line-and-marker-ref.html"> 8 <meta name="assert" content="Tests ::marker interaction with ::first-line pseudo element"> 9 <style> 10 li::first-line { 11 background: cyan; 12 } 13 .inside { 14 list-style-position: inside; 15 } 16 .string { 17 list-style-type: "2. "; 18 } 19 .content::marker { 20 content: "3. "; 21 } 22 </style> 23 <ol class="inside"> 24 <li class="decimal">inside decimal</li> 25 <li class="string">inside string</li> 26 <li class="content">inside content</li> 27 </ol> 28 <ol class="outside"> 29 <li class="decimal">outside decimal</li> 30 <li class="string">outside string</li> 31 <li class="content">outside content</li> 32 </ol>