marker-content-008.tentative.html (851B)
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-008-ref.html"> 8 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo"> 9 <style> 10 li { 11 list-style-position: outside; 12 } 13 #t1 > li::marker { content: "a" "b"; } 14 #t2 > li::marker { content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAMCAIAAAD3UuoiAAAAGklEQVQoz2Nk%2BP%2BfgRqAiYFKYNSgUYOGp0EA%2BQMCFrJdTgsAAAAASUVORK5CYII%3D); } 15 li::before { 16 content: "c"; 17 } 18 li::after { 19 content: "d"; 20 } 21 span { font-size: 32pt; } 22 </style> 23 </head> 24 <body> 25 <ol id="t1"><li></li><li>B</li><li><span>C</span></li></ol> 26 <ol id="t2"><li></li><li>B</li><li><span>C</span></li></ol> 27 </body> 28 </html>