registered-property-value-002.https.html (809B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <title>Inherited values 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="outer"> 11 <div id="target"></div> 12 </div> 13 <script> 14 try { 15 CSS.registerProperty({ 16 name: '--prop', 17 syntax: '<length>', 18 initialValue: '0px', 19 inherits: true 20 }); 21 22 outer.style.setProperty('--prop', '13px'); 23 24 expectWorkletValue(target, '--prop', '[CSSUnitValue 13px]'); 25 } catch(e) { 26 document.body.textContent = e; 27 takeScreenshot(); 28 } 29 </script> 30 </body> 31 </html>