clip-path-reference-restore.html (875B)
1 <!DOCTYPE html> 2 <title>CSS Masking: Consecutive clip-paths don't affect each other.</title> 3 <link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com"> 4 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path"> 5 <link rel="issue" href="https://crbug.com/391291"> 6 <link rel="match" href="reference/clip-path-reference-restore-ref.html"> 7 <meta name="assert" content="Check that consecutive clip-paths don't affect each other"/> 8 <style> 9 .error { 10 width: 100px; 11 height: 100px; 12 background-color: red; 13 position: absolute; 14 } 15 .test { 16 width: 200px; 17 height: 50px; 18 background-color: green; 19 clip-path: url(#c); 20 } 21 </style> 22 <div class="error"></div> 23 <div class="test"></div> 24 <div class="test"></div> 25 <svg> 26 <defs> 27 <clipPath id="c" clipPathUnits="objectBoundingBox"> 28 <rect width="0.5" height="1"/> 29 </clipPath> 30 </defs> 31 </svg>