css-transform-property-existence.html (950B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Transforms Test: property existence</title> 6 <link rel="author" title="Intel" href="http://www.intel.com"> 7 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#propdef-transform"> 8 <meta name="flags" content="dom"> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 </head> 12 <body> 13 <div id="test"></div> 14 <div id="log"></div> 15 <script> 16 [ 17 'transform', 18 'transform-origin', 19 'transform-style', 20 'perspective', 21 'perspective-origin', 22 'backface-visibility', 23 ].forEach(property => { 24 test(() => { 25 assert_true( 26 property in document.getElementById('test').style, 27 `expect ${property}`, 28 ); 29 }, `Check the existence of ${property}.`); 30 }); 31 </script> 32 </body> 33 </html>