mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -0,0 +1,35 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>Tests that after making a button a containing block, dynamically-inserted abspos boxes still get positioned correctly</title>
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1740439">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-position/#abspos-insets">
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
||||
<link rel="match" href="containing-block-change-button-ref.html">
|
||||
<style>
|
||||
#button {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
margin: 100px;
|
||||
background-color: purple;
|
||||
border: 0;
|
||||
padding: 10px;
|
||||
}
|
||||
#button > div {
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: green;
|
||||
/* Vertically centered to match in-flow button layout of the reference */
|
||||
top: 150px;
|
||||
left: 0;
|
||||
}
|
||||
</style>
|
||||
<button id="button"></button>
|
||||
<script>
|
||||
let button = document.getElementById("button");
|
||||
button.getBoundingClientRect();
|
||||
button.style.position = "relative";
|
||||
button.getBoundingClientRect();
|
||||
button.appendChild(document.createElement("div"));
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue