mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 3bfdeb8976fc51748935c8d1f1014dfba8e08dfb
This commit is contained in:
parent
fcd6beb608
commit
cb63cfd5c7
185 changed files with 3083 additions and 1074 deletions
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>Setting composited layer position paints properly</title>
|
||||
<link rel="author" title="Mason Freed" href="masonfreed@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/">
|
||||
<link rel="match" href="set-composited-layer-position-ref.html">
|
||||
|
||||
<div id="box"></div>
|
||||
<div id="tomove"></div>
|
||||
<style>
|
||||
div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
will-change: transform;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
#box {
|
||||
background: red;
|
||||
}
|
||||
#tomove {
|
||||
background: green;
|
||||
top: 200px;
|
||||
left: 200px;
|
||||
filter: invert(0);
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
requestAnimationFrame(function() {
|
||||
requestAnimationFrame(function() {
|
||||
tomove = document.getElementById("tomove");
|
||||
tomove.style.top = 0;
|
||||
tomove.style.left = 0;
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue