summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/reference/contain-body-w-m-001-ref.html
blob: 3341816e2b01433d8b24acc5cbd05a915c2c2736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html lang=en>
  <meta charset=utf-8>
  <title>CSS-contain test reference</title>
  <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">

<style>
html::before {
    content: "";
    width: 100px;
    height: 100px;
    background: orange;
    display: block;
}
body { margin: 0; }
p {
    margin: 0;
    width: 200px;
    height: 200px;
}
</style>

<p>Test passes if the orange square is in the upper-left corner.