list-style-image-zoom-dynamic.html (1238B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>CSS Test: Image list markers with dynamic zoom</title> 5 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-lists/#image-markers"> 7 <link rel="match" href="list-style-image-zoom-dynamic-ref.html"> 8 <meta name="assert" content="Checks that, if the non-standard 'zoom' property is supported, list marker images are correctly updated when the 'zoom' value changes dynamically."> 9 <style> 10 .zoom { 11 zoom: 2; 12 } 13 ol { 14 list-style-position: inside; 15 } 16 .gradient { 17 list-style-image: linear-gradient(blue, cyan); 18 } 19 .image { 20 list-style-image: url("/css/support/blue-100.png"); 21 } 22 .svg { 23 list-style-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' style='background: blue'></svg>"); 24 } 25 </style> 26 <ol> 27 <li class="gradient">text</li> 28 <li class="image">text</li> 29 <li class="svg">text</li> 30 </ol> 31 <script src="/common/reftest-wait.js"></script> 32 <script> 33 // Use a "load" event listener to ensure the images have been loaded. 34 addEventListener("load", () => { 35 document.body.offsetLeft; 36 document.body.classList.add("zoom"); 37 takeScreenshot(); 38 }, {once: true}); 39 </script> 40 </html>