summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-values/calc-ch-ex-lang.html
blob: eb447475d528876078aca114f80bde50349a6bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!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>