forked from mirrors/gecko-dev
Automatic update from web-platform-tests [TransformInterop] Make blocks whose DOM parent is an inline follow DOM tree. When the TransformInterop feature is enabled, 3D scene extension (transform-style: preserve-3d) and the perspective property should follow the DOM tree. This makes that happen for blocks (or, really, any non-inlines) whose DOM parent is an inline. Bug: 1008483 Change-Id: I5bcd6d7087c28639a053b686f90880d94f4c6986 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2956891 Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Commit-Queue: David Baron <dbaron@chromium.org> Cr-Commit-Position: refs/heads/master@{#892164} -- wpt-commits: f0b94497ad7b6ee103310f9e493386764e975863 wpt-pr: 29352
39 lines
953 B
HTML
39 lines
953 B
HTML
<!DOCTYPE HTML>
|
|
<title>CSS Test (Transforms): 3D Rendering Context following DOM Tree (inlines)</title>
|
|
<link rel="author" title="L. David Baron" href="https://dbaron.org/">
|
|
<link rel="author" title="Google" href="http://www.google.com/">
|
|
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#3d-rendering-contexts">
|
|
<meta name="assert" content="Blocks inside of inlines participate in 3D Rendering Contexts based on their parent, not their containing block.">
|
|
<link rel="match" href="transform-blank-ref.html">
|
|
|
|
<style>
|
|
|
|
.outer {
|
|
display: block;
|
|
width: 100px;
|
|
height: 100px;
|
|
transform-style: preserve-3d;
|
|
transform: rotateX(90deg);
|
|
}
|
|
|
|
.middle {
|
|
display: inline;
|
|
}
|
|
|
|
.inner {
|
|
display: block;
|
|
width: 100px;
|
|
height: 100px;
|
|
transform: rotateX(-90deg);
|
|
background: red;
|
|
}
|
|
|
|
</style>
|
|
|
|
<p>Nothing should appear except this sentence.</p>
|
|
|
|
<div class="outer">
|
|
<div class="middle">
|
|
<div class="inner"></div>
|
|
</div>
|
|
</div>
|