summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/div-top-and-non-auto-margin-ref.html
blob: 42b985f3c0ecc079515aa27fb2f666be5b3f45e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE HTML>
<title> Ensure top doesn't take effect if margin isn't auto </title>
<style>
  div {
    inset: 0;
    background-color: black;
    margin: auto;
    margin-bottom: 10px;
    position: absolute;
    block-size: 200px;
    inline-size: 100px;
    border: 5px solid red;
  }
</style>
<div></div>