mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 3adb0f89d80bb92ea1a458b3fbe461f7803549a9
This commit is contained in:
parent
173bfadaa7
commit
f3e7a5cac0
119 changed files with 2706 additions and 282 deletions
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
#change {
|
||||
height:75px;
|
||||
width:75px;
|
||||
}
|
||||
</style>
|
||||
<img id="change" src="/images/green-16x16.png"></img>
|
||||
<img src="/images/green-16x16.png"></img>
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<title>Composited images correctly re-raster when the image and bounds change</title>
|
||||
<meta charset="utf-8">
|
||||
<link rel="match" href="image-compositing-change-ref.html"/>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-img-element">
|
||||
<style>
|
||||
#change {
|
||||
will-change:transform;
|
||||
height:426px; width:426px;
|
||||
}
|
||||
</style>
|
||||
<img id="change" src="image.png"></img>
|
||||
<img id="original" src="../../../../images/green-16x16.png"></img>
|
||||
<script>
|
||||
window.onload = () => {
|
||||
requestAnimationFrame(() => {
|
||||
requestAnimationFrame(() => {
|
||||
let image = document.querySelector('#change');
|
||||
image.style.width = image.style.height = "75px";
|
||||
image.src = original.src;
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 76 B |
Loading…
Add table
Add a link
Reference in a new issue