background-attachment-fixed-border-radius-offset.html (777B)
1 <!doctype html> 2 <title>background-attachment: fixed with border-radius and offset</title> 3 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background-attachment"> 4 <link rel="help" href="https://crbug.com/1439780"> 5 <link rel="match" href="background-attachment-fixed-border-radius-offset-ref.html"> 6 <style> 7 .stripe { 8 position: absolute; 9 top: calc(8px - 128px); 10 width: 200px; 11 height: 683px; 12 background-image: url("/images/grgr-256x256.png"); 13 background-position: 0px -200px; 14 background-size: 1024px 768px; 15 background-repeat: no-repeat; 16 background-attachment: fixed; 17 border-radius: 1px 0 0 0; 18 clip-path: inset(0 0 385px 0); 19 } 20 body { 21 overflow: hidden; 22 height: 300vh; 23 } 24 </style> 25 <div class="stripe"></div>