Update web-platform-tests to revision c12517985bca8a3fafd1d3f4f78df75ea4ea79cf

This commit is contained in:
WPT Sync Bot 2020-11-19 08:20:44 +00:00
parent e2687b5da8
commit 927b34500f
121 changed files with 2408 additions and 255 deletions

View file

@ -0,0 +1,19 @@
<!doctype HTML>
<html>
<meta charset="utf8">
<title>CSS Content Visibility: positioned movement update moves hidden container (reference)</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
<style>
#target {
top: 0;
left: 100px;
position: absolute;
width: 100px;
height: 100px;
background: blue;
}
</style>
<div id=target></div>

View file

@ -0,0 +1,33 @@
<!doctype HTML>
<html class="reftest-wait">
<meta charset="utf8">
<title>CSS Content Visibility: positioned movement update moves hidden container</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
<link rel="match" href="content-visibility-078-ref.html">
<meta name="assert" content="when locked, position updates still apply">
<script src="/common/reftest-wait.js"></script>
<style>
.hidden { content-visibility: hidden; }
#target {
top: 0;
left: 0;
position: absolute;
width: 100px;
height: 100px;
background: blue;
}
</style>
<div id=target class=hidden>Content</div>
<script>
function runTest() {
target.style = "left: 100px;";
takeScreenshot();
}
window.onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
</script>