summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/rex-in-monospace-ref.html
blob: 27972869e6cf3b8c5cd57670b9b7c3533353a01e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>

<style>
  @font-face {
    font-family: ExTest;
    src: url(../css-values/resources/ExTest.woff);
  }
  :root {
    font-family: ExTest;
    font-size: 20px;
  }
</style>

<p style="font-family: sans-serif">The following two lines should look exactly the same.</p>

<div style="font-size: 1ex;">
  <div style="font-family: sans-serif;">
    Text.
  </div>

  <div style="font-family: sans-serif;">
    Text.
  </div>
</div>