summaryrefslogtreecommitdiffstats
path: root/layout/reftests/xul/text-crop-002.xhtml
blob: f32fece87f76acd0329ba798cf1ea5ad2b1b7236 (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
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<window
    xmlns:html="http://www.w3.org/1999/xhtml"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <html:style type="text/css">
    @font-face {
      font-family: firasans;
      src: url(../fonts/fira/FiraSans-Regular.otf);
    }
    hbox {
      font-family: firasans;
      font-size: 40px;
    }
    image {
      background-color: purple;
    }
    label {
      width: 230px;
      color: green;
      background-color: blue;
    }
    .with-padding {
      padding-inline: 10px 50px;
    }
  </html:style>
  <hbox style="width: 230px">
    <image style="width: 40px; height: 40px"/>
    <label crop="center" value="abcdefghijklmnopqrstuvwxyz"/>
  </hbox>
  <hbox style="width: 230px">
    <image style="width: 40px; height: 40px"/>
    <label class="with-padding" crop="center" value="abcdefghijklmnopqrstuvwxyz"/>
  </hbox>
</window>