mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision d7afcb8708eac08a614d161d5622a48172daf7e3
This commit is contained in:
parent
6f8bb4dd40
commit
edff458e23
791 changed files with 17647 additions and 10322 deletions
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html class='reftest-wait'>
|
||||
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" />
|
||||
<meta name="assert" content="Tests a dynamic change in height correctly resizes a child element."/>
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<style>
|
||||
#container {
|
||||
background: red;
|
||||
|
||||
box-sizing: border-box;
|
||||
border: solid green 10px;
|
||||
width: 100px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
#block {
|
||||
background: green;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
#target {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div id="container">
|
||||
<div id="target">
|
||||
<div id="block"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.body.offsetTop;
|
||||
const container = document.getElementById('container');
|
||||
container.style.height = '100px';
|
||||
document.body.offsetTop;
|
||||
takeScreenshot();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue