Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-images/linear-gradient-calc-em-units.html
<!DOCTYPE html> <title>CSS Images Test: Linear gradient with em in calc()</title> <link rel="help" href="https://drafts.csswg.org/css-images/#linear-gradients"> <link rel="match" href="linear-gradient-calc-em-units-ref.html"> <style> div { width: 100px; height: 100px; background: linear-gradient(blue calc(2em), yellow); } #em1 { font-size: 10px; } #em2 { font-size: 30px; } </style> <div id="em1"></div> <div id="em2"></div>
/css/css-images/linear-gradient-calc-em-units-ref.html
<!DOCTYPE html> <title>CSS Test Reference</title> <style> div { width: 100px; height: 100px; } </style> <div style="background: linear-gradient(blue 20px, yellow)"></div> <div style="background: linear-gradient(blue 60px, yellow)"></div>