summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/resources/fieldset-vertical.css
blob: b358d925a76fb571eda42292e2abbf7c1c75062f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
body > div { display: inline-block }
fieldset, .fieldset { padding: 0; height:10em; width:2em; border:1em groove; margin: 0em; line-height:1 }
legend, .legend { padding: 0; width: 1em }
.legend {
  background: white; /* overlap the border to emulate the border not being painted */
  display: table; /* shrink-wrap */
}

[style="writing-mode: vertical-lr"] .legend {
  margin-left: -1em;
}
[style="writing-mode: vertical-rl"] .legend {
  margin-right: -1em;
}
.top { margin-bottom: auto }
.center { margin-top: auto; margin-bottom: auto }
.bottom { margin-top: auto }
.rtl { direction: rtl }