fune/testing/web-platform/tests/css/css-transforms/backface-visibility-hidden-004-ref.html
Chris Harrelson c5a6e3ef4e Bug 1642020 [wpt PR 23865] - Add WPT tests for TransformInterop feature., a=testonly
Automatic update from web-platform-tests
Add WPT tests for TransformInterop feature.

Also, fix one bug revealed by these tests: getBoundingClientRect
was incorrect in cases where a transform is present, the containing
block has a perspective transform, and there are intervening DOM
elements. This was correctly implemented in PaintPropertyTreeBuilder,
but getBoundingClientRect uses another code path that goes through
LayoutObject::GetTransformFromContainer.

Bug: 1008483

Change-Id: Id075e3f3cfd9d6c725a724ad03534a4a2fc1d377
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2197895
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775848}

--

wpt-commits: bfb60a4bebc6a8bb2a83cfb0caf5e43a36dea6d2
wpt-pr: 23865
2020-06-12 09:19:02 +00:00

16 lines
616 B
HTML

<!DOCTYPE html>
<title>backface visibility: hidden does not apply to child 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;
}
</style>
<div class=target style="backface-visibility: hidden">
<div style="background: green; isolation: isolate"></div>
</div>