summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/preserve3d-pseudo-element.html
blob: a84482e5ecd549d57f0cca49dcd0bdde5f622eff (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>
<title>CSS Test: preserve-3d on pseudo elements</title>
<link rel="author" title="Matt Woodrow" href="mailto:mattwoodrow@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/">
<link rel="match" href="preserve3d-pseudo-element-ref.html">
<style>
div {
  width: 200px;
  height: 200px;
  transform: rotateX(90deg);
  transform-style: preserve-3d;
}

div::before {
  display: inline-block;
  width: 200px;
  height: 200px;
  transform: rotateX(90deg);
  content: '';
  background-color: green;
}
</style>
<div></div>