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

<style>
div {
  width: 100px;
  height: 100px;
  background: blue;
  padding: 50px;
  border-radius: 100px;
  overflow: hidden
}
div::before {
  content:"";
  display: block;
  background: green;
  width: 100px;
  height: 100px;
}
</style>

<p>Test passes if there is a green square in a rounded blue box, and no red.
<div></div>