reference-nonexisting-existing-local.html (681B)
1 <!DOCTYPE html> 2 <title>CSS Masking: fragment of non valid URL as clip.</title> 3 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path"> 4 <link rel="match" href="reference/reference-nonexisting-existing-local-ref.html"> 5 <meta name="assert" content="Test ensures that only local URLs with a valid fragment result in a valid clip."/> 6 <style> 7 #target { 8 width: 100px; 9 height: 100px; 10 background-color: green; 11 clip-path: url(notexisting.svg#c); 12 } 13 </style> 14 <div style="background-color: red; width: 100px"> 15 <div id="target"></div> 16 </div> 17 <svg> 18 <clipPath id="c" clipPathUnits="objectBoundingBox"> 19 <circle cx="0.5" cy="0.5" r="0.5"/> 20 </clipPath> 21 </svg>