registered-property-value-006.https.html (818B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <title>Values of <custom-ident>-properties reach worklet</title> 4 <link rel="help" href="https://drafts.css-houdini.org/css-paint-api/"> 5 <link rel="match" href="parse-input-arguments-ref.html"> 6 <script src="/common/reftest-wait.js"></script> 7 <script src="/common/worklet-reftest.js"></script> 8 <script src="./resources/utils.js"></script> 9 <body> 10 <div id="target"></div> 11 <script> 12 try { 13 CSS.registerProperty({ 14 name: '--prop', 15 syntax: '<custom-ident>', 16 initialValue: 'none', 17 inherits: false 18 }); 19 20 target.style.setProperty('--prop', 'foo'); 21 22 expectWorkletValue(target, '--prop', '[CSSKeywordValue foo]'); 23 } catch(e) { 24 document.body.textContent = e; 25 takeScreenshot(); 26 } 27 </script> 28 </body> 29 </html>