summaryrefslogtreecommitdiffstats
path: root/layout/reftests/writing-mode/1163238-orthogonal-auto-margins.html
blob: e4758ec6fe9a120f233438de2905915b75cf02ca (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
<!DOCTYPE html>
<html>
<head>
  <style>
    body {
      border: 1px solid blue;
    }
    .vlr {
      border: 5px solid green;
      width: 200px;
      height: 400px;
      writing-mode: vertical-lr;
      margin: auto;
    }
    .h1 {
      border: 10px solid red;
      width: 100px;
      height: 200px;
      writing-mode: horizontal-tb;
      margin: auto;
    }
    .vrl {
      background: yellow;
      width: 50px;
      height: 100px;
      writing-mode: vertical-rl;
      margin: auto;
    }
    .h2 {
      background: black;
      width: 20px;
      height: 50px;
      writing-mode: horizontal-tb;
      margin: auto;
    }
  </style>
</head>
<body>
  <div class="vlr">
    <div class="h1">
      <div class="vrl">
        <div class="h2">