mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Automatic update from web-platform-tests Re-land: "Do main-thread layer update even if hidden_by_backface_visibility"" This reverts commit 2b5c4137bacc50e5f3a925081b648b6aea43e9c7. The fix is to wait one more frame. This makes the test pass reliably on debug builds. Bug: 977658 Change-Id: Ie8a70e6043e92267f99022cdc78b7ca687370cec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2161454 Reviewed-by: Robert Flack <flackr@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#761978} -- wpt-commits: 8fbfbcc819b2160031a34df32dbc2c6366659e3f wpt-pr: 23196
51 lines
1.3 KiB
HTML
51 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html class=reftest-wait>
|
|
<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
|
|
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#propdef-backface-visibility">
|
|
<link rel="match" href="backface-visibility-hidden-animated-ref.html">
|
|
<style>
|
|
@keyframes show-backface {
|
|
0% { transform: rotateY(60deg); }
|
|
0.01% { transform: rotateY(180deg); }
|
|
100% { transform: rotateY(180deg); }
|
|
}
|
|
|
|
.flip {
|
|
animation: 10s linear 0s infinite forwards show-backface;
|
|
height: 100px;
|
|
width: 100px;
|
|
transform: rotateY(60deg);
|
|
transform-style: preserve-3d;
|
|
}
|
|
|
|
#back {
|
|
background: lightblue;
|
|
transform: rotateY(180deg);
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 200px;
|
|
height: 200px;
|
|
backface-visibility: hidden;
|
|
}
|
|
|
|
#posabs {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
background: yellow;
|
|
}
|
|
</style>
|
|
<div id="flip">
|
|
<div id="back">
|
|
<i id="posabs">Text</i>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
onload = () => requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
flip.classList.add("flip");
|
|
requestAnimationFrame(() => requestAnimationFrame(() =>
|
|
document.documentElement.classList.remove("reftest-wait")));
|
|
}));
|
|
</script>
|
|
</html>
|