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