summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/div-orthogonal-auto-margin-ref.html
blob: 5ed5b30a5d6f29ad29f4d4fe09cea728a6afdbca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE HTML>
<title> Ensure element is centered by auto margin for orthogonal writing mode </title>
<style>
  div {
    inset: 0;
    background-color: black;
    writing-mode: vertical-rl;
    margin: auto;
    position: absolute;
    block-size: 200px;
    inline-size: 100px;
    border: 5px solid red;
  }
</style>
<div></div>