marker-intrinsic-contribution-002.html (1513B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>CSS Test: intrinsic contribution of ::marker</title> 5 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> 6 <link rel="match" href="marker-intrinsic-contribution-002-ref.html"> 7 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo"> 8 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic"> 9 <meta name="assert" content="Checks that that the intrinsic contribution of a ::marker is updated when 'list-style-position' changes."> 10 <style> 11 li { 12 border: 5px solid; 13 float: left; 14 clear: left; 15 } 16 .inside { 17 list-style-position: inside; 18 } 19 .symbol { 20 list-style-type: disc; 21 } 22 .decimal { 23 list-style-type: decimal; 24 } 25 .string { 26 list-style-type: "string"; 27 } 28 .content::marker { 29 content: "content"; 30 } 31 </style> 32 <ol> 33 <li class="symbol"></li> 34 <li class="decimal"></li> 35 <li class="string"></li> 36 <li class="content"></li> 37 </ol> 38 <ol class="inside"> 39 <li class="symbol"></li> 40 <li class="decimal"></li> 41 <li class="string"></li> 42 <li class="content"></li> 43 </ol> 44 <script src="/common/reftest-wait.js"></script> 45 <script> 46 "use strict"; 47 // Use a "load" event listener and requestAnimationFrame to ensure that 48 // the markers will have been laid out. 49 addEventListener("load", function() { 50 requestAnimationFrame(() => { 51 for (let list of document.querySelectorAll("ol")) { 52 list.classList.toggle("inside"); 53 } 54 takeScreenshot(); 55 }); 56 }, {once: true}); 57 </script> 58 </html>