clip-border-area-on-body-not-propagated-to-root.html (608B)
1 <!DOCTYPE html> 2 <title>background-clip:border-area on the root</title> 3 <link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#propdef-background-clip"> 4 <link rel="match" href="clip-border-area-on-body-not-propagated-to-root-ref.html"> 5 <style> 6 html, body { 7 box-sizing: border-box; 8 height: 100%; 9 margin: 0; 10 } 11 html { 12 background-color: white; 13 } 14 body { 15 border: 20px solid transparent; 16 background-color: green; 17 background-clip: border-area; 18 padding: 10px; 19 } 20 </style> 21 22 There should be a 20px green border around the edge of the viewport. This text should be black on a white background.