mirror of
https://github.com/servo/servo.git
synced 2025-07-25 16:20:36 +01:00
24 lines
562 B
HTML
24 lines
562 B
HTML
<!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>
|
|
</div>
|