Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-borders/border-shape/border-shape-geometry-box.html
<!DOCTYPE html> <title>CSS Borders Test: border-shape with geometry box</title> <link rel="help" href="https://drafts.csswg.org/css-borders-4/#border-shape"> <link rel="match" href="border-shape-geometry-box-ref.html"> <style> body { margin: 0; } .container { display: inline-block; background: yellow; } .test { width: 100px; height: 100px; background: thistle; padding: 10px; margin: 10px; border: 10px solid palegoldenrod; } .contents { width: 100%; height: 100%; background: lightblue; } #margin-border { border-shape: polygon(0 0, 100% 0, 100% 100%, 0 100%) margin-box polygon(0 0, 100% 0, 100% 100%, 0 100%) border-box; } #border-padding { border-shape: polygon(0 0, 100% 0, 100% 100%, 0 100%) border-box polygon(0 0, 100% 0, 100% 100%, 0 100%) padding-box; } #padding-content { border-shape: polygon(0 0, 100% 0, 100% 100%, 0 100%) padding-box polygon(0 0, 100% 0, 100% 100%, 0 100%) content-box; } #margin-content { border-shape: polygon(0 0, 100% 0, 100% 100%, 0 100%) margin-box polygon(0 0, 100% 0, 100% 100%, 0 100%) content-box; } </style> <div class="container"> <div class="test" id="margin-border"> <div class="contents"></div> </div> </div> <div class="container"> <div class="test" id="border-padding"> <div class="contents"></div> </div> </div> <div class="container"> <div class="test" id="padding-content"> <div class="contents"></div> </div> </div> <div class="container"> <div class="test" id="margin-content"> <div class="contents"></div> </div> </div>
/css/css-borders/border-shape/border-shape-geometry-box-ref.html
<!DOCTYPE html> <style> body { margin: 0; } .container { display: inline-block; } svg { display: block; } </style> <div class="container"> <svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"> <rect width="160" height="160" fill="palegoldenrod" /> <rect x="10" y="10" width="140" height="140" fill="thistle" /> <rect x="30" y="30" width="100" height="100" fill="lightblue" /> </svg> </div> <div class="container"> <svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"> <rect width="160" height="160" fill="yellow" /> <rect x="10" y="10" width="140" height="140" fill="palegoldenrod" /> <rect x="20" y="20" width="120" height="120" fill="thistle" /> <rect x="30" y="30" width="100" height="100" fill="lightblue" /> </svg> </div> <div class="container"> <svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"> <rect width="160" height="160" fill="yellow" /> <rect x="20" y="20" width="120" height="120" fill="palegoldenrod" /> <rect x="30" y="30" width="100" height="100" fill="lightblue" /> </svg> </div> <div class="container"> <svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"> <rect width="160" height="160" fill="palegoldenrod" /> <rect x="30" y="30" width="100" height="100" fill="lightblue" /> </svg> </div>