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