marker-content-001b.html (622B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: ::marker pseudo elements styled with 'content' property</title> 6 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com"> 7 <link rel="match" href="marker-content-001-ref.html"> 8 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo"> 9 <style> 10 li::marker { 11 content: "1.\00a0"; 12 display: block; 13 } 14 li:nth-of-type(2)::marker { 15 content: "2.\00a0"; 16 } 17 li:nth-child(3)::marker { 18 content: "3.\00a0"; 19 } 20 span { font-size: 32pt; } 21 </style> 22 </head> 23 <body> 24 <ol><li></li><li>B</li><li><span>C</span></li></ol> 25 </body> 26 </html>