summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/backface-visibility-hidden-003-ref.html
blob: 7dab6b947fb6bf1d927e659fcacce87d8d4fa23e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<title>backface visibility: hidden applies to pseudo-stacking contexts</title>
<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property">
<link rel="help" href="http://www.w3.org/TR/css-transforms-2/#propdef-backface-visibility">

<p>The test passes if there is a green rectangle and no red</p>
<style>
  div {
    width: 100px;
    height: 100px;
  }
  .target {
    transform: rotateY(180deg);
  }
</style>
<div class=target style="backface-visibility: hidden">
</div>
<div class=target>
  <div style="background: green"></div>
</div>