summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-containing-block.html
blob: cefb3584eaea3f93896b5f901d3cbaa3d8727d6a (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
<!DOCTYPE html>
<title>fieldset containing block</title>
<link rel=match href=fieldset-containing-block-ref.html>
<style>
p { margin: 0; height: 100px }
fieldset { position: relative; border: none; padding: 0; margin: 0; }
legend { padding: 0; width: 100px; height: 50px; background: lime; }
div { position: absolute; top: 0; width: 100px; height: 50px; background: lime; }
.behind { height:100px; top: 108px; background: red; }

.fixed-container {
  filter: invert();
  overflow: hidden;
  width: 200px;
  height: 200px;
}
.fixed {
  position: fixed;
  width: 400px;
  height: 100px;
  background: linear-gradient(to right, #ff00ff 50%, #00ffff 50%);
}
.has-fixed {
  width: 0px;
  height: 0px;
}
</style>
<p>There should be no red.</p>
<div class="behind"></div>
<fieldset><legend></legend><div></div></fieldset>

<fieldset class="fixed-container">
<legend class="has-fixed"><div style="position:fixed; width:0; height0;"></div></legend>
<div class="fixed"></div>
</fieldset>