summaryrefslogtreecommitdiffstats
path: root/layout/reftests/scoped-style/scoped-style-font-face.html
blob: e79e255f7fc180278362b6bfdfa4cf8e5ff38352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<body>
  <style>
    @font-face {
      font-family: Ahem;
      src: url(../fonts/Ahem.ttf);
    }
    #a { font-family: Ahem }
    #c { font-family: Ahem2 }
  </style>
  <p id=a>First</p>
  <p>
    <style scoped>
      @font-face {
        font-family: Ahem2;
        src: url(../fonts/Ahem.ttf);
      }
      p { font-family: Ahem2; color: blue }
    </style>
    Second
  </p>
  <p id=c>Third</p>
</body>