clip-border-area-on-body-propagated-to-root.html (520B)
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="../reference/green-root-background.html"> 5 <style> 6 html, body { 7 box-sizing: border-box; 8 height: 100%; 9 margin: 0; 10 } 11 html { 12 color: transparent; 13 border: 20px solid transparent; 14 } 15 body { 16 background-color: green; 17 background-clip: border-area; 18 } 19 </style> 20 21 The border should not be visible; the page should be entirely green.