mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Bug 1701793 [wpt PR 28286] - [composite-bgcolor-animation] Add a LayoutBox test, a=testonly
Automatic update from web-platform-tests [composite-bgcolor-animation] Add a LayoutBox test This CL adds a layout test for the code path of LayoutBox::ComputeBackgroundIsKnownToBeObscured. Bug: 1185647 Change-Id: Iff1a6f8bd9dacd7bd6032525bf4ced4adb11fc53 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2792323 Reviewed-by: Philip Rogers <[email protected]> Commit-Queue: Xida Chen <[email protected]> Cr-Commit-Position: refs/heads/master@{#870805} -- wpt-commits: 076ec0d68fc9868dac1ba112ac249b911733ce1a wpt-pr: 28286
This commit is contained in:
1 parent
266ca9b20a
commit
1499092614
2 files changed
+62
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<style>
|
||||
.parent {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: rgb(100, 100, 0);
|
||||
}
|
||||
.container {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: rgb(100, 0, 100);
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class='parent'>
|
||||
<div class='container'></div>
|
||||
</div>
|
||||
</body>
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#background-color">
|
||||
<link rel="match" href="background-color-transition-obscured-ref.html">
|
||||
<style>
|
||||
.parent {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: rgb(0, 200, 0);
|
||||
transition: background-color 200000ms steps(2) -99999.9ms;
|
||||
}
|
||||
.container {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: rgb(0, 0, 200);
|
||||
transition: background-color 200000ms steps(2) -99999.9ms;
|
||||
}
|
||||
</style>
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<body>
|
||||
<div class="parent" id="pa">
|
||||
<div class="container" id="target"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function startTransition() {
|
||||
requestAnimationFrame(() => {
|
||||
document.getElementById('target').style.backgroundColor = "rgb(200, 0, 0)";
|
||||
document.getElementById('pa').style.backgroundColor = "rgb(200, 0, 0)";
|
||||
const animations = document.getAnimations();
|
||||
Promise.all([animations[0].ready, animations[1].ready]).then(() => {
|
||||
requestAnimationFrame(() => {
|
||||
requestAnimationFrame(() => {
|
||||
takeScreenshot();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
requestAnimationFrame(startTransition);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user