Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-values/calc-ch-ex-lang.html
<!doctype html> <meta charset="utf-8"> <title>CSS Test: Calc in font-size with ch / ex units across lang changes</title> <link rel="help" href="https://drafts.csswg.org/css-values/#ch"> <link rel="help" href="https://drafts.csswg.org/css-values/#ex"> <link rel="help" href="https://drafts.csswg.org/css-values/#funcdef-calc"> <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1431031"> <link rel="match" href="calc-ch-ex-lang-ref.html"> <style> div[lang] { font-size: calc(1ex + 1ch + 1em); } </style> <div lang="en"> <div style="width: 1em; height: 1em; background: green;"></div> </div>
/css/css-values/calc-ch-ex-lang-ref.html
<!doctype html> <meta charset="utf-8"> <title>CSS Test Reference</title> <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> <style> div { width: calc(1ex + 1ch + 1em); height: calc(1ex + 1ch + 1em); background: green; } </style> <div></div>