mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Update web-platform-tests to revision 132d12daea699ce266324e79eecbe59b10e56502
This commit is contained in:
parent
527d874bc1
commit
fe00a63040
1004 changed files with 18598 additions and 92770 deletions
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Filtered block becomes containing block of absolutely positioned child</title>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty" title="5. Graphic filters: the filter property">
|
||||
<meta name="assert" content="A filtered block will be a containing block for absolutely positioned descendants. If all this takes place inside a multicol container, this means that the absolutely positioned box also has the multicol container in its containing block, which means that it should be fragmented.">
|
||||
<div id="multicol" style="columns:2;">
|
||||
<div id="container" style="height:100px;">
|
||||
<!-- The spanner is here to trigger the crash in crbug.com/847328 -->
|
||||
<div style="column-span:all;"></div>
|
||||
<div id="abspos" style="position:absolute; height:100px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
let container = document.getElementById("container");
|
||||
let abspos = document.getElementById("abspos");
|
||||
document.body.offsetTop;
|
||||
assert_equals(abspos.getBoundingClientRect().height, 100);
|
||||
container.style.filter = "opacity(0.5)";
|
||||
assert_equals(abspos.getBoundingClientRect().height, 50);
|
||||
// The last step will cause a crash if crbug.com/847328 is present
|
||||
document.body.offsetTop;
|
||||
abspos.style.display = "none";
|
||||
}, "Making a container filtered, and then removing an abspos child");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue