idlharness.html (955B)
1 <!doctype html> 2 <title>css-masking IDL tests</title> 3 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/WebIDLParser.js"></script> 7 <script src="/resources/idlharness.js"></script> 8 9 <script> 10 'use strict'; 11 12 idl_test( 13 ['css-masking'], 14 ['SVG', 'html', 'dom'], 15 idl_array => { 16 idl_array.add_objects({ 17 SVGClipPathElement: [document.querySelector('#clip1')], 18 SVGMaskElement: [document.querySelector('#mask1')], 19 }); 20 } 21 ); 22 </script> 23 24 <svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml"> 25 <clipPath id="clip1"> 26 <rect x="50" y="50" width="100" height="100" /> 27 </clipPath> 28 <mask id="mask1" x="0" y="0" width="1" height="1" maskContentUnits="objectBoundingBox"> 29 <rect x="0" y="0" width="1" height="1" fill="white" /> 30 </mask> 31 </svg>