summaryrefslogtreecommitdiffstats
path: root/layout/reftests/box-shadow/fieldset.html
blob: 581633f54b11f22280dc806965f112fe0d4b7051 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE HTML>
<html><head>
    <meta charset="utf-8">
    <title>Testcase for bug 485149</title>
    <style type="text/css">

        html,body {
            color:black; background-color:white; font-size:16px; padding:0; margin:0;
        }
	

body {padding:20px;}

fieldset {
  overflow:hidden;
  background:yellow;

  box-shadow:0 0 5px 5px #cccccc; 
  border:1px solid #000000;
  border-radius:7px;
  width:200px;
  height:50px;
  margin-left:5px;
  margin-right:2px;
  padding:10px;
}

legend { height:16px; }

p { height:40px; margin:0; }

#mask1 {
 position:absolute;
 left:0;
 top:0;
 background:black;
 z-index:1;
 width:150px;
 height:700px;
}

#mask2 {
 position:absolute;
 left:170px;
 top:330px;
 background:black;
 z-index:1;
 width:150px;
 height:300px;
}

#mask3 {
 position:absolute;
 left:0;
 top:380px;
 background:black;
 z-index:1;
 width:300px;
 height:300px;
}

</style>
</head>
<body>

<fieldset><legend>Legend</legend>
1
</fieldset>

<p></p>
<fieldset style="position:relative;"><legend>Legend</legend>
2
</fieldset>

<p></p>
<fieldset>
3
</fieldset>

<p></p>
<fieldset><legend style="width:150px;"></legend>
4
</fieldset>

<div id="mask1"></div>
<div id="mask2"></div>
<div id="mask3"></div>

</body>
</html>