Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-borders/tentative/border-radius-side-shorthands/border-radius-side-shorthands-001.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Borders and Box Decorations 4 Test: Physical 'border-*-radius' shorthands set the two radii of one side.</title> <link rel="author" title="Sebastian Zartner" href="mailto:sebastianzartner@gmail.com"> <link rel="help" href="https://drafts.csswg.org/css-borders-4/#corner-sizing"> <link rel="match" href="../../reference/border-radius-side-shorthands-ref.html"> <!-- TODO Test needs some fuzziness via <meta name="fuzzy">, though values for maxDifference and totalPixels are still unclear --> <meta name="assert" content="This test checks that the physical 'border-*-radius' shorthands set the corresponding 'border-[*]-radius' longhands."> <style> div { width: 100px; height: 100px; margin: 10px; } #reference-shape-1, #reference-shape-2, #reference-shape-3, #reference-shape-4 { border: 10px solid red; } #reference-shape-1 { border-top-left-radius: 40px; border-top-right-radius: 40px; border-bottom-right-radius: 20px; border-bottom-left-radius: 20px; } #reference-shape-2, #reference-shape-4 { border-top-left-radius: 1em 4em; border-top-right-radius: 2em 3em; border-bottom-right-radius: 4em 1em; border-bottom-left-radius: 3em 2em; } #reference-shape-3 { border-top-left-radius: 40px; border-top-right-radius: 20px; border-bottom-right-radius: 20px; border-bottom-left-radius: 40px; } #test-1, #test-2, #test-3, #test-4 { margin-top: -130px; border: 10px solid green; } #test-1 { border-top-radius: 40px; border-bottom-radius: 20px; } #test-2 { border-top-radius: 1em 4em / 2em 3em; border-bottom-radius: 3em 2em / 4em 1em; } #test-3 { border-left-radius: 40px; border-right-radius: 20px; } #test-4 { border-left-radius: 1em 4em / 3em 2em; border-right-radius: 2em 3em / 4em 1em; } </style> <p>Test passes if there are four green squares with rounded corners and <strong>no red</strong>. <div id="reference-shape-1"></div> <div id="test-1"></div> <div id="reference-shape-2"></div> <div id="test-2"></div> <div id="reference-shape-3"></div> <div id="test-3"></div> <div id="reference-shape-4"></div> <div id="test-4"></div>
/css/css-borders/reference/border-radius-side-shorthands-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Reftest Reference</title> <link rel="author" title="Sebastian Zartner" href="mailto:sebastianzartner@gmail.com"> <style> div { width: 100px; height: 100px; margin: 10px; } #reference-shape-1, #reference-shape-2, #reference-shape-3, #reference-shape-4 { border: 10px solid green; } #reference-shape-1 { border-top-left-radius: 40px; border-top-right-radius: 40px; border-bottom-right-radius: 20px; border-bottom-left-radius: 20px; } #reference-shape-2, #reference-shape-4 { border-top-left-radius: 1em 4em; border-top-right-radius: 2em 3em; border-bottom-right-radius: 4em 1em; border-bottom-left-radius: 3em 2em; } #reference-shape-3 { border-top-left-radius: 40px; border-top-right-radius: 20px; border-bottom-right-radius: 20px; border-bottom-left-radius: 40px; } </style> <p>Test passes if there are four green squares with rounded corners and <strong>no red</strong>. <div id="reference-shape-1"></div> <div id="reference-shape-2"></div> <div id="reference-shape-3"></div> <div id="reference-shape-4"></div>