layout/reftests/forms/button/percent-width-child-2-ref.html

branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
equal deleted inserted replaced
-1:000000000000 0:82efe9f1aa6b
1 <!DOCTYPE html>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <html>
7 <head>
8 <style>
9 div.button {
10 display: inline-block;
11 border: 0;
12
13 /* Padding to match the -moz-focus-inner border/padding in testcase: */
14 padding: 1px 7px 1px 3px;
15
16 font: 10px sans-serif;
17 text-align: center;
18 vertical-align: top;
19
20 color: black;
21 background: gray;
22 }
23
24 div.p80 {
25 width: 80%;
26 background: pink;
27 }
28
29 div.p100 {
30 width: 100%;
31 background: yellow;
32 }
33 </style>
34 </head>
35 <body>
36 <!--Button has explicit width for us to resolve against: -->
37 <div class="button" style="width: 100px">
38 <div class="p80">abc</div>
39 </div>
40
41 <div class="button" style="width: 100px">
42 <div class="p100">abc</div>
43 </div>
44
45 <!--Button is using intrinsic width: -->
46 <div class="button">
47 <div class="p80">abc</div>
48 </div>
49
50 <div class="button">
51 <div class="p100">abc</div>
52 </div>
53
54 </body>
55 </html>

mercurial