Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-borders/border-shape/border-shape-ignore-radius.html
<!DOCTYPE html> <title>CSS Border Shape: border-radius is ignored when border-shape is specified</title> <link rel="help" href="https://drafts.csswg.org/css-borders-4/#border-shape-radius-interaction"> <link rel="match" href="border-shape-ignore-radius-ref.html"> <style> .test { width: 200px; height: 200px; box-sizing: border-box; margin: 50px auto; outline: 1px solid black; border: 10px solid transparent; background: linear-gradient(green, green); /* Outer shape is sharp border-box (inset 0). Inner shape is rounded, inset by 10px (matching the border width). */ border-shape: inset(0px) inset(10px round 20px); border-radius: 999px; } </style> <div class="test"></div>
/css/css-borders/border-shape/border-shape-ignore-radius-ref.html
<!DOCTYPE html> <style> .test { width: 200px; height: 200px; box-sizing: border-box; margin: 50px auto; outline: 1px solid black; border: 10px solid transparent; background: linear-gradient(green, green); /* Same border-shape as the test, but with border-radius: 0. If they match, then border-radius on the test was successfully ignored. */ border-shape: inset(0px) inset(10px round 20px); border-radius: 0px; } </style> <div class="test"></div>