Truly independent web browser
LibWeb: Import css-multicol and css-break tests that now pass
Aliaksandr Kalenik18e4a70177f5
diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/area-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/area-crash.htmlnew file mode 100644index 00000000000..f049f279bc9--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/area-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1279525">+<style>+ area { display: inline; }+</style>+<div style="columns:2;">+ <area></area>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/area-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/area-in-inline-crash.htmlnew file mode 100644index 00000000000..d409457b214--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/area-in-inline-crash.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308078">+<div style="columns:10; column-fill:auto; line-height:20px; height:20px; orphans:1; widows:1;">+ <br>+ <br>+ <span>+ <area></area>+ <br>+ <br>+ <area></area>+ <br>+ <br>+ <area></area>+ </span>+ <br>+ <br>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/auto-overflow-inside-second-abspos-fragment-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/auto-overflow-inside-second-abspos-fragment-crash.htmlnew file mode 100644index 00000000000..c4ce36abac8--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/auto-overflow-inside-second-abspos-fragment-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1282508">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="height:90px;"></div>+ <div style="position:relative;">+ <div style="position:absolute;">+ <div style="height:5px;"></div>+ <div style="overflow-y:auto; width:10px; height:50px;">+ <div style="height:60px;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-004-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-004-crash.htmlnew file mode 100644index 00000000000..41731a98657--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-004-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1295183">+<div style="columns:2; line-height:20px; column-fill:auto; height:25px; orphans:1; widows:1;">+ <span id="elm">+ <div style="height:3px;">+ <div style="height:26px;"></div>+ </div>+ <br>+ </span>+</div>+<script>+ elm.getClientRects();+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-005-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-005-crash.htmlnew file mode 100644index 00000000000..599ac2226fa--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-005-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1295183">+<div style="columns:2; line-height:20px; column-fill:auto; height:25px; orphans:1; widows:1;">+ <span id="elm">+ <div style="height:3px;">+ <div style="height:126px;"></div>+ </div>+ <br>+ </span>+</div>+<script>+ elm.getClientRects();+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-006-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-006-crash.htmlnew file mode 100644index 00000000000..5bc5276a314--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-006-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1295183">+<div style="columns:2; line-height:20px; column-fill:auto; height:25px; orphans:1; widows:1;">+ <span id="elm">+ <div style="height:30px;">+ <div style="height:126px;"></div>+ </div>+ <br>+ </span>+</div>+<script>+ elm.getClientRects();+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-007-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-007-crash.htmlnew file mode 100644index 00000000000..a8ab0078429--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-007-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1295183">+<div style="columns:2; line-height:20px; column-fill:auto; height:25px; orphans:1; widows:1;">+ <span id="elm">+ <div style="height:30px;">+ <div style="height:51px;"></div>+ </div>+ <br>+ </span>+</div>+<script>+ elm.getClientRects();+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-010-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-010-crash.htmlnew file mode 100644index 00000000000..78233992932--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/block-in-inline-010-crash.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1495515">+<div style="columns:10; column-fill:auto; height:100px;">+ <div style="height:50px;"></div>+ <span>+ <div id="e58" style="float:left; width:70%;">+ <div style="float:left; width:100%; height:60px; contain:size;"></div>+ </div>+ <div style="height:10px;"></div>+ </span>+</div>+<script>+ document.body.offsetTop;+ e58.style.cssFloat = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/box-decoration-break-clone-032-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/box-decoration-break-clone-032-crash.htmlnew file mode 100644index 00000000000..cfd1ada02ca--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/box-decoration-break-clone-032-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">+<meta name="assert" content="Grid with cloned box decorations larger than fragmentainer">+<div style="columns:2; column-fill:auto; height:1px;">+ <div style="display:grid; border:5px solid; box-decoration-break:clone;">+ <div>+ <div style="height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/box-decoration-break-clone-035-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/box-decoration-break-clone-035-crash.htmlnew file mode 100644index 00000000000..c4b23fc8cb5--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/box-decoration-break-clone-035-crash.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/40415661">+<div style="columns:5; column-fill:auto; width:200px; height:1px;">+ <div style="display:table; border:8px solid; box-decoration-break:clone;">+ <div style="width:3px; height:5px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/box-decoration-break-clone-036-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/box-decoration-break-clone-036-crash.htmlnew file mode 100644index 00000000000..f6a319cce5b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/box-decoration-break-clone-036-crash.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="cathie chen" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/362530623">+<div style="width: min-content;">+ <span style="box-decoration-break: clone">PASS if no crash.</span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/break-after-in-parallel-flow-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-after-in-parallel-flow-crash.htmlnew file mode 100644index 00000000000..b5956329502--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-after-in-parallel-flow-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1305732">+<div style="columns:3; column-fill:auto; height:40px;">+ <div style="height:20px;">+ <div style="height:50px;"></div>+ <div style="break-after:column;"></div>+ </div>+ <div style="height:40px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/break-after-oof-before-preceding-pushed-float-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-after-oof-before-preceding-pushed-float-crash.htmlnew file mode 100644index 00000000000..8c4355c22d3--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-after-oof-before-preceding-pushed-float-crash.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1318455">+<div style="columns:2; column-fill:auto; height:50px;">+ <div style="position:relative; height:31px;">+ <div style="position:absolute;"></div>+ </div>+ <span style="contain:size; float:left; width:100%; height:20px;"></span>+ <div>+ <div style="height:10px;"></div>+ <div style="position:relative; float:left; width:100%;">+ <div style="height:1px;"></div>+ <div style="position:absolute;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-broken-leading-float-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-broken-leading-float-001-crash.htmlnew file mode 100644index 00000000000..bdc8658427e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-broken-leading-float-001-crash.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/514517261">+<div style="width:0; columns:1; column-fill:auto; height:10px;">+ <div style="float:left;"></div>+ <span>+ <span style="padding-right:1px;">+ <div style="float:left; width:20px; height:11px;"></div>+ </span>+ line+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-broken-leading-float-002-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-broken-leading-float-002-crash.htmlnew file mode 100644index 00000000000..9aaa50c7c46--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-broken-leading-float-002-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/514517261">+<div style="width:0; columns:1; column-fill:auto; height:10px;">+ <div style="columns:1;">+ <div style="float:right;"></div>+ <span>+ <span style="padding-right:1px;">+ <div style="float:left; padding-bottom:1px;">div</div>+ </span>+ div+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-float-after-line-after-floats-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-float-after-line-after-floats-crash.htmlnew file mode 100644index 00000000000..9066cd77ecd--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-float-after-line-after-floats-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1306811">+<div style="columns:3; column-fill:auto; width:320px; height:100px; orphans:1; widows:1;">+ <div style="float:left; width:50px; height:10px;"></div>+ <div style="float:left; width:100px; height:10px;"></div>+ <div style="display:inline-block; width:20px; height:20px;"></div>+ <div style="float:left; width:10px; height:200px; contain:size;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-with-no-fragmentation-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-with-no-fragmentation-crash.htmlnew file mode 100644index 00000000000..9b9c815bd03--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/break-before-with-no-fragmentation-crash.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-break/">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=966369">+<div id="container" style="height:100px";>+ <div style="height:100%;">+ <div style="break-before:page;"></div>+ </div>+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=> {+ document.body.offsetTop;+ container.style.height = "101px";+ }, "no crash");+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1283776-000-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1283776-000-crash.htmlnew file mode 100644index 00000000000..6df83b5e637--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1283776-000-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1283776">+<span style="columns:1;">+ <div></div>+ <div style="display:flex;"></div>+ <div style="display:table;"></div>+ <div style="display:grid;"></div>+</span>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1283776-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1283776-001-crash.htmlnew file mode 100644index 00000000000..1c242a99c1f--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1283776-001-crash.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1283776">+<ruby style="columns:1;">+ <div style="display:flex;"></div>+ <div style="display:table-row-group;"></div>+ <div id="wedge" style="display:none;"></div>+ <div style="display:table-row-group;"></div>+</ruby>+<script>+ document.body.offsetTop;+ // Insert something non-tabley between the two table row groups,+ // forcing us to split the anonymous table into two.+ wedge.style.display = "block";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1285596-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1285596-crash.htmlnew file mode 100644index 00000000000..756db89b0e1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1285596-crash.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1285596">+<div id="elm" style="columns:2;">+ <div style="display:flex;"></div>+ <div style="display:grid;"></div>+ <div style="display:table;"></div>+</div>+<div style="display:table-row-group;"></div>+<script>+ document.body.offsetTop;+ elm.style.display = "table-row-group";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1287342-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1287342-crash.htmlnew file mode 100644index 00000000000..fcd21f8a26e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1287342-crash.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1287342">+<div>+ <div id="a" style="columns:2; display:table;"></div>+ <div id="b" style="columns:2; display:inline-table;"></div>+</div>+<script>+ document.body.offsetTop;+ a.style.display = "table-row-group";+ b.appendChild(a);+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1288769-000-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1288769-000-crash.htmlnew file mode 100644index 00000000000..884c92f0852--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1288769-000-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<div id="container">+ <div id="child" style="columns:2;">+ <div style="display:flex;"></div>+ <div style="display:grid;"></div>+ <div style="display:table;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ container.style.columns = "2";+ container.style.display = "inline-table";+ child.style.display = "table-footer-group";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1288769-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1288769-001-crash.htmlnew file mode 100644index 00000000000..bf7ab3b7e61--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1288769-001-crash.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<div id="container">+ <div id="child" style="columns:2;">+ <div style="display:flex;"></div>+ <div style="display:grid;"></div>+ <div style="display:table;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ container.style.columns = "2";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1289999-crash.https.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1289999-crash.https.htmlnew file mode 100644index 00000000000..fab89f06d95--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1289999-crash.https.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1289999">+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="display:flex;"></div>+ <div style="display:grid;"></div>+ <div style="display:table;"></div>+ <div style="position:relative; display:layout(foo); height:150px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1318455-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1318455-crash.htmlnew file mode 100644index 00000000000..f18a166e8cd--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/chrome-bug-1318455-crash.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1318455">+<ul id="multicol" style="columns:34; column-fill:auto; height:50px; line-height:20px;">+ <div style="float:left; padding:3px;">+ <br><br><br>+ </div>+ <div style="float:left; position:relative; padding:3px;">+ <br><br><br>+ <div style="position:absolute;"></div>+ </div>+ <li style="float:left;">+ <div></div>+ <a style="float:left;">+ <li style="position:relative;">+ <br>+ <div style="position:absolute;"></div>+ </li>+ </a>+ </li>+ <div id="surprise" style="display:none; height:150px;"></div>+</ul>+<script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ surprise.style.display = "inline-block";+ multicol.style.height = "150px";+ });+ });+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/clear-br-in-size-containment-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/clear-br-in-size-containment-crash.htmlnew file mode 100644index 00000000000..118e9a79016--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/clear-br-in-size-containment-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308247">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="height:90px;"></div>+ <div style="float:left; width:10px; height:20px;"></div>+ <div style="contain:size">+ <br clear="left">+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/clear-float-in-size-containment-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/clear-float-in-size-containment-crash.htmlnew file mode 100644index 00000000000..13d0200ec53--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/clear-float-in-size-containment-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308247">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="float:left; width:10px; height:150px;"></div>+ <div style="contain:size;">+ <div style="float:left; clear:left; width:10px; height:10px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/clear-past-float-with-oof-twice-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/clear-past-float-with-oof-twice-crash.htmlnew file mode 100644index 00000000000..82317ca85bb--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/clear-past-float-with-oof-twice-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1318455">+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="position:relative; float:left; width:100%;">+ <div style="height:141px;"></div>+ <div style="position:absolute;"></div>+ </div>+ <p style="clear:left; contain:size; width:100%; height:80px;"></p>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/column-balancing-with-oofs-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/column-balancing-with-oofs-crash.htmlnew file mode 100644index 00000000000..a74e651dc28--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/column-balancing-with-oofs-crash.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1362550">+<style>+ .multicol {+ column-count: 2;+ width: 200px;+ }+ .relpos {+ position: relative;+ }+ .abspos {+ height: 25%;+ position: absolute;+ }+</style>+<div class="multicol">+ <div class="relpos">+ <div class="abspos">+ <p>+ text+ </p>+ </div>+ </div>+ <figure class="relpos">+ <div class="abspos">+ <p>+ text+ </p>+ </div>+ </figure>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/empty-fieldset-tall-bottom-padding-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/empty-fieldset-tall-bottom-padding-crash.htmlnew file mode 100644index 00000000000..170a744b287--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/empty-fieldset-tall-bottom-padding-crash.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1322426">+<div style="columns:2; height:100px; column-fill:auto;">+ <fieldset style="margin:0; border:none; padding:0; border-bottom:1px solid; padding-bottom:200px;"></fieldset>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-1693616-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-1693616-001-crash.htmlnew file mode 100644index 00000000000..5aadb70037c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-1693616-001-crash.html@@ -0,0 +1,25 @@+<!DOCTYPE html>+<meta charset="utf-8">+<link rel="author" title="Daniel Holbert" href="mailto:[email protected]">+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1693616">+<meta name="assert" content="This test verifies that a block element with box-decoration-break:clone, whose block-start border and padding exceed the multicol's height, can make progress when fragmenting without hanging the browser.">++<style>+#a {+ column-count: 2;+}+#b {+ box-decoration-break: clone;+ padding: 4px 0px;+ border: 1px dotted black;+}+* {+ height: 19%;+}+</style>+Hopefully this doesn't hang.+<div id="a">+<div id="b">diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-1693616-002-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-1693616-002-crash.htmlnew file mode 100644index 00000000000..01f836c805d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-1693616-002-crash.html@@ -0,0 +1,24 @@+<!DOCTYPE html>+<meta charset="utf-8">+<link rel="author" title="Daniel Holbert" href="mailto:[email protected]">+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1693616">+<meta name="assert" content="This test verifies that a block element with box-decoration-break:clone, whose block-start border and padding exceed the multicol's height, can make progress when fragmenting without hanging the browser.">++<style>+#a {+ column-count: 2;+ height: 5px;+}+#b {+ box-decoration-break: clone;+ padding: 4px 0px;+ border: 1px dotted black;+ height: 10px;+}+</style>+Hopefully this doesn't hang.+<div id="a">+<div id="b">diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-1903652-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-1903652-crash.htmlnew file mode 100644index 00000000000..45dc078c5e8--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-1903652-crash.html@@ -0,0 +1,23 @@+<!-- Quirks mode -->+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1903652">++<style>+* {+ font-size-adjust: 0;+ column-width: 0;+ vertical-align: 7;+}+</style>+<script>+window.requestIdleCallback(() => {+ a.appendChild(b)+})+</script>+<mfrac id="a" style="border-style: solid">+<mo>a</mo>+<mn>a</mn>+<textarea style="float: left">a</textarea>+<sub>+<menu id="b">diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-2021187-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-2021187-crash.htmlnew file mode 100644index 00000000000..9ba8b6606a4--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/firefox-bug-2021187-crash.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2021187">+<style>+body, #a {+ columns: 42 0px;+ position: fixed;+ top: 9em;+ scale: 0;+ text-shadow: 24px 1px rgb(35, 92, 212);+}+</style>+<dl style="transform: translate3d(0, 0, 0)">+<dt style="text-decoration-line: underline !important">+<math id="a">+<mphantom>+</mphantom>+<mo>A</mo>+<mfrac>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flex-item-padding-block-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flex-item-padding-block-in-inline-crash.htmlnew file mode 100644index 00000000000..43418771150--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flex-item-padding-block-in-inline-crash.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1453643">+<p>Pass if no freeze or crash.</p>+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="display:flex;">+ <div>+ <span>+ <div style="display:flex; margin-top:10px;">+ <div style="padding-bottom:100px;"></div>+ <div>+ <div style="height:50px;"></div>+ </div>+ </div>+ </span>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/auto-height-flex-item-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/auto-height-flex-item-in-multicol-crash.htmlnew file mode 100644index 00000000000..82dec303cc1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/auto-height-flex-item-in-multicol-crash.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="help" href="https://crbug.com/434735271">+<link rel="help" href="https://crbug.com/433011988">+<style>+ #flex {+ display: flex;+ flex-wrap: wrap;+ height: 200px;+ align-content: flex-end;+ gap: 60px;+ }+</style>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0;">+ <div id="flex">+ <div style="height: auto; width: 20px;"></div>+ T+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/button-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/button-in-multicol-crash.htmlnew file mode 100644index 00000000000..30e373542a6--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/button-in-multicol-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1277724">+<p>PASS if no crash or DCHECK failure.</p>+<div style="columns:2;">+ x+ <button style="display:block;"></button>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/fixed-flex-item-inside-abs-flex-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/fixed-flex-item-inside-abs-flex-in-multicol-crash.htmlnew file mode 100644index 00000000000..29ba56748f9--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/fixed-flex-item-inside-abs-flex-in-multicol-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1269228">+<div id="elm" style="contain:layout; width:200px;">+ <div style="columns:2;">+ <div style="display:flex; padding:10%; position:absolute;">+ <div style="position:fixed;"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.width = "199px";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/flexbox-fragmentation-layout-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/flexbox-fragmentation-layout-001-crash.htmlnew file mode 100644index 00000000000..3577b42cf6e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/flexbox-fragmentation-layout-001-crash.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<html>+<head>+ <title>CSS Flexbox: flexbox fragmentation</title>+ <link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-containers">+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1708007">+ <style>+ * {+ display: inline-flex;+ border-left-style: ridge;+ border-top: green ridge 3289332275.907055mm;+ box-sizing: border-box;+ white-space: pre;+ max-block-size: 2307181333.664816mm;+ float: inline-end;+ columns: 2800509010 1630715400.2851658ex;+ </style>+ <script>+ window.addEventListener('load', () => {+ const details = document.createElement('details')+ details.setAttribute('open', true)+ const span = document.createElement('span')+ const small = document.createElement('small')+ small.innerText = '𧄚۹㏬1q/\n\rI퐆҆徢۹𠹅𝅧۹٠𖩡zc\r\naB-=^�辴x?>>>=𝅯🨸-銒㿎٩𢂷+=\bᣰ&\b\r0A۹'+ span.appendChild(small)+ details.appendChild(span)+ document.documentElement.appendChild(details)+ })+ </script>+</head>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/float-in-webkit-box-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/float-in-webkit-box-in-multicol-crash.htmlnew file mode 100644index 00000000000..e93974994bf--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/float-in-webkit-box-in-multicol-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1318035">+<div style="column-count:2;">+ <div style="display:-webkit-box;">+ <div style="float:left;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/image-in-fragmented-flexbox-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/image-in-fragmented-flexbox-001-crash.htmlnew file mode 100644index 00000000000..3c8a6c52944--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/image-in-fragmented-flexbox-001-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1315004">+<div style="height: 10px; column-count: 2;">+ <div style="display: flex; height: 8px;">+ <img src="somelink" height="20" width="156">+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/image-in-fragmented-flexbox-002-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/image-in-fragmented-flexbox-002-crash.htmlnew file mode 100644index 00000000000..a63c5be6c3e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/image-in-fragmented-flexbox-002-crash.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1370404">+<div style="column-width:50px;">+ <div style="display:flex; flex-wrap:wrap-reverse;">+ text text+ <image src="" width="2" height="2"></image>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/monolithic-item-in-fragmented-flexbox-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/monolithic-item-in-fragmented-flexbox-crash.htmlnew file mode 100644index 00000000000..edf13244e1b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/monolithic-item-in-fragmented-flexbox-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1315004">+<div style="height: 10px; column-count: 2; column-fill: auto;">+ <div style="display: flex;">+ <div style="height: 20px; contain: size;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/quirks-flex-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/quirks-flex-in-multicol-crash.htmlnew file mode 100644index 00000000000..6b6f2505684--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/quirks-flex-in-multicol-crash.html@@ -0,0 +1,8 @@+<!-- quirks mode required -->+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1321393">+<style>+ :root { columns:0; }+</style>+<body style="display:flex;">+ <div>two words<div></div></div>+</body>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/slider-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/slider-in-multicol-crash.htmlnew file mode 100644index 00000000000..8cc2ec62421--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/slider-in-multicol-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1277724">+<p>PASS if no crash or DCHECK failure.</p>+<div style="columns:2;">+ x+ <input type="range" style="display:block;">+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/small-definite-flex-line-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/small-definite-flex-line-crash.htmlnew file mode 100644index 00000000000..693939cd5b7--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/small-definite-flex-line-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://issues.chromium.org/issues/515776659">+<div style="columns:3; height:20px; column-fill:auto;">+ <div style="display:flex; max-height:0;">+ <div>+ <div style="contain:size; height:100px;"></div>+ <div style="contain:size; height:100px;"></div>+ </div>+ <div></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/textarea-input-flex-items-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/textarea-input-flex-items-in-multicol-crash.htmlnew file mode 100644index 00000000000..49ae5199e35--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/flexbox/textarea-input-flex-items-in-multicol-crash.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<meta charset="utf-8">+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1870103">++<div style="columns: 2;">+ <div style="display: flex;">+ <textarea></textarea>+ <input>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/float-011-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/float-011-crash.htmlnew file mode 100644index 00000000000..5838050a83c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/float-011-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1377795">+<div style="columns:2; column-fill:auto; height:100px; line-height:20px;">+ <div style="height:70px; background:cyan;"></div>+ <div style="height:1px;">+ <div style="float:left; width:20px; height:20px; background:hotpink;"></div>+ </div>+ <br>+ <div style="float:left; break-inside:avoid; width:20px; height:20px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/float-after-self-collapsing-block-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/float-after-self-collapsing-block-in-inline-crash.htmlnew file mode 100644index 00000000000..1ab512748ca--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/float-after-self-collapsing-block-in-inline-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1303201">+<div style="columns:2; column-fill:auto; line-height:20px; height:25px; orphans:1; widows:1;">+ <span>+ <br>+ <div style="margin-top:1px;"></div>+ <div style="float:left; width:100%; height:10px;"></div>+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/floated-multicol-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/floated-multicol-in-multicol-crash.htmlnew file mode 100644index 00000000000..ba4ae29b12a--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/floated-multicol-in-multicol-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1320509">+<div style="columns:3; column-fill:auto; height:20px;">+ <div style="display:flex; float:left; margin-top:8px;">+ <fieldset style="border:none; contain:paint;">+ <div style="contain:size; height:18px;"></div>+ <div style="float:left; clear:both; height:6px;"></div>+ <div style="columns:9; display:list-item; clear:both; column-fill:auto; height:0;"></div>+ </fieldset>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmentainer-1px-clamping-000-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmentainer-1px-clamping-000-crash.htmlnew file mode 100644index 00000000000..78bf7a3f799--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmentainer-1px-clamping-000-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#breaking-rules">+<div style="columns:2; column-fill:auto; height:0.9px;">+ <div style="contain:size; height:2px;"></div>+ <div style="width:0;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmentainer-1px-clamping-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmentainer-1px-clamping-001-crash.htmlnew file mode 100644index 00000000000..b4aeb1825d5--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmentainer-1px-clamping-001-crash.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#breaking-rules">+<div style="columns:2; width:100px; column-gap:100px; column:fill:auto; height:0.9px;">+ <div style="margin-top:1px; width:100px; height:1px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmented-empty-contenteditable-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmented-empty-contenteditable-crash.htmlnew file mode 100644index 00000000000..c2149c77d70--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmented-empty-contenteditable-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1261747">+<p>Test passes if it doesn't crash (or freeze).</p>+<div style="columns:2; column-fill:auto; height:50px;">+ <div style="padding-top:20px; padding-bottom:100px;" contenteditable="true"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmented-float-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmented-float-in-inline-crash.htmlnew file mode 100644index 00000000000..0d84b95988e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmented-float-in-inline-crash.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1225967">+<div style="columns:2; column-fill:auto; height:100px;">+ <span>+ <div style="float:left; height:150px; background:cyan;"></div>+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmented-oof-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmented-oof-in-inline-crash.htmlnew file mode 100644index 00000000000..8428f324178--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/fragmented-oof-in-inline-crash.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1290093">+<div style="columns:2;">+ <span style="position:relative;">+ <div style="position:absolute;"></div>+ <div id="spanner" style="column-span:all;"></div>+ </span>+</div>+<script>+ document.body.offsetTop;+ // This doesn't actually affect layout, but changing display type requires re-attach.+ spanner.style.display = "flow-root";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-item-oof-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-item-oof-crash.htmlnew file mode 100644index 00000000000..fae587dc8e6--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-item-oof-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1318399">+<div style="column-count: 1;">+ <div style="break-inside: avoid; display: grid; grid-template-rows: 10px; position: relative;">+ <div style="position: absolute; grid-row-start: 1; grid-row-end: 1; inset: 0;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-item-placement-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-item-placement-crash.htmlnew file mode 100644index 00000000000..e6cc6c8b519--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-item-placement-crash.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1399336">+<body>+ <div style="width: 2000px; height: 2000px;">+ <div style="columns: 2; border: 1px solid black;">+ <div style="height: 50px; width: 550px; float: right;">Text</div>+ <div style="display: grid; grid-template-columns: repeat(auto-fill,250px);">+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ </div>+ </div>+ </div>+</body>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-item-placement-multiple-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-item-placement-multiple-crash.htmlnew file mode 100644index 00000000000..6ce9d39ef62--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-item-placement-multiple-crash.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1399336">+<body>+ <div style="width: 6000px; height: 6000px;">+ <div style="columns: 4; border: 1px solid black;">+ <div style="height: 50px; width: 550px; float: right;">Text</div>+ <div style="display: grid; grid-template-columns: repeat(auto-fill,250px);">+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ <div style="width: 250px;">+ <div style="height: 550px;"></div>+ </div>+ </div>+ </div>+ </div>+</body>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-large-end-border-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-large-end-border-crash.htmlnew file mode 100644index 00000000000..d2705f04f44--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-large-end-border-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1319964">+<div style="column-count:2; column-fill:auto; border-bottom: 4294967295px solid;">+ <div style="display:grid; padding-top:1px; border-bottom: 4294967295px solid;">+ <div></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-nested-columns-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-nested-columns-crash.htmlnew file mode 100644index 00000000000..8b636ae7fa4--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/grid/grid-nested-columns-crash.html@@ -0,0 +1,11 @@+<!-- quirks-mode -->+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1318608">+<style>+html, div {+ column-count: 2;+}+</style>+<body style="display: grid; align-items: end;">+ <div>a</div>+ <div>+ <span style="display: block; contain: size;">content</span>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/iframe-in-repeated-table-header-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/iframe-in-repeated-table-header-crash.htmlnew file mode 100644index 00000000000..8956bc777a0--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/iframe-in-repeated-table-header-crash.html@@ -0,0 +1,26 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1260855">+<div style="columns:2; column-fill:auto; height:200px;">+ <table>+ <thead style="break-inside:avoid;">+ <tr>+ <td>+ <iframe style="height:10px;"></iframe>+ </td>+ </tr>+ </thead>+ <tbody>+ <tr>+ <td>+ <div style="height:100px;"></div>+ </td>+ </tr>+ <tr>+ <td>+ <div style="height:100px;"></div>+ </td>+ </tr>+ </tbody>+ </table>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/inline-skipping-fragmentainer-003-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/inline-skipping-fragmentainer-003-crash.htmlnew file mode 100644index 00000000000..63e62e5c48e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/inline-skipping-fragmentainer-003-crash.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/379259810">+<div style="columns:3; height:0;">+ <div style="border-top:solid;">+ <span style="position:relative;">x</span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/inline-skipping-fragmentainer-004-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/inline-skipping-fragmentainer-004-crash.htmlnew file mode 100644index 00000000000..2a29f4745ac--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/inline-skipping-fragmentainer-004-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/379779786">+<div style="columns:2; column-fill:auto; height:100px; orphans:1; widows:1;">+ <div style="height:8px;"></div>+ <div style="columns:2; column-fill:auto;">+ <div id="oisann" style="display:inline-block; width:100%; height:10px;"></div>+ <div id="oppsann" style="display:inline-block; width:100%; height:150px;"></div>+ <span style="position:relative;">o</span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/large-text-node-oof-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/large-text-node-oof-crash.htmlnew file mode 100644index 00000000000..424d663b611--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/large-text-node-oof-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278350">+<div style="column-width: 0px;">+ <div style="position: relative;">+ <div></div>+ <h1 style="column-width: 10px; position: absolute;">+ uklgvffmyjpekennfouiqjxyxugvhqhrqpovcphzxfb+ </h1>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/line-and-fragmentainer-break-before-float-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/line-and-fragmentainer-break-before-float-crash.htmlnew file mode 100644index 00000000000..14bce6b80c5--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/line-and-fragmentainer-break-before-float-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1305497">+<div style="columns:3; column-fill:auto; height:100px; orphans:1; widows:1;">+ <div style="width:20px;">+ <div style="display:inline-block; width:20px; height:5px;"></div>+ <div style="display:inline-block; width:10px; height:5px;"></div>+ <div style="float:left; width:10px; height:200px; contain:size;"></div>+ <div style="display:inline-block; width:21px; height:5px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/max-height-with-margin-pushed-below-fragmentation-line-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/max-height-with-margin-pushed-below-fragmentation-line-crash.htmlnew file mode 100644index 00000000000..a1b3139bd53--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/max-height-with-margin-pushed-below-fragmentation-line-crash.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1310503">+<div style="columns:3; column-fill:auto; line-height:20px; height:25px;">+ <div style="max-height:20px; margin-top:10px;">+ <br><br><br>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-000-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-000-crash.htmlnew file mode 100644index 00000000000..8d1d395e35c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-000-crash.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1312790">+<div style="columns:2;">+ <span style="filter:blur(1px);">+ <div style="position:relative;">+ <div style="position:absolute;">+ <div style="position:fixed;">+ <div style="position:fixed;"></div>+ </div>+ </div>+ </div>+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-001-crash.htmlnew file mode 100644index 00000000000..dc4e8fba67f--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-001-crash.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1312790">+<div style="columns:2;">+ <div style="columns:2;">+ <span style="filter:blur(1px);">+ <div style="position:relative;">+ <div style="position:absolute;">+ <div style="position:fixed;"></div>+ </div>+ </div>+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-002-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-002-crash.htmlnew file mode 100644index 00000000000..15a5a963326--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-002-crash.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1312790">+<div style="columns:2;">+ <span style="filter:blur(1px);">+ <div style="columns:2;">+ <div style="position:relative;">+ <div style="position:absolute;">+ <div style="position:fixed;">+ <div style="position:fixed;"></div>+ </div>+ </div>+ </div>+ </div>+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-003-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-003-crash.htmlnew file mode 100644index 00000000000..88a04288464--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-fixedpos-in-inline-003-crash.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://issuetracker.google.com/issues/406053621">+<div style="column-count: 1;">+ <div style="filter: blur(0px); display: inline;">+ <div style="filter: blur(0px); display: inline">+ <div style="position: relative;">+ <div style="position: absolute;">+ <div style="position: fixed;"></div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-float-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-float-in-multicol-crash.htmlnew file mode 100644index 00000000000..6878d384e54--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-float-in-multicol-crash.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1336847">+<style>+ .float {+ float: left;+ clear: both;+ }+ div {+ padding-bottom: 10px;+ padding-top: 10000000000px;+ }+</style>+<div style="column-count:15;">+ <div>+ text+ <div></div>+ <div class="float"></div>+ </div>+ <div class="float"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-001-crash.htmlnew file mode 100644index 00000000000..88b902af502--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-001-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278277">+<p>PASS if no crash or DCHECK failure.</p>+<div style="columns:2;">+ <div style="columns:2;">+ <div style="column-span:all; position:relative;">+ <div style="position:absolute; height:10px;"></div>+ <div style="position:absolute; height:20px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-002-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-002-crash.htmlnew file mode 100644index 00000000000..3a5b1da3311--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-002-crash.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278277">+<p>PASS if no crash or DCHECK failure.</p>+<div style="columns:2;">+ <div style="columns:2;">+ <div style="column-span:all;">+ <div style="position:relative;">+ <div style="position:absolute; height:10px;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-003-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-003-crash.htmlnew file mode 100644index 00000000000..e6c1293e3b7--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-003-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278277">+<p>PASS if no crash or DCHECK failure.</p>+<div style="columns:2;">+ <div style="columns:2;">+ <div style="column-span:all; position:relative;">+ <div style="transform: translateX(0);">+ <div style="position:absolute; height:10px;">+ <div style="position:fixed; height:20px;"></div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-004-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-004-crash.htmlnew file mode 100644index 00000000000..5db9163398a--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-004-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1348128">+<p>PASS if no crash or DCHECK failure.</p>+<div style="column-count:2;">+ <div style="column-count:1;">+ <div style="position:relative; column-span:all;">+ <div style="column-count:1; position:absolute; height:10px; width:10px;">+ <div style="position:relative;">+ <div style="position:absolute; height:10px; width:5px;"></div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-005-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-005-crash.htmlnew file mode 100644index 00000000000..f7b56c1c985--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-005-crash.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1348128">+<p>PASS if no crash or DCHECK failure.</p>+<div style="column-count:2;">+ <div style="column-count:1;">+ <div style="column-span:all;">+ <div style="position:relative;">+ <div style="column-count:1; position:absolute; height:10px; width:10px;">+ <div style="position:relative;">+ <div style="position:absolute; height:10px; width:5px;"></div>+ </div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-006-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-006-crash.htmlnew file mode 100644index 00000000000..b969f925d3f--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-006-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1349763">+<p>PASS if no crash or DCHECK failure.</p>+<div style="columns:1;">+ <div style="columns:1; column-span:all;">+ <div style="position:relative;">+ <div style="columns:2; position:absolute;">+ <div style="position:relative;">+ <div style="position:absolute; height:10px;"></div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-007-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-007-crash.htmlnew file mode 100644index 00000000000..861aac2bc3d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-007-crash.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1358030">+<p>PASS if no crash or DCHECK failure.</p>+<div style="column-count:1;">+ <div style="column-count:1;">+ <div style="column-span:all; position:relative;">+ <div style="position:absolute;"></div>+ </div>+ <div style="position:relative;">+ <div style="position:absolute;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-008-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-008-crash.htmlnew file mode 100644index 00000000000..a8d0f3e77ea--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanner-and-oof-008-crash.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1358030">+<p>PASS if no crash or DCHECK failure.</p>+<div style="column-count:1;">+ <div style="column-count:1;">+ <div style="column-span:all; position:relative;">+ <div style="position:absolute;">+ <div style="position:fixed;"></div>+ </div>+ </div>+ <div style="position:relative;">+ <div style="position:absolute;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanners-and-oofs-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanners-and-oofs-crash.htmlnew file mode 100644index 00000000000..d2e8ebb6219--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-multicol-with-spanners-and-oofs-crash.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1311577">+<div id="container" style="columns:2; height:50px; column-fill:auto;">+ <div style="columns:2; height:100px; column-fill:auto;">+ <div style="height:20px;"></div>+ <div id="removeme" style="column-span:all; height:91px;"></div>+ <div style="position:relative;">+ <div style="position:absolute;"></div>+ </div>+ <div style="column-span:all; height:100px;"></div>+ <div style="column-span:all; break-before:column;"></div>+ </div>+ <div id="showme" style="display:none; column-span:all;"></div>+</div>+<script>+ document.body.offsetTop;+ removeme.style.display = "none";+ showme.style.display = "block";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-oof-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-oof-in-multicol-crash.htmlnew file mode 100644index 00000000000..6b2f81005d3--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/nested-oof-in-multicol-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1280620">+<p>PASS if no crash or DCHECK failure.</p>+<div style="column-count:2;">+ <div style="position:fixed;"></div>+ <div style="position:relative;">+ <div style="position:absolute;">+ <div style="position:absolute; top:0px; left:23px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/no-room-for-line-in-first-fragmentainer-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/no-room-for-line-in-first-fragmentainer-crash.htmlnew file mode 100644index 00000000000..bc7b9aaa5e6--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/no-room-for-line-in-first-fragmentainer-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1175666">+<div style="width:500px; columns:3; column-fill:auto; height:100px; line-height:100px;">+ <div style="padding-top:50px;">+ <canvas style="float:left; width:200px; height:100px;"></canvas>+ <span style="display:inline-block; width:100px; height:10px;"></span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-inline-with-negative-offset-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-inline-with-negative-offset-crash.htmlnew file mode 100644index 00000000000..1b589092925--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-inline-with-negative-offset-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1314916">+<div style="columns:2; column-fill:auto; height:15px; line-height:20px;">+ <div style="columns:2; column-fill:auto;">+ <div style="height:20px;"></div>+ <span style="position:relative;">+ <div style="column-span:all; columns:1; padding-top:30px;"></div>+ <div style="position:absolute; top:-50px; height:100px;"></div>+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-multicolumn-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-multicolumn-crash.htmlnew file mode 100644index 00000000000..3e2c6a54570--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-multicolumn-crash.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278627">+<div style="columns: 1;">+ <div style="position: absolute;"></div>+ <div style="position: relative;">+ <div style="position: absolute; top: 0; left: 0;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-nested-spanner-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-nested-spanner-multicol-crash.htmlnew file mode 100644index 00000000000..8c8e3eefad3--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-nested-spanner-multicol-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1324906">+<div style="columns:2;">+ <div style="columns:2;">+ <div style="column-span:all; columns:2;">+ <div style="position:relative;">+ <div style="position:absolute; height:20px;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-new-column-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-new-column-crash.htmlnew file mode 100644index 00000000000..0571af7a979--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-in-new-column-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1305726">+<div style="columns:3; column-fill:auto; line-height:20px; height:20px;">+ <div style="break-after:column;"></div>+ <div style="position:absolute;"></div>+ <div style="position:relative; height:20px;">+ <div>x</div>+ <div style="position:absolute; height:20px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-with-negative-offset-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-with-negative-offset-crash.htmlnew file mode 100644index 00000000000..202b33f813b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-flow-with-negative-offset-crash.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1314916">+<div style="columns:2; column-fill:auto; height:15px;">+ <div style="columns:2; column-fill:auto;">+ <div style="height:20px;"></div>+ <div style="position:relative;">+ <div style="height:20px;"></div>+ <div style="column-span:all; columns:1; padding-top:30px;"></div>+ <div style="height:20px;"></div>+ <div style="position:absolute; top:-10px; height:5px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-order-float-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-order-float-in-inline-crash.htmlnew file mode 100644index 00000000000..0a348cf2665--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/out-of-order-float-in-inline-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1486411">+<div style="columns:2; column-fill:auto; height:100px; orphans:1; widows:1;">+ <br>+ <span>+ <div style="float:left; break-inside:avoid; width:100%; height:200px;"></div>+ x+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/overflow-auto-height-with-bottom-padding-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/overflow-auto-height-with-bottom-padding-crash.htmlnew file mode 100644index 00000000000..e25c8e3f2c1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/overflow-auto-height-with-bottom-padding-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1310238">+<div style="columns:5; column-fill:auto; height:100px;">+ <div style="padding-bottom:1px;">+ <div style="height:100px;">+ <div style="height:450px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/parallel-flow-trailing-margin-003-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/parallel-flow-trailing-margin-003-crash.htmlnew file mode 100644index 00000000000..899683d792d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/parallel-flow-trailing-margin-003-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378039">+<!DOCTYPE html>+<div style="columns:4; height:10px;">+ <div style="max-height:0;">+ <br>+ <ol style="border-top:100px dashed; height:0;"><br></ol>+ </div>+ <div style="margin-top:1px;"><br></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/resumed-float-and-inline-block-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/resumed-float-and-inline-block-crash.htmlnew file mode 100644index 00000000000..c86034c3723--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/resumed-float-and-inline-block-crash.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1249828">+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="float:left; width:50px; height:150px;"></div>+ <div style="display:inline-block; width:30px; height:10px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table-cell-padding-block-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table-cell-padding-block-in-inline-crash.htmlnew file mode 100644index 00000000000..745f35ade08--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table-cell-padding-block-in-inline-crash.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1453643">+<div style="columns:3; column-fill:auto; height:400px;">+ <div style="display:table;">+ <span>+ <table style="border-spacing:0; margin-top:16px; line-height:18px;">+ <tr>+ <td style="padding:0;">+ <div style="height:300px;">+ Should not freeze or crash.+ </div>+ </td>+ </tr>+ <tr>+ <td style="padding-top:0; padding-bottom:100px;"><br><br><br><br><br></td>+ <td style="padding-top:0; padding-bottom:100px;"><br><br><br></td>+ </tr>+ </table>+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/bottom-padding-repeated-header-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/bottom-padding-repeated-header-crash.htmlnew file mode 100644index 00000000000..e9c567d3b6d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/bottom-padding-repeated-header-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1356236">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="display:table; padding-bottom:101px;">+ <div style="display:table-caption;"></div>+ <div style="display:table-header-group; break-inside:avoid;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/break-before-repeated-footer-instead-of-border-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/break-before-repeated-footer-instead-of-border-crash.htmlnew file mode 100644index 00000000000..b277001f4d8--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/break-before-repeated-footer-instead-of-border-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1353998">+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="height:70px;"></div>+ <div style="display:table; border-bottom:40px solid;">+ <div></div>+ <div style="display:table-footer-group; break-inside:avoid;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/caption-bottom-margin-at-boundary-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/caption-bottom-margin-at-boundary-crash.htmlnew file mode 100644index 00000000000..edca6635675--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/caption-bottom-margin-at-boundary-crash.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1353558">+<div style="columns:2; column-fill:auto; line-height:20px; height:42px;">+ <div style="display:table-caption; margin-bottom:10px;">+ <br><br>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/cell-large-bottom-padding-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/cell-large-bottom-padding-crash.htmlnew file mode 100644index 00000000000..e87df1fe7a2--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/cell-large-bottom-padding-crash.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1420637">+<div style="columns:2; height:100px; column-fill:auto;">+ <div style="display:table-cell; padding-bottom:400px;">boo</div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/dynamic-caption-child-change-002-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/dynamic-caption-child-change-002-crash.htmlnew file mode 100644index 00000000000..983f8bb95bb--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/dynamic-caption-child-change-002-crash.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1379473">+<div style="columns:2; column-fill:auto; height:500px;">+ <div style="display:table-caption; overflow:hidden;">+ <span>+ <div style="display:inline-block;">+ <div id="target"></div>+ <div style="width:300px; height:150px;"></div>+ </div>+ x+ </span>+ </div>+</div>+<script>+ document.body.offsetTop;+ target.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/border-spacing-taller-than-fragmentainer-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/border-spacing-taller-than-fragmentainer-001-crash.htmlnew file mode 100644index 00000000000..dc87e5dd4fa--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/border-spacing-taller-than-fragmentainer-001-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378661">+<div style="columns:4; height:100px; column-fill:auto;">+ <div style="display:table; border-spacing:120px;">+ <div style="display:table-header-group; break-inside:avoid;"></div>+ <div style="height:140px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/border-spacing-taller-than-fragmentainer-002-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/border-spacing-taller-than-fragmentainer-002-crash.htmlnew file mode 100644index 00000000000..778c1c61c16--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/border-spacing-taller-than-fragmentainer-002-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378661">+<div style="columns:4; height:100px; column-fill:auto;">+ <div style="display:table; border-spacing:120px;">+ <div style="display:table-header-group; break-inside:avoid;">+ <div style="height:20px;"></div>+ </div>+ <div style="height:140px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/border-spacing-taller-than-fragmentainer-003-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/border-spacing-taller-than-fragmentainer-003-crash.htmlnew file mode 100644index 00000000000..ce7a13282b2--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/border-spacing-taller-than-fragmentainer-003-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378661">+<div style="columns:4; height:100px; column-fill:auto;">+ <div style="display:table; border-spacing:120px;">+ <div style="display:table-header-group; break-inside:avoid;"></div>+ <div></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/nested-repeated-header-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/nested-repeated-header-crash.htmlnew file mode 100644index 00000000000..1dffcf821a1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/nested-repeated-header-crash.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1336683">+<style>+ thead { break-inside: avoid; }+ td { padding: 0; }+ table { border-spacing: 0; }+</style>+<p>PASS if no freeze.</p>+<div style="columns:2; column-fill:auto; height:700px;">+ <table>+ <thead>+ <tr>+ <td>+ <div style="columns:2; column-fill:auto; height:120px; background:yellow;">+ <table>+ <thead>+ <tr>+ <td>+ <div style="width:50px; height:20px; background:hotpink;"></div>+ </td>+ </tr>+ </thead>+ <tr><td style="height:100px;"></td></tr>+ <tr><td style="height:100px;"></td></tr>+ </table>+ </div>+ </td>+ </tr>+ </thead>+ <tr><td style="height:400px; background:blue;"></td></tr>+ <tr><td style="height:400px; background:orange;"></td></tr>+ </table>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/repeated-footer-insufficient-space-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/repeated-footer-insufficient-space-crash.htmlnew file mode 100644index 00000000000..80cfdda5975--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/repeated-footer-insufficient-space-crash.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<title>Failing to find room for repeated table footer in first fragment</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/479908893">+<div style="columns:3; line-height:20px; column-fill: auto; height:90px;">+ <div style="height:40px;"></div>+ <div style="display:table;">+ <div style="display:table-caption;">Caption</div>+ <div style="display:table-header-group; break-inside:avoid;">header</div>+ body+ <div style="display:table-footer-group; break-inside:avoid;">footer</div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/special-elements-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/special-elements-crash.htmlnew file mode 100644index 00000000000..469e53460ef--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/special-elements-crash.html@@ -0,0 +1,105 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-tables-3/#repeated-headers">+<style>+ body {+ margin: 0;+ }+ .table {+ display: table;+ width: 100%;+ }+ .header {+ display: table-header-group;+ break-inside: avoid;+ }+ .filler {+ display: table-row;+ break-inside: avoid;+ height: 2600px;+ }+ .header > * {+ /* Don't make stuff too tall. We want everything (in the header) to be+ within the viewport. */+ height: 10px;+ }+</style>+<div style="columns:3; column-fill:auto; width:600px; height:5000px;">+ <div class="table">+ <div class="header">+ <input type="text" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">+ <input type="submit" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">+ <input type="radio">+ <input type="checkbox">+ <input type="date">+ <input type="range">+ <input type="number">+ <input type="color">+ <input type="password">+ <canvas id="canvas" style="width:40px; height:40px;"></canvas>+ <iframe src="data:text/html,<div style='position:absolute; height:200px;'>x</div>" style="width:100px; height:40px;"></iframe>+ <div style="overflow:scroll; width:100px; height:30px;">+ <div style="height:200px;"></div>+ </div>+ <select size="0"><option>xxx</option></select>+ <select size="5"><option>xxx</option></select>+ <svg style="width:100px; height:30px;">+ <circle cx="20" cy="15" r="7" fill="hotpink"/>+ </svg>+ <textarea style="width:50px; height:30px;">+ xxxxxxxxxx xxxxxxxxx xxxxxxxx xxxxxxxxx xxxxxxx xxxxxx+ </textarea>+ <video style="width:100px; height:50px;" controls></video>+ <video style="width:100px; height:50px;"></video>+ <meter></meter>+ <button>xxxxxx</button>+ <fieldset><legend>epic</legend></fieldset>+ <!-- The image src is a 1x1 green pixel. -->+ <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdjYGhg+A8AAoQBgNXA8F0AAAAASUVORK5CYII=">+ </div>+ <div class="filler"></div>+ <div class="filler"></div>+ <div class="filler"></div>+ </div>+</div>+<script>+ var ctx = canvas.getContext('2d');+ ctx.fillStyle = "hotpink";+ ctx.fillRect(0, 0, 50, 50);++ function paintDone() {+ return new Promise(function(resolve) {+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ resolve();+ });+ });+ });+ }+ async function toggleStyles(elements) {+ for (const display of ['block', 'inline-block', 'inline']) {+ for (const position of ['static', 'relative']) {+ for (const cssfloat of ['none', 'left']) {+ for (var elm of elements) {+ elm.style.display = display;+ elm.style.position = position;+ elm.style.cssFloat = cssfloat;+ }+ await paintDone();+ for (var elm of elements) {+ var rect = elm.getClientRects()[0];+ var x = rect.left;+ var y = rect.top;+ x += 2;+ y += 2;+ document.elementFromPoint(x, y);+ document.elementFromPoint(x + 200, y);+ document.elementFromPoint(x + 400, y);+ }+ }+ }+ }+ }++ toggleStyles(document.querySelectorAll(".header > *"));+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-003-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-003-crash.htmlnew file mode 100644index 00000000000..90834c806b1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-003-crash.html@@ -0,0 +1,23 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378294">+<!-- All fragmentainers but the first just have room for the repeated headers+ and footers, and no room for regular, unrepeated, stuff. We should still+ fit 1px of unrepeated content in every fragmentainer, because that should+ be a sensible way of interpretating+ https://www.w3.org/TR/css-break-3/#breaking-rules ("fragmentainers are+ assumed to have a minimum block size of 1px"). -->+<div style="margin:100px; columns:4; column-fill:auto; height:40px; background:yellow;">+ <div style="margin-bottom:-60px;"></div>+ <div style="columns:1; column-fill:auto; background:lime;">+ <div style="display:table;">+ <div style="display:table-header-group; break-inside:avoid;">+ <div style="width:20px; height:20px; background:blue;"></div>+ </div>+ <div style="display:table-footer-group; break-inside:avoid;">+ <div style="width:20px; height:20px; background:hotpink;"></div>+ </div>+ <div style="height:100px; background:black;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-004-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-004-crash.htmlnew file mode 100644index 00000000000..9c4699da93f--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-004-crash.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378294">+<!-- Only the first fragmentainer actually has room for repeated headers and+ footers. We should still fit 1px of unrepeated content in every+ fragmentainer, because that should be a sensible way of interpretating+ https://www.w3.org/TR/css-break-3/#breaking-rules ("fragmentainers are+ assumed to have a minimum block size of 1px"). -->+<div style="margin:100px; columns:4; column-fill:auto; height:30px; background:yellow;">+ <div style="margin-bottom:-60px;"></div>+ <div style="columns:1; column-fill:auto; background:lime;">+ <div style="display:table;">+ <div style="display:table-header-group; break-inside:avoid;">+ <div style="width:20px; height:20px; background:blue;"></div>+ </div>+ <div style="display:table-footer-group; break-inside:avoid;">+ <div style="width:20px; height:20px; background:hotpink;"></div>+ </div>+ <div style="height:100px; background:black;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-005-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-005-crash.htmlnew file mode 100644index 00000000000..b17d0cc8100--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-005-crash.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378294">+<!-- Only the first fragmentainer actually has room for repeated headers and+ footers. We should still fit 1px of unrepeated content in every+ fragmentainer, because that should be a sensible way of interpretating+ https://www.w3.org/TR/css-break-3/#breaking-rules ("fragmentainers are+ assumed to have a minimum block size of 1px"). -->+<div style="margin:100px; columns:4; column-fill:auto; height:20px; background:yellow;">+ <div style="margin-bottom:-60px;"></div>+ <div style="columns:1; column-fill:auto; background:lime;">+ <div style="display:table;">+ <div style="display:table-header-group; break-inside:avoid;">+ <div style="width:20px; height:20px; background:blue;"></div>+ </div>+ <div style="display:table-footer-group; break-inside:avoid;">+ <div style="width:20px; height:20px; background:hotpink;"></div>+ </div>+ <div style="height:100px; background:black;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-006-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-006-crash.htmlnew file mode 100644index 00000000000..1345c6eca8d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/repeated-section/variable-fragmentainer-size-006-crash.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378294">+<!-- Only the first fragmentainer actually has room for repeated headers and+ footers. We should still fit 1px of unrepeated content in every+ fragmentainer, because that should be a sensible way of interpretating+ https://www.w3.org/TR/css-break-3/#breaking-rules ("fragmentainers are+ assumed to have a minimum block size of 1px"). -->+<div style="margin:100px; columns:4; column-fill:auto; height:10px; background:yellow;">+ <div style="margin-bottom:-60px;"></div>+ <div style="columns:1; column-fill:auto; background:lime;">+ <div style="display:table;">+ <div style="display:table-header-group; break-inside:avoid;">+ <div style="width:20px; height:20px; background:blue;"></div>+ </div>+ <div style="display:table-footer-group; break-inside:avoid;">+ <div style="width:20px; height:20px; background:hotpink;"></div>+ </div>+ <div style="height:100px; background:black;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-in-abspos-multicol-with-nested-meter-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-in-abspos-multicol-with-nested-meter-crash.htmlnew file mode 100644index 00000000000..363324b225b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-in-abspos-multicol-with-nested-meter-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1351677">+<p>PASS if no crash or DCHECK failure.</p>+<div style="position:absolute; column-count:1;">+ <table>+ <caption>+ <meter style="column-count:1;"></meter>+ </caption>+ </table>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-row-end-border-1-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-row-end-border-1-crash.htmlnew file mode 100644index 00000000000..3947dbdadaa--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-row-end-border-1-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1336163">+<div style="columns: 2; height: 1px;">+ <table style="border-collapse: collapse;">+ <tbody>+ <tr style="border-bottom: 10px solid;">+ <td></td>+ </tr>+ </tbody>+ </table>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-row-end-border-2-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-row-end-border-2-crash.htmlnew file mode 100644index 00000000000..e5c37cbdcf6--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-row-end-border-2-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1336163">+<div style="columns: 2; height: 1px;">+ <table>+ <tbody>+ <tr style="border-bottom: 10px solid;">+ <td></td>+ </tr>+ </tbody>+ </table>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-row-end-padding-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-row-end-padding-crash.htmlnew file mode 100644index 00000000000..2fd7feb15de--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/table-row-end-padding-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1336163">+<div style="columns: 2; height: 1px;">+ <table>+ <tbody>+ <tr style="padding-bottom: 10px;">+ <td></td>+ </tr>+ </tbody>+ </table>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/tall-padding-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/tall-padding-crash.htmlnew file mode 100644index 00000000000..2b588586bfb--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/tall-padding-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1357123">+<div style="columns:3; column-fill:auto; height:40px;">+ <div style="height:30px;"></div>+ <div style="display:table; padding-top:20px; padding-bottom:100px;">+ <div></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/table/zero-height-repeated-footer-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/zero-height-repeated-footer-crash.htmlnew file mode 100644index 00000000000..4feca8344b7--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/table/zero-height-repeated-footer-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1354141">+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="height:70px;"></div>+ <div style="display:table;">+ <div style="height:150px;"></div>+ <div style="display:table-footer-group; break-inside:avoid;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/uncontained-oof-in-inline-after-break-000-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/uncontained-oof-in-inline-after-break-000-crash.htmlnew file mode 100644index 00000000000..262c8b99aae--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/uncontained-oof-in-inline-after-break-000-crash.html@@ -0,0 +1,25 @@+<!DOCTYPE html>+<html class="test-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1285743">+ <div style="columns:2; line-height:20px;">+ <div id="b" style="height:20px; column-fill:auto;">+ <br>+ <span>+ x+ <div id="c" style="position:absolute; top:0; left:0; width:10px; column-fill:auto; height:40px;">+ <br><br><br><br><br>+ </div>+ </span>+ </div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ b.style.columns = "2";+ c.style.columns = "3";+ document.documentElement.classList.remove("test-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/uncontained-oof-in-inline-after-break-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/uncontained-oof-in-inline-after-break-001-crash.htmlnew file mode 100644index 00000000000..37b8d3504a7--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/uncontained-oof-in-inline-after-break-001-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1285743">+<div style="columns:2; column-fill:auto; height:20px; line-height:20px; orphans:1; widows:1;">+ <br>+ <br>+ <span>+ <div style="position:absolute;"></div>+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-break/wide-line-after-floats-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-break/wide-line-after-floats-crash.htmlnew file mode 100644index 00000000000..c2ced71e197--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-break/wide-line-after-floats-crash.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1249769">+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="float:left; width:50px; height:250px;"></div>+ <br>+ <div style="display:inline-block; width:100%; height:10px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/abspos-in-multicol-with-spanner-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/abspos-in-multicol-with-spanner-crash.htmlnew file mode 100644index 00000000000..6ae68d85875--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/abspos-in-multicol-with-spanner-crash.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=967180">+<div style="columns:2;">+ <br>+ <div style="column-span:all;"></div>+ <div style="position:relative;">+ <div style="position:absolute;">+ <div id="removeme"></div>+ </div>+ </div>+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=> {+ removeme.style.display = "none";+ }, "No crash");+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/balance-extremely-tall-monolithic-content-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/balance-extremely-tall-monolithic-content-crash.htmlnew file mode 100644index 00000000000..1fb178ffb25--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/balance-extremely-tall-monolithic-content-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#filling-columns">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#monolithic">+<div style="columns:2;">+ <div style="contain:size; height:12345678901234px;"></div>+ <div style="contain:size; height:12345678901234px;"></div>+ <div style="contain:size; height:12345678901234px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/change-abspos-width-in-second-column-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/change-abspos-width-in-second-column-crash.htmlnew file mode 100644index 00000000000..78243c76878--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/change-abspos-width-in-second-column-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1074480">+<p>PASS if no crash.</p>+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="position: relative;">+ <div style="height:150px;"></div>+ <div id="target" style="position:absolute;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ target.style.width = '55px';+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/change-out-of-flow-type-and-remove-inner-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/change-out-of-flow-type-and-remove-inner-multicol-crash.htmlnew file mode 100644index 00000000000..eec69f9ede9--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/change-out-of-flow-type-and-remove-inner-multicol-crash.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1074480">+<p>PASS if no crash.</p>+<body style="columns:2;">+ <div style="position:relative;">+ <div style="column-span:all;"></div>+ <div id="target" style="columns:2; position:fixed;"></div>+ </div>+</body>+<script>+ document.body.offsetTop;+ target.style.position = 'absolute';+ target.style.columns = 'auto';+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/column-balancing-with-overflow-auto-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/column-balancing-with-overflow-auto-crash.htmlnew file mode 100644index 00000000000..1e522c0ec9e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/column-balancing-with-overflow-auto-crash.html@@ -0,0 +1,27 @@+<!DOCTYPE html>+<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1240384">+<style>+ #multicol {+ column-count: 2;+ column-gap: 5px;+ width: 200px;+ }+ #container {+ position: relative;+ box-sizing: border-box;+ width: 50px;+ overflow: auto;+ }+ #abs {+ position: absolute;+ width: 20px;+ height: 200px;+ }+</style>+<p>PASS if no crash.</p>+<div id="multicol">+ <div id="container">+ <div id="abs"></div>+ <div style="height: 100px; width: 30px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/content-visibility-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/content-visibility-001-crash.htmlnew file mode 100644index 00000000000..0ba0d662fc2--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/content-visibility-001-crash.html@@ -0,0 +1,27 @@+<!DOCTYPE html>+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2045606">+<style>+ #col { columns: 3; column-fill: auto; height: 150px; width: 450px; column-gap: 0; }+ #w { contain: layout paint style; }+ #k { position: fixed; top: 0; left: 0; width: 60px; }+ #y { position: fixed; top: 10px; left: 100px; width: 30px; height: 30px; background: red; }+</style>+<div id="col">+ <div id="w">+ <div style="height:20px">pre</div>+ <div id="k">+ <div style="height:220px;background:lime"></div>+ <span id="h"><div id="y"></div></span>+ <div style="height:60px;background:cyan"></div>+ </div>+ <div style="height:500px">post</div>+ </div>+</div>+<script>+document.body.offsetHeight;+requestAnimationFrame(function() {+ document.getElementById('w').style.contentVisibility = 'hidden';+ document.body.offsetHeight;+ document.title = 'done';+});+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/add-list-item-marker.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/add-list-item-marker.htmlnew file mode 100644index 00000000000..fa14315cabf--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/add-list-item-marker.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1510614">+<div style="columns:2;">+ <div id="outer" style="display:list-item; list-style-type:none;">+ text+ <div></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ outer.style.listStyleType = "disc";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/ancestor-toggle-spanner-remove-child.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/ancestor-toggle-spanner-remove-child.htmlnew file mode 100644index 00000000000..350d5fcf787--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/ancestor-toggle-spanner-remove-child.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<title>Remove transform but keep stacking context root, remove child inside descendant spanner candidate</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/500832364">+<div style="columns:1;">+ <div id="ancestor" style="transform:rotate(45deg); position:relative; z-index:1;">+ <div style="column-span:all; padding-bottom:100px;">+ <div id="child"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;++ // Transforms establish a stacking context. So does relative-positioning ++ // z-index. Removing the transform therefore won't affect whether it creates a+ // stacking context or not. Transforms also prevent descendant spanners,+ // though, so removing the transform will allow for spanners inside.+ ancestor.style.transform = "none";++ child.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/as-baseline-aligned-grid-item.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/as-baseline-aligned-grid-item.htmlnew file mode 100644index 00000000000..f9a9e1dad0d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/as-baseline-aligned-grid-item.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1349884">+<div style="display:grid; justify-items:baseline;">+ <div style="columns:0px; gap:100%;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balance-break-inside-avoid-on-root.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balance-break-inside-avoid-on-root.htmlnew file mode 100644index 00000000000..d209b57083d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balance-break-inside-avoid-on-root.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<title>break-inside:avoid on the multicol container itself should not affect the columns in any way</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/512514755">+<div style="columns:2; break-inside:avoid;">+ a<br>b<br>c+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balance-with-forced-break.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balance-with-forced-break.htmlnew file mode 100644index 00000000000..794f7617665--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balance-with-forced-break.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1372653">+<div style="columns:2;">+ <div>+ <div style="display:flow-root;"></div>+ <div style="break-before:column; margin-bottom:100px;"></div>+ </div>+ <div>+ <div style="display:flow-root;"></div>+ <div style="break-before:column;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balancing-flex-item-trailing-margin-freeze.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balancing-flex-item-trailing-margin-freeze.htmlnew file mode 100644index 00000000000..3cbf2f853e2--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balancing-flex-item-trailing-margin-freeze.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395408">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1399449">+<div style="columns:2;">+ <div style="contain:size; height:40px;">PASS if no freeze.</div>+ <div style="display:flex;">+ <div style="contain:size; margin-bottom:2px; height:30px; width:100px;"></div>+ </div>+ <div style="display:flex;">+ <div style="contain:size; margin-bottom:2px; height:30px; width:100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balancing-tall-borders-freeze.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balancing-tall-borders-freeze.htmlnew file mode 100644index 00000000000..2672690669e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/balancing-tall-borders-freeze.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395408">+<div style="columns:2;">+ <div style="contain:size; height:40px;">PASS if no freeze.</div>+ <div style="display:flow-root; border-top:32px solid;"></div>+ <div style="display:flow-root; border-top:32px solid;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-flow-split-with-fixed-child.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-flow-split-with-fixed-child.htmlnew file mode 100644index 00000000000..ef6d6c7d1dd--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-flow-split-with-fixed-child.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Moving fixed-position element into multi-column container should not crash</title>+<link rel="help" href="https://crbug.com/40362061">+<style>+.maybe-colspan:nth-last-child(even) { column-span: all; }+</style>+<div id="container" style="column-count: 2">+ <div class="maybe-colspan"></div>+ <span class="maybe-colspan">+ <div></div>+ </span>+</div>+<div id="fixed" style="position: fixed"></div>+<script>+ window.addEventListener('load', function() {+ document.getElementById('container').appendChild(document.getElementById('fixed'));+ });+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-become-float.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-become-float.htmlnew file mode 100644index 00000000000..6d557b7c3ab--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-become-float.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="http://crbug.com/329674902">+<div style="width:10px; line-height:20px; columns:3; gap:0; height:40px; column-fill:auto; orphans:1; widows:1;">+ <br>+ <span>+ <div id="trouble" style="contain:size; width:100%; height:100px;"></div>+ xxxxxxxxxxxxxxxxxxxxxxxx+ xxxxxxxxxxxxxxxxxxxxxxxx+ </span>+ <script>+ document.body.offsetTop;+ trouble.style.cssFloat = "left";+ </script>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-with-abspos-after-spanner.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-with-abspos-after-spanner.htmlnew file mode 100644index 00000000000..e5bcb4e71e4--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-with-abspos-after-spanner.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2004166">++<div style="columns:2">+<span id="span">+<div style="column-span:all"></div><div>+<div style="position:absolute"></div>+<script>+span.style.position = "relative"+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-with-spanner-in-overflowed-parent-nested-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-with-spanner-in-overflowed-parent-nested-multicol.htmlnew file mode 100644index 00000000000..b75aad5bfc0--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-with-spanner-in-overflowed-parent-nested-multicol.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<title>Nested multicol, overflowed block with spanner in next outer column</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/364933065">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="columns:2; column-fill:auto;">+ <span>+ <div style="height:10px;">+ <span style="outline:solid;">+ <div style="height:205px;"></div>+ <div style="column-span:all; height:20px;"></div>+ </span>+ </div>+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-with-spanner-in-overflowed-parent.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-with-spanner-in-overflowed-parent.htmlnew file mode 100644index 00000000000..6bf5e9c1b9a--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/block-in-inline-with-spanner-in-overflowed-parent.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<title>Overflowed block with spanner</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/364933065">+<div style="columns:2; column-fill:auto; height:100px; line-height:50px;">+ <span>+ <div style="height:100px;">+ <div style="height:150px;"></div>+ <div style="column-span:all; height:20px;"></div>+ </div>+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/body-becomes-spanner-html-becomes-vertical-rl.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/body-becomes-spanner-html-becomes-vertical-rl.htmlnew file mode 100644index 00000000000..7cd544b71cb--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/body-becomes-spanner-html-becomes-vertical-rl.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1377673">+<style>+ html { columns:2; }+</style>+<div style="height:100px;"></div>+<script>+ document.body.offsetTop;+ document.body.style.columnSpan = "all";+ document.documentElement.style.writingMode = "vertical-rl";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/break-before-multicol-caption.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/break-before-multicol-caption.htmlnew file mode 100644index 00000000000..ac6f444eaad--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/break-before-multicol-caption.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1375029">+<div style="columns:5; column-fill:auto; height:10px;">+ <div style="display:table;">+ <div style="display:table-caption;">+ <div style="height:1px;"></div>+ <div style="height:11px; contain:size;"></div>+ </div>+ <div style="display:table-caption; columns:2; column-fill:auto; height:1px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1293905.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1293905.htmlnew file mode 100644index 00000000000..2f1bd84528f--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1293905.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1293905">+<div style="columns:1;">+ <div style="columns:1; position:absolute;">+ <div style="position:absolute;">+ <div style="position:fixed;"></div>+ <div style="appearance:searchfield; columns:1; background-image:url(not-found); width:100px; height:100px;"></div>+ </div>+ <div id="boo" style="display:none;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ function boom() {+ boo.style.display = "block";+ }+ window.addEventListener("load", boom);+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1297118.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1297118.htmlnew file mode 100644index 00000000000..5c96614db2d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1297118.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1297118">+<div style="columns:2;">+ <div style="columns:2;">+ <div style="column-span:all;">+ <span style="position:relative;">+ <div style="display:flex; float:right;"></div>+ </span>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1301281.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1301281.htmlnew file mode 100644index 00000000000..bb4f1fc55b1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1301281.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<html class="test-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1301281">+ <div style="columns:2; column-fill:auto; height:30px; line-height:20px; width:fit-content;">+ <span><span id="first"></span><input style="float:right; padding:3%;"></span>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ first.innerHTML = "D";+ document.body.offsetTop;+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ document.body.style.color = "blue";+ document.documentElement.classList.remove("test-wait");+ });+ });+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1303256.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1303256.htmlnew file mode 100644index 00000000000..072af7d4ef8--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1303256.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1303256">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="break-inside:avoid; width:100px; height:100px;"></div>+ <div style="columns:2; column-fill:auto; height:50px;">+ <div style="columns:2; margin:8px; column-fill:auto; height:1px;"></div>+ <div style="columns:2; column-fill:auto; height:1px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1314866.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1314866.htmlnew file mode 100644index 00000000000..538586ab5de--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/chrome-bug-1314866.html@@ -0,0 +1,5 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1314866">+<div style="columns:2; line-height:1px;">+ <div style="columns:2; column-fill:auto; height:20px; padding-top:9px;">x</div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/continuation-detach.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/continuation-detach.htmlnew file mode 100644index 00000000000..eb222b90dfa--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/continuation-detach.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Detaching continuation in multi-column layout should not crash</title>+<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=107189">+<style>+.class1 { column-span: all; }+.class2 > .class3 { float: right; content: open-quote; }+.class3:last-of-type { column-width: 1px; }+.class3:nth-last-child(2n+10000000000000000) { column-span: all; }+</style>+<script>+ window.addEventListener('load', function() {+ var test1 = document.createElement('header');+ var test2 = document.createElement('footer');+ var test3 = document.createElement('address');+ test3.setAttribute('class', 'class1');+ test1.appendChild(test3);+ var test4 = document.createElement('nav');+ test4.setAttribute('class', 'class3');+ document.documentElement.appendChild(test4);+ var test5 = document.createElement('dt');+ test5.setAttribute('class', 'class2');+ var test6 = document.createElement('a');+ document.documentElement.appendChild(test6);+ var test7 = document.createElement('div');+ test7.setAttribute('class', 'class3');+ test5.appendChild(test7);+ test5.appendChild(test1);+ test4.appendChild(test5);+ document.documentElement.offsetTop;+ test5.setAttribute('class', 'class3');+ document.documentElement.offsetTop;+ test2.appendChild(test6);+ });+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/dynamic-simplified-layout-break-propagation.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/dynamic-simplified-layout-break-propagation.htmlnew file mode 100644index 00000000000..c675b50f942--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/dynamic-simplified-layout-break-propagation.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<body style="columns: 1;">+ <div style="display: inline-block; position: relative;">+ <div style="position: absolute;">+ <div id="target"></div>+ </div>+ <div style="break-before: column;"></div>+ </div>+</body>+<script>+document.body.offsetTop;+document.getElementById('target').style.height = '10px';+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/first-letter-column-span-fieldset.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/first-letter-column-span-fieldset.htmlnew file mode 100644index 00000000000..71815a18f27--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/first-letter-column-span-fieldset.html@@ -0,0 +1,16 @@+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2008625">+<style>+*:last-of-type {+ columns: 474px 1;+}+*:valid {+ column-span: all;+}+*::first-letter { }+</style>+<data>+<form></form>+</data>+<u>+<fieldset></fieldset>+</u>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/fit-content-with-spanner-and-auto-scrollbar-sibling.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/fit-content-with-spanner-and-auto-scrollbar-sibling.htmlnew file mode 100644index 00000000000..105da399b19--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/fit-content-with-spanner-and-auto-scrollbar-sibling.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308960">+<div style="columns:2; width:100px;">+ <div style="width:min-content;">+ <div style="column-span:all;"></div>+ <div style="height:50px; overflow:auto;">+ <div style="width:100px; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-becomes-non-float-spanner-surprises-inside.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-becomes-non-float-spanner-surprises-inside.htmlnew file mode 100644index 00000000000..39fccf4522c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-becomes-non-float-spanner-surprises-inside.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1373409">+<div style="columns:2;">+ <div id="elm" style="margin-bottom:100px; float:left;">+ <div style="column-span:all;"></div>+ <div style="column-span:all;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.cssFloat = "none";+ elm.offsetTop;+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-becomes-spanner-remove-child.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-becomes-spanner-remove-child.htmlnew file mode 100644index 00000000000..db485e191fa--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-becomes-spanner-remove-child.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/422810439">+<div style="columns:1; column-fill:auto; height:100px;">+ <div id="sometimescontainer">+ <div id="e3" style="float:left; column-span:all;">+ <div id="child"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ e3.style.cssFloat = "none";+ child.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-becomes-spanner.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-becomes-spanner.htmlnew file mode 100644index 00000000000..90a4c9079c4--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-becomes-spanner.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1317656">+<div style="columns:2;">+ <div>+ <div id="elm" style="float:left;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.cssFloat = "none";+ elm.style.columnSpan = "all";+ document.body.offsetTop;+ elm.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-beside-whitespace-ruby.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-beside-whitespace-ruby.htmlnew file mode 100644index 00000000000..dcdc9b4e59c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-beside-whitespace-ruby.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/510947981">+<div style="columns:12; column-fill:auto; height:2px;">+ <div style="columns:1; text-indent:1000px;">+ <ruby> </ruby>+ <div style="float:left; border-bottom:solid;">+ <div style="columns:10; height:10px; contain:size;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-cannot-be-spanner.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-cannot-be-spanner.htmlnew file mode 100644index 00000000000..f366e79ae8d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-cannot-be-spanner.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/417256483">+<div style="columns:2;">+ <div id="e59" style="float:left; width:100px; column-span:all;"></div>+ m+</div>+<script>+ document.body.offsetTop;+ e59.style.width = "101px";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-multicol-crash.htmlnew file mode 100644index 00000000000..a8f01db169e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/float-multicol-crash.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<style>+#htmlvar00001 {+ shape-outside: inset(-1px 8px 1px 1px);+}++* {+ font-size: 1px;+ float: right;+ column-width: 7px;+}+</style>+<select id="htmlvar00001" size="1"></select>+<wbr>+<span contenteditable="true"></span>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/floated-input-in-inline-next-column.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/floated-input-in-inline-next-column.htmlnew file mode 100644index 00000000000..f1ada47baa2--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/floated-input-in-inline-next-column.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<html class="test-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1451185">+ <div id="container" style="opacity:0.0;">+ <div style="columns:3; orphans:1; widows:1;">+ <br>+ <span><input style="float:right;"></span>+ </div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ container.style.opacity = "1";+ document.documentElement.classList.remove("test-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/forced-break-in-oof-in-column-balancing-nested.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/forced-break-in-oof-in-column-balancing-nested.htmlnew file mode 100644index 00000000000..02b3295444a--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/forced-break-in-oof-in-column-balancing-nested.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1322319">+<div style="columns:2;">+ <div style="columns:2; position:relative; column-fill:auto; height:10px;">+ <div style="position:absolute;">+ <div></div>+ <div style="break-before:column;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/forced-break-in-oof-in-column-balancing.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/forced-break-in-oof-in-column-balancing.htmlnew file mode 100644index 00000000000..31cafba9a21--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/forced-break-in-oof-in-column-balancing.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1322319">+<div style="columns:2;">+ <div style="position:relative; height:10px;">+ <div style="position:absolute;">+ <div style="height:1px;"></div>+ <div style="break-before:column;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/inline-become-oof-container-make-oof-inflow.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/inline-become-oof-container-make-oof-inflow.htmlnew file mode 100644index 00000000000..5a099eeaaf9--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/inline-become-oof-container-make-oof-inflow.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1503298">+<div style="columns:2;">+ <span id="span">+ <div style="column-span:all;"></div>+ <div id="becomeinflow" style="position:absolute;"></div>+ </span><!-- No whitespace here. --></div>+<script>+ document.documentElement.offsetTop;+ span.style.position = "relative";+ becomeinflow.style.position = "static";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/inline-float-parallel-flow.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/inline-float-parallel-flow.htmlnew file mode 100644index 00000000000..5280b8a63c8--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/inline-float-parallel-flow.html@@ -0,0 +1,23 @@+<!DOCTYPE html>+<html class="test-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1489177">+ <div style="columns:2; column-fill:auto; height:200px; line-height:20px; orphans:1; widows:1;">+ <div style="width:10px;">+ bazinga+ <span>+ <div style="float:left; height:300px; contain:size;"></div>+ <br>+ </span>+ </div>+ <div id="e57" style="display:none;"></div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ e57.style.display = "block";+ document.documentElement.classList.remove("test-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/inline-with-spanner-in-overflowed-container-before-multicol-float.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/inline-with-spanner-in-overflowed-container-before-multicol-float.htmlnew file mode 100644index 00000000000..69abc9bcf99--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/inline-with-spanner-in-overflowed-container-before-multicol-float.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1309859">+<div style="columns:2;">+ <div style="height:10px;"></div>+ <span>+ <div style="height:20px;">+ <div style="display:inline-block; width:10px; height:50px;"></div>+ <div>+ <div style="column-span:all;"></div>+ </div>+ </div>+ </span>+ <div style="columns:2; height:100px; float:left;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/interleaved-bfc-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/interleaved-bfc-crash.htmlnew file mode 100644index 00000000000..30a619de67b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/interleaved-bfc-crash.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1506393">+<div style="float:right; overflow:auto; columns:1; height:100px;">+ x+ <div style="float:right; contain:size; height:100px; padding-left:65536px;"></div>+ <div style="display:flow-root; width:100%;">+ y+ <div style="position:relative; float:right; padding-left:65536px; width:1px; border-style:solid; columns:1;">+ z+ <div style="contain:size; height:100px;"></div>+ <div style="position:absolute;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/margin-and-break-before-child-spanner.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/margin-and-break-before-child-spanner.htmlnew file mode 100644index 00000000000..8ec36250cf0--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/margin-and-break-before-child-spanner.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1380371">+<div style="columns:3; column-fill:auto; height:106px;">+ <div style="margin-top:10px;">+ <div style="float:left; width:10px; padding-bottom:100px;"></div>+ <div style="column-span:all;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/monolithic-oof-in-clipped-container.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/monolithic-oof-in-clipped-container.htmlnew file mode 100644index 00000000000..7a350629022--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/monolithic-oof-in-clipped-container.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1403467">+<div style="columns:2; column-fill:auto; height:250px;">+ <div style="position:relative; overflow:clip; width:100px; height:100px;">+ <div style="position:absolute; contain:size; width:100px; height:100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/move-linebreak-to-different-column.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/move-linebreak-to-different-column.htmlnew file mode 100644index 00000000000..d87881c3509--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/move-linebreak-to-different-column.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<html class="test-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1322739">+ <div id="container">+ <div id="mc" style="height:100px; columns:2; column-fill:auto; line-height:20px; orphans:1; widows:1;">+ <br><br><br><br><br><br>+ </div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ mc.style.height = "80px";+ container.setAttribute("ontouchstart", "nonValidFunctionName()");+ document.documentElement.classList.remove("test-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/move-newline-pre-text.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/move-newline-pre-text.htmlnew file mode 100644index 00000000000..d63f919662b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/move-newline-pre-text.html@@ -0,0 +1,23 @@+<!DOCTYPE html>+<html class="test-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1386676">+ <div id="container" style="columns:10; column-fill:auto; height:30px; line-height:20px; orphans:1; widows:1; white-space:pre;">+ <span id="htmlvar00001"><br><br></span>++</div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ document.body.style.color = "blue";+ htmlvar00001.style.display = "none";+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ container.style.width = "88%";+ document.documentElement.classList.remove("test-wait");+ });+ });+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-at-page-boundary-print.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-at-page-boundary-print.htmlnew file mode 100644index 00000000000..63b27c88cd0--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-at-page-boundary-print.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1383662">+<style>+ body {+ margin: 0;+ }+</style>+<div style="height:100vh;"></div>+<div style="columns:2;">+ <div style="padding-top:100px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-block-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-block-in-inline-crash.htmlnew file mode 100644index 00000000000..037b558ac0b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-block-in-inline-crash.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<style type="text/css">+body {+ column-count: 5+}+</style>+<body>+ aaaaa aaaaaaaaaaaaaa aaaaaaaaaaaaaaa aaaaaaaaaa+ <time><header><id>a+ <p><div style="float: left"></div>aaaaa</p>+ a<menu></menu>aaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaa aaaaaaa+</body>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-cached-consumed-bsize-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-cached-consumed-bsize-crash.htmlnew file mode 100644index 00000000000..f82bddfef1c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-cached-consumed-bsize-crash.html@@ -0,0 +1,15 @@+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1715098">+<style>+:not(table) {+ column-width: 0;+ margin-right: 91%;+}+#a {+ column-span: all;+ display: -webkit-box;+}+</style>+<textarea>a</textarea>+<del>a</del>+<q style="float: left">a</q>+<br id="a"></br>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-column-change-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-column-change-crash.htmlnew file mode 100644index 00000000000..6f0a05be296--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-column-change-crash.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<html class=test-wait>+<div id="outer" style="column-count: 100;">+ <div id="inner" style="transform: translateY(1px); height:300px;"></div>+ <div id="changeme" style="padding: 100px;"></div>+</div>+<script>+ requestAnimationFrame(function() {+ requestAnimationFrame(function() {+ changeme.style.padding = '0';+ requestAnimationFrame(function() {+ requestAnimationFrame(function() {+ document.documentElement.classList.remove('test-wait');+ });+ });+ });+ });+</script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-dynamic-contain-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-dynamic-contain-crash.htmlnew file mode 100644index 00000000000..e20a6e70e32--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-dynamic-contain-crash.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="help" href="https://crbug.com/965639">+<style>+#multicol {+ columns: 2;+ column-fill: auto;+ height: 50px;+ background: orange;+}+#container {+ contain: strict;+ width: 100px;+ height: 100px;+ background: blue;+}+#target {+ width: 100px;+ height: 100px;+ position: absolute;+ background: purple;+}+.transform {+ transform: translate(0, 50px);+}+</style>+<body>+ <div id="multicol">+ <div id="container">+ <div id="target"></div>+ </div>+ </div>+<script>+document.body.offsetTop;+target.appendChild(document.createTextNode('a'));+</script>+</body>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-dynamic-transform-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-dynamic-transform-crash.htmlnew file mode 100644index 00000000000..993bd1eddd8--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-dynamic-transform-crash.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="help" href="https://crbug.com/965639">+<style>+#container {+ columns: 2;+ column-fill: auto;+ background: orange;+ height: 50px;+}+#target {+ width: 100px;+ height: 100px;+ background: purple;+ position: absolute;+}+.transform {+ transform: translate(0, 50px);+}+</style>+<body>+ <div id="container">+ <div style="position: relative">+ <div id="target"></div>+ </div>+ </div>+<script>+document.body.offsetTop;+target.classList.add('transform');+</script>+</body>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-floats-after-column-span-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-floats-after-column-span-crash.htmlnew file mode 100644index 00000000000..4fe3f363eb4--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-floats-after-column-span-crash.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<html id="a">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1674011">++<style>+:not(animateTransform) { columns: 1px }+</style>+<script>+function go() {+ a.appendChild(b)+}+function eh() {+ a.appendChild(c)+}+</script>+<body onload=go()>+<data id="b">x</command>+<dir style="column-span: all">x</dir>+<details id="c" ontoggle="eh()" open="">x</details>+<iframe align="right">x</iframe>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-floats-in-ifc.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-floats-in-ifc.htmlnew file mode 100644index 00000000000..63d1653049d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-floats-in-ifc.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="help" href="https://crbug.com/1283250">+<div style="columns:2; column-fill:auto; height:10px; line-height:20px;">+ <div style="columns:1;">+ <div style="padding-top:1px; direction:rtl;">+ <span>+ <div style="display:inline-block; width:101%; height:1px;"></div>+ </span>+ <div style="float:left; width:1px; height:1px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-parallel-flow-after-spanner-in-inline.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-parallel-flow-after-spanner-in-inline.htmlnew file mode 100644index 00000000000..2c0981239b9--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-parallel-flow-after-spanner-in-inline.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1417514">+<div style="columns:3; column-fill:auto; height:64px;">+ <span>+ <div style="column-span:all; height:50px;"></div>+ <div style="height:13px; padding-top:1px;">+ <div style="columns:2; padding-bottom:5px;">+ <div style="contain:size; width:1px; height:20px;"></div>+ </div>+ </div>+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-table-caption-parallel-flow-after-spanner-in-inline.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-table-caption-parallel-flow-after-spanner-in-inline.htmlnew file mode 100644index 00000000000..8de7e2f0d83--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-table-caption-parallel-flow-after-spanner-in-inline.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1417514">+<div style="columns:2; column-fill:auto; height:100px;">+ <span>+ <div style="column-span:all; height:86px;"></div>+ <div style="height:13px; padding-top:1px;">+ <table style="padding-bottom:3px;">+ <caption style="columns:2;">+ <div style="contain:size; width:1px; height:20px;"></div>+ </caption>+ </table>+ </div>+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-with-monolithic-oof-with-multicol-with-oof.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-with-monolithic-oof-with-multicol-with-oof.htmlnew file mode 100644index 00000000000..43133fc2331--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-with-monolithic-oof-with-multicol-with-oof.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1314492">+<div style="columns:2;">+ <div style="position:absolute; contain:size;">+ <div style="columns:2;">+ <div style="position:absolute;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-with-oof-in-multicol-with-oof-in-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-with-oof-in-multicol-with-oof-in-multicol.htmlnew file mode 100644index 00000000000..b1104e28dde--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/multicol-with-oof-in-multicol-with-oof-in-multicol.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/41486207">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="columns:1; column-fill:auto; height:100px;">+ <div style="position:relative;">+ <div id="outer" style="position:absolute;"></div>+ </div>+ <div style="columns:1; column-fill:auto; height:100px; position:relative;">+ <div style="position:relative;">+ <div id="inner" style="position:absolute;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/negative-margin-on-column-spanner.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/negative-margin-on-column-spanner.htmlnew file mode 100644index 00000000000..0e14943d015--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/negative-margin-on-column-spanner.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<div style="columns: 2;">+ <div style="margin: -100px; column-span: all;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-as-balanced-legend.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-as-balanced-legend.htmlnew file mode 100644index 00000000000..72779dc3f32--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-as-balanced-legend.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308080">+<div id="outer" style="columns:3; width:500px; height:200px; column-fill:auto;">+ <legend style="columns:1;">+ <div style="width:100px; height:100px;"></div>+ </legend>+</div>+<script>+ document.body.offsetTop;+ outer.style.width = "501px";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-as-nested-balanced-legend.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-as-nested-balanced-legend.htmlnew file mode 100644index 00000000000..0575193c215--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-as-nested-balanced-legend.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308024">+<div id="outer" style="columns:3; width:500px;">+ <legend style="columns:1;">+ <div style="width:100px; height:100px;"></div>+ </legend>+</div>+<script>+ document.body.offsetTop;+ outer.style.width = "501px";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-floated-multicol-with-tall-margin.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-floated-multicol-with-tall-margin.htmlnew file mode 100644index 00000000000..93dc644d050--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-floated-multicol-with-tall-margin.html@@ -0,0 +1,5 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1322125">+<div style="columns:2; column-fill:auto; height:99px;">+ <div style="float:left; margin-top:100px; column-fill:auto; height:10px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-and-float-with-tall-padding-before-float.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-and-float-with-tall-padding-before-float.htmlnew file mode 100644index 00000000000..2a901d1f582--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-and-float-with-tall-padding-before-float.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1289532">+<div style="columns:4; column-fill:auto; height:40px;">+ <div style="float:left; width:100%; height:100px; padding-bottom:3000px;"></div>+ <div style="float:left; columns:1; column-fill:auto; width:100%; height:100px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-and-float-with-tall-padding.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-and-float-with-tall-padding.htmlnew file mode 100644index 00000000000..8eabef27f42--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-and-float-with-tall-padding.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1289532">+<div style="columns:4; column-fill:auto; height:100px;">+ <div style="float:left; height:10px; padding-bottom:100px; width:100%;"></div>+ <div style="columns:2; column-fill:auto; height:200px; width:100%;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-fieldset-tall-trailing-border-freeze.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-fieldset-tall-trailing-border-freeze.htmlnew file mode 100644index 00000000000..014073a9e8c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-fieldset-tall-trailing-border-freeze.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1323250">+<div style="columns:2; height:100px; column-fill:auto;">+ <div style="height:10px;"></div>+ <div style="columns:1; height:100px; column-fill:auto;">+ <fieldset style="height:100px; border:none; padding:0; margin:0; border:1px solid; padding-bottom:19px;">+ <legend style="padding:0; margin:0;"></legend>+ <div></div>+ </fieldset>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-fieldset-tall-trailing-padding.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-fieldset-tall-trailing-padding.htmlnew file mode 100644index 00000000000..b155a4d7f42--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-fieldset-tall-trailing-padding.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1318137">+<div style="columns:2; height:100px; column-fill:auto;">+ <div style="height:10px;"></div>+ <div style="columns:1; height:100px; column-fill:auto;">+ <fieldset style="height:100px; border:none; padding:0; margin:0; padding-top:1px; padding-bottom:20px;">+ <legend></legend>+ x+ </fieldset>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-in-svg-foreignobject.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-in-svg-foreignobject.htmlnew file mode 100644index 00000000000..b182f534d48--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-in-svg-foreignobject.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1339391">+<div style="columns:2;">+ <svg>+ <foreignObject>+ <div style="columns:2;">+ <div style="height:100px;"></div>+ </div>+ </foreignObject>+ </svg>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-nested-flex.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-nested-flex.htmlnew file mode 100644index 00000000000..047f0ac65e4--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-nested-flex.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1376859">+<div style="columns:3; column-fill:auto; height:20px;">+ <div style="height:10px;"></div>+ <div style="display:flex;">+ <div style="display:flex; margin-top:15px;">+ <div>+ <div style="columns:2;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-spanner-reframe.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-spanner-reframe.htmlnew file mode 100644index 00000000000..630e5a5f246--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-spanner-reframe.html@@ -0,0 +1,42 @@+<!DOCTYPE html>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2046964">++<style>+* {+ column-width: 8px;+ scale: 0.867 1 0;+ white-space: pre;+}+.cl1 {+ column-span: all;+}+.cl2 {+ position: fixed;+ top: 45vmax;+}+</style>+<script>+document.addEventListener("DOMContentLoaded", () => {+ document.documentElement.offsetHeight;+ a.rules = "groups";+ document.documentElement.offsetHeight;+})+</script>+<bdi>+<table id="a">+<tfoot class="cl2"></tfoot>+</table>+<video></video>+<dir>a</dir>+++<div class="cl1"></div>++</bdi>+<iframe align="right"></iframe>+<li></li>+<menu>+<map></map>+</menu>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-with-float-between.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-with-float-between.htmlnew file mode 100644index 00000000000..3a583ed0daf--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-multicol-with-float-between.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1303662">+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="height:70px;"></div>+ <div style="float:left; break-inside:avoid; width:100%; height:200px;"></div>+ <div style="columns:1; column-fill:auto; width:100%; height:50px;">+ <div style="height:40px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-oof-multicol-with-monolithic-child.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-oof-multicol-with-monolithic-child.htmlnew file mode 100644index 00000000000..bf7aa425b68--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-oof-multicol-with-monolithic-child.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1306582">+<div style="columns:4; column-fill:auto; height:100px;">+ <div style="position:relative;">+ <div style="height:90px;"></div>+ <div style="position:absolute; columns:1; column-fill:auto; width:10px; height:95px;">+ <div style="height:95px; contain:size;"></div>+ </div>+ <div style="position:absolute; width:1px; height:100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-oof-multicol-with-oof-needing-additional-columns.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-oof-multicol-with-oof-needing-additional-columns.htmlnew file mode 100644index 00000000000..52c44ff9e0a--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-oof-multicol-with-oof-needing-additional-columns.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1302323">+<div style="columns:1; column-fill:auto; height:100px;">+ <div style="position:relative;">+ <div style="position:absolute; columns:1;">+ <div style="position:relative; margin-top:101px;">+ <div style="position:absolute; margin-top:101px;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-oof-multicol-with-padding.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-oof-multicol-with-padding.htmlnew file mode 100644index 00000000000..e4797581744--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-oof-multicol-with-padding.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1306582">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="position:relative;">+ <div style="height:90px;"></div>+ <div style="position:absolute; columns:2; padding-top:40px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-spanner-with-negative-margin.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-spanner-with-negative-margin.htmlnew file mode 100644index 00000000000..3a9b2e354ce--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-spanner-with-negative-margin.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1321365">+<div style="columns:2; column-fill:auto; height:20px;">+ <div style="height:20px;"></div>+ <div style="columns:1;">+ <div style="column-span:all; margin-bottom:-3px;"></div>+ <div style="height:10px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-fragmented-oof-negative-top-offset.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-fragmented-oof-negative-top-offset.htmlnew file mode 100644index 00000000000..38f62888a63--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-fragmented-oof-negative-top-offset.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1311398">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="height:101px;"></div>+ <div style="position:relative;">+ <div style="columns:2; column-fill:auto;">+ <div style="position:absolute; top:-50px;">+ <div style="height:100px;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-multicol-table-caption.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-multicol-table-caption.htmlnew file mode 100644index 00000000000..7ef78394e62--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-multicol-table-caption.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1347141">+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="height:100px;"></div>+ <div style="display:table;">+ <div style="display:table-caption; columns:2;">+ Blargh, I'm dead!+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-multicol-table-cell.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-multicol-table-cell.htmlnew file mode 100644index 00000000000..abb99c6201d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-multicol-table-cell.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1347322">+<div style="columns:2;">+ <div style="columns:2; margin-top:8px;">+ text+ <div style="display:table-cell; columns:2;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-oof-inside-fixed-width.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-oof-inside-fixed-width.htmlnew file mode 100644index 00000000000..d53286ebe90--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-oof-inside-fixed-width.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1303905">+<div id="outer" style="columns:2; column-fill:auto; height:20px; width:100px;">+ <div style="position:relative; columns:2; column-fill:auto;">+ <div style="width:10px; position:relative;">+ <div style="position:absolute; right:0; bottom:0;"></div>+ </div>+ <div style="position:absolute;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ outer.style.width = "101px";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-percentage-size-and-oof.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-percentage-size-and-oof.htmlnew file mode 100644index 00000000000..bf53cc17f3f--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-percentage-size-and-oof.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1302592">+<div style="columns:2;">+ <div style="columns:2; width:100%;">+ <div style="position:relative;">+ <div style="position:absolute;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-tall-padding-and-oof.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-tall-padding-and-oof.htmlnew file mode 100644index 00000000000..a055124257e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-tall-padding-and-oof.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1295998">+<div id="outer" style="columns:2; column-fill:auto; height:50px;">+ <div id="inner" style="columns:2; padding-top:51px; column-fill:auto; height:1px;">+ <div style="position:absolute;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-tall-padding-and-spanner-and-content.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-tall-padding-and-spanner-and-content.htmlnew file mode 100644index 00000000000..cca75d461cf--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-tall-padding-and-spanner-and-content.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308937">+<div style="columns:2; height:100px;">+ <div style="columns:2; padding-top:101px;">+ <div style="column-span:all;"></div>+ <div></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-tall-padding.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-tall-padding.htmlnew file mode 100644index 00000000000..7f062b1ef94--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/nested-with-tall-padding.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308937">+<div style="columns:2; height:100px;">+ <div style="columns:2; padding-top:101px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-becomes-spanner.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-becomes-spanner.htmlnew file mode 100644index 00000000000..4897e47dbc7--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-becomes-spanner.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1317656">+<div style="columns:2;">+ <div>+ <div id="elm" style="position:absolute;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.position = "static";+ elm.style.columnSpan = "all";+ document.body.offsetTop;+ elm.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-additional-column-before-spanner.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-additional-column-before-spanner.htmlnew file mode 100644index 00000000000..fbfa04468c3--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-additional-column-before-spanner.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<html class="test-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1361902">+ <div style="columns:1;">+ <div style="float:left; padding-top:10px; position:relative;">+ <div style="position:absolute; height:2px;"></div>+ <div id="elm" style="display:inline-block;"></div>+ </div>+ <span>+ <div style="column-span:all;"></div>+ </span>+ </div>+ <script>+ requestAnimationFrame(()=>{+ requestAnimationFrame(()=>{+ elm.style.display = "none";+ document.documentElement.classList.remove("test-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-001.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-001.htmlnew file mode 100644index 00000000000..af270569db3--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-001.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1480474">+<div style="columns:2;">+ <area id="elm">+</div>+<script>+ var child = document.createElement('div');+ child.style.position = "absolute";+ elm.appendChild(child);+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-002.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-002.htmlnew file mode 100644index 00000000000..2d0be3d694e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-002.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1480474">+<div style="columns:2;">+ <br><br><br><br>+ <area id="elm">+ <br><br><br><br>+</div>+<script>+ var child = document.createElement('div');+ child.style.position = "absolute";+ elm.appendChild(child);+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-003.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-003.htmlnew file mode 100644index 00000000000..c0c5891ec81--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-003.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1480474">+<div style="columns:4;">+ <div style="position:relative;">+ <br><br><br><br>+ <area id="elm">+ <br><br><br><br>+ </div>+</div>+<script>+ var child = document.createElement('div');+ child.style.position = "absolute";+ elm.appendChild(child);+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-004.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-004.htmlnew file mode 100644index 00000000000..d1027ba51a9--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-004.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Helmut Januschka" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1480474">+<style>+ area { display: inline; }+</style>+<div style="columns:2;">+ <area id="elm">+</div>+<script>+ var child = document.createElement('div');+ child.style.position = "absolute";+ elm.appendChild(child);+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-005.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-005.htmlnew file mode 100644index 00000000000..aa56832b82d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-area-005.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<link rel="author" title="Helmut Januschka" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/40779549">+<style>+ area {+ display: inline;+ position: relative;+ }+</style>+<div style="columns:2;">+ <area id="elm">+</div>+<script>+ const child = document.createElement("div");+ child.style.position = "absolute";+ elm.appendChild(child);+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-nested-line-float.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-nested-line-float.htmlnew file mode 100644index 00000000000..d4d67763c87--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-nested-line-float.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1307990">+<div style="columns:3; column-fill:auto; height:100px; line-height:20px; orphans:1; widows:1;">+ <br>+ <div style="columns:2; float:left; height:20px; column-fill:auto;">+ <div style="position:relative;">+ <br>+ <div style="position:absolute; width:100%; height:10px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-multicol-spanner-in-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-multicol-spanner-in-multicol.htmlnew file mode 100644index 00000000000..0331b43c6a1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-multicol-spanner-in-multicol.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1482514">+<div style="column-count:1;">+ <div style="column-count:2; column-span:all;">+ <div style="position:relative;">+ <div style="position:absolute; column-count:1; border-style:dotted;">+ <div style="position:relative; padding-top:100px;">+ <div style="position:absolute;"></div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-relpos-in-oof-in-multicol-in-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-relpos-in-oof-in-multicol-in-multicol.htmlnew file mode 100644index 00000000000..0dd4479bafe--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-relpos-in-oof-in-multicol-in-multicol.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1459154">+<div style="columns:2; column-fill:auto; height:500px;">+ <div style="columns:2; column-fill:auto; height:200px; position:relative;">+ <div style="position:absolute;">+ <div style="position:relative;">+ <div style="position:absolute; columns:2; column-fill:auto; height:100px;">+ <div style="position:relative;">+ <div style="position:absolute; height:150px;"></div>+ </div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-relpos-spanner-in-multicol-in-relpos-multicol-in-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-relpos-spanner-in-multicol-in-relpos-multicol-in-multicol.htmlnew file mode 100644index 00000000000..ed6b63e5cb9--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-relpos-spanner-in-multicol-in-relpos-multicol-in-multicol.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1492021">+<div style="columns:6;">+ <div style="columns:3; position:relative;">+ <div style="columns:2;">+ <div style="position:relative; column-span:all;">+ <div style="position:absolute; columns:2; column-fill:auto; height:1px;">+ <div style="position:relative; border:solid;">+ <div style="position:absolute;"></div>+ </div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-relpos-spanner-in-spanner-multicol-in-multicol-in-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-relpos-spanner-in-spanner-multicol-in-multicol-in-multicol.htmlnew file mode 100644index 00000000000..f52fec4fac5--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-relpos-spanner-in-spanner-multicol-in-multicol-in-multicol.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1492021">+<div style="columns:6;">+ <div style="columns:3;">+ <div style="columns:2; column-span:all;">+ <div style="position:relative; column-span:all;">+ <div style="position:absolute; columns:2; column-fill:auto; height:1px;">+ <div style="position:relative; border:solid;">+ <div style="position:absolute;"></div>+ </div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-spanner-in-multicol-in-spanner-in-nested-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-spanner-in-multicol-in-spanner-in-nested-multicol.htmlnew file mode 100644index 00000000000..0ee6ad4d01a--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-spanner-in-multicol-in-spanner-in-nested-multicol.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1479320">+<div style="column-count:1;">+ <div style="column-count:1;">+ <div style="position:relative; column-span:all;">+ <div style="column-count:1;">+ <div style="column-span:all;">+ <div style="position:absolute; column-count:2;">+ <div style="position:relative;">+ <div style="position:absolute; height:100px;"></div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-spanner-in-nested-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-spanner-in-nested-multicol.htmlnew file mode 100644index 00000000000..fe44012518d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-oof-multicol-in-spanner-in-nested-multicol.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1479320">+<div style="column-count:1;">+ <div style="column-count:1;">+ <div style="position:relative; column-span:all;">+ <div style="position:absolute; column-count:2;">+ <div style="position:relative;">+ <div style="position:absolute; height:100px;"></div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-relpos-in-oof-multicol-in-oof-in-relpos-in-oof-multicol-in-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-relpos-in-oof-multicol-in-oof-in-relpos-in-oof-multicol-in-multicol.htmlnew file mode 100644index 00000000000..be73623b0b4--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-relpos-in-oof-multicol-in-oof-in-relpos-in-oof-multicol-in-multicol.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1475385">+<div style="columns:2;">+ <div style="columns:2; position:absolute;">+ <div style="position:relative;">+ <div style="position:absolute;">+ <div style="columns:2; position:absolute;">+ <div style="position:relative;">+ <div style="position:absolute; height:100px;"></div>+ </div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-relpos-in-oof-multicol-in-relpos-in-oof-multicol-in-relpos-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-relpos-in-oof-multicol-in-relpos-in-oof-multicol-in-relpos-multicol.htmlnew file mode 100644index 00000000000..1e6845e70ce--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-relpos-in-oof-multicol-in-relpos-in-oof-multicol-in-relpos-multicol.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1475385">+<div style="position:relative; columns:2;">+ <div style="position:absolute; columns:2;">+ <div style="position:relative;">+ <div style="position:absolute; columns:2;">+ <div style="position:relative;">+ <div style="position:absolute; height:200px;"></div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-spanner-in-relpos-in-multicol-in-relpos-multicol-001.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-spanner-in-relpos-in-multicol-in-relpos-multicol-001.htmlnew file mode 100644index 00000000000..b6b2a0a3638--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-spanner-in-relpos-in-multicol-in-relpos-multicol-001.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/471136527">+<div style="position:relative; columns:3;">+ <div style="columns:2;">+ <div style="position:relative;">+ <div style="column-span:all;">+ <div style="position:absolute;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-spanner-in-relpos-in-multicol-in-relpos-multicol-002.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-spanner-in-relpos-in-multicol-in-relpos-multicol-002.htmlnew file mode 100644index 00000000000..3e9abd72884--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-in-spanner-in-relpos-in-multicol-in-relpos-multicol-002.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/471136527">+<div style="position:absolute; columns:3;">+ <div style="opacity:0.1; columns:2; overflow:scroll;">+ <span style="position:relative; padding-right:10px; padding-bottom:100px;">+ <div style="column-span:all;">+ <div style="position:absolute;">xx</div>+ </div>+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-nested-multicol-inside-oof.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-nested-multicol-inside-oof.htmlnew file mode 100644index 00000000000..f80225a5c8b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/oof-nested-multicol-inside-oof.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1320787">+<div style="columns:3; height:30px; column-fill:auto; width:500px;">+ <div style="position:relative; columns:2; height:20px; column-fill:auto; width:5px;">+ <div style="position:absolute; height:200px; width:4px;">+ <div style="columns:2; position:absolute; column-fill:auto; height:114px; width:3px;">+ <div style="position:relative; width:2px;">+ <div style="position:absolute; width:1px; height:50px;"></div>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/outline-move-oof-with-inline.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/outline-move-oof-with-inline.htmlnew file mode 100644index 00000000000..f2b259bcf50--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/outline-move-oof-with-inline.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1374625">+<div style="columns:2; column-fill:auto; outline-style:auto; height:100px;">+ <div style="position:relative;">+ <div id="dings" style="position:absolute; height:120px; left:10px;">+ <span style="border:solid;">a</span>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ dings.style.left = "11px";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relayout-fixedpos-in-abspos-in-relpos-in-nested-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relayout-fixedpos-in-abspos-in-relpos-in-nested-multicol.htmlnew file mode 100644index 00000000000..6b9427d7042--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relayout-fixedpos-in-abspos-in-relpos-in-nested-multicol.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1501713">+<div style="columns:2; column-fill:auto; height:100px; will-change:transform;">+ <div style="columns:2; column-fill:auto;">+ <div style="position:relative;">+ <div style="position:absolute; height:150px;">+ <div id="trouble" style="position:fixed; height:50px;"></div>+ </div>+ </div>+ </div>+</div>+<script>+ document.body.offsetHeight;+ trouble.style.width = "2px";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relayout-nested-with-oof.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relayout-nested-with-oof.htmlnew file mode 100644index 00000000000..bdc7147337f--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relayout-nested-with-oof.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1296900">+<div id="outer" style="columns:1; column-fill:auto; width:333px; height:100px;">+ <div style="columns:1; column-fill:auto; width:100px; height:50px;">+ <div style="position:relative;">+ <div style="position:absolute; padding-left:1px; padding-bottom:10px;"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ outer.style.width = "334px";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relpos-inline-with-abspos-multicol-gets-block-child.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relpos-inline-with-abspos-multicol-gets-block-child.htmlnew file mode 100644index 00000000000..19a9bdde3af--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relpos-inline-with-abspos-multicol-gets-block-child.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308071">+<div style="columns:2;">+ <span style="position:relative;">+ <div style="position:absolute;"></div>+ </span>+ <div id="surprise" style="display:none;"></div>+ <span></span>+</div>+<script>+ document.body.offsetTop;+ surprise.style.display = "block";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relpos-spanner-with-spanner-child-becomes-regular.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relpos-spanner-with-spanner-child-becomes-regular.htmlnew file mode 100644index 00000000000..0f6f66557d0--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/relpos-spanner-with-spanner-child-becomes-regular.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1333166">+<div style="columns:2;">+ <div id="trouble" style="column-span:all; position:relative;">+ <div style="column-span:all;"></div>+ </div>+ <div></div>+</div>+<script>+ document.body.offsetTop;+ trouble.style.columnSpan = "none";+ trouble.style.position = "static";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/remove-spanner-after-spanner-in-inline-before-inline.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/remove-spanner-after-spanner-in-inline-before-inline.htmlnew file mode 100644index 00000000000..0836ef1a91e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/remove-spanner-after-spanner-in-inline-before-inline.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308253">+<style>+ #mc { columns: 2; }+ #mc div { column-span: all; }+</style>+<div id="mc">+ <span><div></div></span><div id="removeme"></div><span id="removemetoo"></span><div></div>+</div>+<script>+ document.body.offsetTop;+ removeme.style.display = "none";+ document.body.offsetTop;+ removemetoo.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/remove-spanner-in-table-caption-nested-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/remove-spanner-in-table-caption-nested-multicol.htmlnew file mode 100644index 00000000000..21d8a7ee8c6--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/remove-spanner-in-table-caption-nested-multicol.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1379635">+<div style="columns:1;">+ <div style="columns:2; display:table-caption;">+ <div style="width:10px;">+ <div style="height:100px;">+ <div style="height:1px;"></div>+ <div style="break-before:column;"></div>+ </div>+ <div id="e52" style="overflow:hidden; column-span:all;"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ e52.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/remove-transform-descendant-becomes-spanner-remove-spanner-child.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/remove-transform-descendant-becomes-spanner-remove-spanner-child.htmlnew file mode 100644index 00000000000..f432383d549--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/remove-transform-descendant-becomes-spanner-remove-spanner-child.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<title>A transform inside multicol prevents descendants from becoming spanners. If the transform is removed, descendants may become spanners.</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/445210793">+<!DOCTYPE html>+<div style="columns:1;">+ <div id="ancestor" style="transform:rotate(45deg);">+ <div>+ <div style="column-span:all; padding-bottom:100px;">+ <div id="child"></div>+ </div>+ </div>+ </div>+</div>+<script type="text/javascript">+ document.body.offsetTop;+ ancestor.style.transform = "none";+ document.body.offsetTop;+ child.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/repeated-section-in-nested-table-nested-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/repeated-section-in-nested-table-nested-multicol.htmlnew file mode 100644index 00000000000..e48854a36bd--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/repeated-section-in-nested-table-nested-multicol.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1348774">+<div style="columns:2; column-fill:auto; height:160px; background:yellow;">+ <div style="display:table;">+ <div style="display:table;">+ <div style="contain:size; height:150px;"></div>+ <div style="display:table-footer-group; break-inside:avoid;">+ <div style="columns:2;">+ x AAAAAAAAAAAAAAAAAAAA x+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/repeated-table-column.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/repeated-table-column.htmlnew file mode 100644index 00000000000..0d6a1accfd1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/repeated-table-column.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/420267099">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="display:table;">+ <div style="display:table-header-group; break-inside:avoid;">+ <div style="display:table;">+ <div id="col" style="display:table-column;"></div>+ <div style="width:10px; height:10px;"></div>+ </div>+ </div>+ <div style="height:150px;"></div>+ </div>+</div>+<script>+ col.offsetLeft;+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/repeated-table-footer-in-caption-nested-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/repeated-table-footer-in-caption-nested-multicol.htmlnew file mode 100644index 00000000000..d630abe8bbb--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/repeated-table-footer-in-caption-nested-multicol.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1354966">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="display:table;">+ <div style="display:table-caption; columns:2; column-fill:auto; height:50px;">+ <div style="display:table;">+ <div style="display:table-footer-group; break-inside:avoid;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/restricted-height-bottom-border-overflow-and-spanner.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/restricted-height-bottom-border-overflow-and-spanner.htmlnew file mode 100644index 00000000000..43c356509c7--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/restricted-height-bottom-border-overflow-and-spanner.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1381327">+<div style="columns:4;">+ <div style="height:10px; border-bottom:1px solid;">+ <div style="height:20px; contain:size;"></div>+ <div style="height:20px; contain:size;"></div>+ <div style="float:right; width:10px; height:100px;"></div>+ <div style="column-span:all;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/scrollable-spanner-in-nested.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/scrollable-spanner-in-nested.htmlnew file mode 100644index 00000000000..b904aaddd29--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/scrollable-spanner-in-nested.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1334885">+<div style="columns:2;">+ <!-- Add a table, as an attempt to trigger legacy layout fallback. -->+ <div style="display:table;"></div>+ <div style="columns:2;">+ <div style="overflow:scroll; column-span:all;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/shrink-column-height-block-with-margin-in-inline.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/shrink-column-height-block-with-margin-in-inline.htmlnew file mode 100644index 00000000000..2789a8adfdb--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/shrink-column-height-block-with-margin-in-inline.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<title>Shrink multicol height so that a child block (inside an inline) with a top margin gets pushed to the next column and gets its margin truncated.</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/413385740">+<div id="container" style="columns:1; column-fill:auto; height:200px;">+ <span style="position:absolute;"></span>+ <span>+ <div style="margin-top:10px;">x</div>+ </span>+</div>+<script>+ document.body.offsetTop;+ container.style.height = "2px";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/size-containment-become-multicol-add-inline-child.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/size-containment-become-multicol-add-inline-child.htmlnew file mode 100644index 00000000000..6933592c7e3--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/size-containment-become-multicol-add-inline-child.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1348714">+<div id="container" style="width:fit-content; container-type:size;">+ <span></span>+ <span id="boo" style="display:none;"></span>+</div>+<script>+ document.body.offsetTop;+ container.style.columnCount = "2";+ boo.style.display = "inline";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-after-parallel-flow.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-after-parallel-flow.htmlnew file mode 100644index 00000000000..4ed0914fc73--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-after-parallel-flow.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1383978">+<div style="columns:5; height:10px;">+ <div style="height:0;">+ <div style="contain:size; height:20px;"></div>+ <div style="contain:size; height:20px;"></div>+ <div></div>+ <div style="break-before:column;"></div>+ </div>+ <div>+ <div style="contain:size; height:20px;"></div>+ <div style="contain:size; height:20px;"></div>+ <div style="column-span:all;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-inline-after-very-tall-content-001.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-inline-after-very-tall-content-001.htmlnew file mode 100644index 00000000000..6f3cb5c553e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-inline-after-very-tall-content-001.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1327882">+<div style="columns:3; orphans:1; widows:2; line-height:20px;">+ <span>+ <div style="height:1234567890px;"></div>+ <br>+ <div style="display:inline-block; width:100px; height:6000000px;"></div>+ <div style="column-span:all;"></div>+ </span>+ <div id="tallthing" style="height:10000000px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-inline-after-very-tall-content-002.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-inline-after-very-tall-content-002.htmlnew file mode 100644index 00000000000..0a68ec82886--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-inline-after-very-tall-content-002.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1327882">+<div style="columns:15;">+ <span>+ <div style="height:214748364px;"></div>+ </span>+ <br>+ <div style="display:inline-block; width:100px; height:2147487px;"></div>+ <span>+ <div style="column-span:all;"></div>+ </span>+ <div style="columns:1; column-fill:auto; height:2147483px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-overflowed-clipped-container.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-overflowed-clipped-container.htmlnew file mode 100644index 00000000000..d38c7b6f08d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-overflowed-clipped-container.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1377576">+<div style="columns:2;">+ <div style="overflow:clip; height:15px;">+ <div style="height:20px;"></div>+ <div style="column-span:all;"></div>+ <div></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-overflowed-container-before-float.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-overflowed-container-before-float.htmlnew file mode 100644index 00000000000..c15d8aa0faf--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-overflowed-container-before-float.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1309859">+<div style="columns:2; column-fill:auto; height:400px;">+ <div style="height:10px;"></div>+ <div style="height:20px;">+ <div style="display:inline-block; width:10px; height:50px;"></div>+ <div>+ <div style="column-span:all;"></div>+ </div>+ </div>+ <div style="columns:2; height:100px; float:left;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-overflowed-container-before-inline-content.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-overflowed-container-before-inline-content.htmlnew file mode 100644index 00000000000..8fba171e25d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-overflowed-container-before-inline-content.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1314998">+<div style="columns:10; height:100px; column-fill:auto; line-height:20px; orphans:1; widows:1;">+ <div style="height:0; padding-bottom:100px;">+ <div style="height:350px;"></div>+ <div style="column-span:all; padding-bottom: 100px;"></div>+ </div>+ <div style="width:1px;">+ <br>+ <div style="display:inline-block; columns:2; height:100px; column-fill:auto;"></div>+ x+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-relpos-in-abspos-multicol-in-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-relpos-in-abspos-multicol-in-multicol.htmlnew file mode 100644index 00000000000..35ad2569ea7--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-in-relpos-in-abspos-multicol-in-multicol.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<title>Spanner in replos in abspos multicol, inside another container that's also multicol but then ceases to be one</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/436110579">+<div id="troublemaker" style="columns:7;">+ <div style="position:absolute; columns:2;">+ <div style="position:relative;">+ <div style="column-span:all;"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ troublemaker.style.columns = "auto";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-inside-inline-in-overflowed-container.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-inside-inline-in-overflowed-container.htmlnew file mode 100644index 00000000000..d53d295271c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/spanner-inside-inline-in-overflowed-container.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1393887">+<div style="columns:3; column-rule:solid; line-height:20px;">+ <div style="height:15px;">+ <br><br><br><br><br><br>+ <span>+ <div style="column-span:all; height:10px;"></div>+ </span>+ </div>+ <div style="height:100px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/specified-height-with-just-spanner-and-oof.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/specified-height-with-just-spanner-and-oof.htmlnew file mode 100644index 00000000000..3c4d51b0f43--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/specified-height-with-just-spanner-and-oof.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1296897">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="column-span:all;"></div>+ <div style="position:absolute;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/sticky-in-abs-in-sticky.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/sticky-in-abs-in-sticky.htmlnew file mode 100644index 00000000000..961b4fc2bb5--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/sticky-in-abs-in-sticky.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1224888">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="position:sticky; left:0;">+ <div style="position:absolute;">+ <div style="break-after:column;"></div>+ <div style="position:sticky; backface-visibility:hidden; left:0; width:100px; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-caption-change-descendant-display-type.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-caption-change-descendant-display-type.htmlnew file mode 100644index 00000000000..c44fcca5acd--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-caption-change-descendant-display-type.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1347713">+<div style="columns:2;">+ <div style="display:table-caption; columns:2;">+ <div style="columns:2;">+ <div style="position:relative;">+ <div id="foo" style="position:absolute;"></div>+ </div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ foo.style.display = "flex";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-caption-in-clipped-overflow.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-caption-in-clipped-overflow.htmlnew file mode 100644index 00000000000..116010565cf--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-caption-in-clipped-overflow.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1459623">+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="overflow:clip;">+ <div style="display:table-caption; max-height:190px;">+ <div style="height:230px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-caption-inline-block-remove-child.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-caption-inline-block-remove-child.htmlnew file mode 100644index 00000000000..721f1e88890--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-caption-inline-block-remove-child.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1347868">+<div style="columns:2; column-fill:auto; height:500px;">+ <table>+ <caption>+ <div style="display:inline-block;">+ <div style="writing-mode:vertical-lr;">+ <div id="elm" style="display:inline-block;"></div>+ <div style="display:inline-block; overflow:auto;"></div>+ </div>+ </div>+ </caption>+ </table>+</div>+<script>+ document.body.offsetTop;+ elm.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-cell-writing-mode-root.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-cell-writing-mode-root.htmlnew file mode 100644index 00000000000..394989e0097--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/table-cell-writing-mode-root.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1174687">+<div style="display:table-cell; writing-mode:vertical-lr; columns:2;">+ <span id="surprise" style="display:none;">x</span>+</div>+<script>+ document.body.offsetTop;+ surprise.style.display = "inline";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/text-box-trim-end-and-widows.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/text-box-trim-end-and-widows.htmlnew file mode 100644index 00000000000..8ff033342c1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/text-box-trim-end-and-widows.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="http://crbug.com/41494433">+<div style="columns:2; column-fill:auto; height:100px; text-box-trim:trim-end; line-height:50px; orphans:1; widows:2;">+ <br>+ <br>+ <br>+ <br>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/text-in-inline-interrupted-by-float.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/text-in-inline-interrupted-by-float.htmlnew file mode 100644index 00000000000..fbb26507a21--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/text-in-inline-interrupted-by-float.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1494201">+<div style="columns:3; column-fill:auto; height:100px; line-height:50px; orphans:1; widows:1;">+ <div style="width:1px;">+ <span style="padding-left:100px;">+ <div style="float:left; contain:size; width:100%; height:100px;"></div>+ firstcolumn thirdcolumn+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/trailing-parent-padding-between-spanners.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/trailing-parent-padding-between-spanners.htmlnew file mode 100644index 00000000000..ffd10021772--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/trailing-parent-padding-between-spanners.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1310489">+<div style="columns:2;">+ <div style="padding-bottom:12px;">+ <div style="column-span:all;"></div>+ </div>+ <div style="column-span:all;"></div>+ <div></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/triply-nested-partial-relayout.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/triply-nested-partial-relayout.htmlnew file mode 100644index 00000000000..f20eaf60150--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/triply-nested-partial-relayout.html@@ -0,0 +1,24 @@+<!DOCTYPE html>+<html class="reftest-wait">+<title>Triply nested multicol. Change something in the outermost that doesn't affect the three innermost.</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/464464623">+<div style="columns:2; column-fill:auto; height:100px;">+ <div id="touchme"></div>+ <div style="columns:2; column-fill:auto; height:100px;">+ <div style="columns:2; column-fill:auto; height:100px;">+ <div style="columns:2; column-fill:auto; height:100px;">+ x+ </div>+ </div>+ </div>+</div>+<script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ touchme.style.width = "100px";+ document.body.offsetTop;+ document.documentElement.classList.remove("reftest-wait");+ });+ });+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/vertical-rl-column-rules-wide-columns.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/vertical-rl-column-rules-wide-columns.htmlnew file mode 100644index 00000000000..22eb9d56b6d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/vertical-rl-column-rules-wide-columns.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308191">+<div style="columns:1; writing-mode:vertical-rl; column-rule:solid; column-fill:auto; block-size:100px;">+ <div style="inline-size:1234567890px; block-size:500px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/video-container-become-multicol.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/video-container-become-multicol.htmlnew file mode 100644index 00000000000..d29befdf3a0--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/video-container-become-multicol.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<title>Change a regular container to a multicol container, so that an inline VIDEO child ends up in the non-first column</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/392928804">+<div id="container" style="column-fill:auto; height:100px; orphans:1; widows:1;">+ <br>+ <video width="100" height="100" controls></video>+</div>+<script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ container.style.columns = "2";+ });+ });+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/zero-column-height.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/zero-column-height.htmlnew file mode 100644index 00000000000..ba06b8ade4c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/crashtests/zero-column-height.html@@ -0,0 +1,24 @@+<!DOCTYPE html>+<title>zero column-height</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-2/#ch">+<link rel="help" href="https://drafts.csswg.org/css-multicol-2/#cwr">++<!-- zero row-gap -->+<div style="columns:2; column-fill:auto; column-height:0px; row-gap:0px; column-wrap:wrap;">+ <div style="height:10px;"></div>+ <div style="height:10px;"></div>+</div>++<!-- non-zero row-gap -->+<div style="columns:2; column-fill:auto; column-height:0px; row-gap:100px; column-wrap:wrap;">+ <div style="height:10px;"></div>+ <div style="height:10px;"></div>+</div>++<!-- zero row-gap with spanner -->+<div style="columns:2; column-fill:auto; column-height:0px; row-gap:0px; column-wrap:wrap;">+ <div style="height:10px;"></div>+ <div style="column-span:all; height:10px;"></div>+ <div style="height:10px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/dynamic-become-multicol-add-oof-inside-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/dynamic-become-multicol-add-oof-inside-inline-crash.htmlnew file mode 100644index 00000000000..226761bb5c1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/dynamic-become-multicol-add-oof-inside-inline-crash.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1282196">+<div id="container">+ <div id="dynmc">+ <span style="position:relative;">+ <div id="oof" style="display:none; position:absolute;"></div>+ </span>+ </div>+ <div id="newowner"></div>+</div>+<script>+ document.body.offsetTop;+ dynmc.style.columns = "1";+ oof.style.display = "block";+ document.body.offsetTop;+ newowner.appendChild(oof);+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/extremely-tall-multicol-with-extremely-tall-child-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/extremely-tall-multicol-with-extremely-tall-child-crash.htmlnew file mode 100644index 00000000000..27b9f6e0206--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/extremely-tall-multicol-with-extremely-tall-child-crash.html@@ -0,0 +1,27 @@+<!DOCTYPE html>+<title>CSS Multi-column Layout Test: extremely tall multicolumn container with extremely tall inline-block inside</title>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model" title="CSS Multi-column Layout Module Level 1">+<meta name="assert" content="This tests that we get no crash if we put an extremely tall inline-block inside an extremely tall multicol container. Engines typically have some maximum limit for how large values they can represent. If the value is large enough to become 'infinity', the engine should still not crash">+<!-- Explanation for the CSS values specified below: This test was written for+ the Chromium Blink engine, which uses a fixed-point 32 bit integer. In this+ example, the value will be too large, so it will be clamped to the maximum+ value (about 2^25 px). However, there's a a further complication in that+ CSS length values in Blink are transported via a 32bit float, so precision+ will be a few pixels off. So even if 1234567890px is way more than Blink+ can handle, it will be truncated to a bit less than the maximum value+ (about 2^25). We want the multicol container to be as tall as it can+ possibly get, so we put it inside a 1234567890px tall container, and+ specify the height of the child multicol container to be 200% to ensure+ this. We also use a percentage to specify the height of the child inside+ the multicol container, for the same reason. -->+<div style="height:1234567890px;">+ <div style="columns:2; column-fill:auto; height:200%;">+ <div style="display:inline-block; height:100%;"></div><br>+ hest+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+test(() => { }, "No crash or assertion failure.");+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/file-control-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/file-control-crash.htmlnew file mode 100644index 00000000000..6d7ce3427ec--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/file-control-crash.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<style>+* {+ aspect-ratio: 1206265768.1737075 / 726190483.5455273 ! important;+ float: inline-start;+ padding-block-end: 4348105909.35903Q;+ column-count: 1027970145;+ width: min-content;+ border-inline-end: groove gainsboro 319302447.513733ch;+}+</style>+<script>+document.addEventListener("DOMContentLoaded", () => {+ const input = document.createElementNS("http://www.w3.org/1999/xhtml", "input");+ document.documentElement.appendChild(input);+ input.type = "file";+})+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/flex-grid-item-insert-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/flex-grid-item-insert-001-crash.htmlnew file mode 100644index 00000000000..bd27f4f608c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/flex-grid-item-insert-001-crash.html@@ -0,0 +1,19 @@+<!doctype html>+<style>+* {+ columns: 0;+}+q {+ grid-auto-rows: 7px;+ display: grid;+}+</style>+<script>+document.addEventListener("DOMContentLoaded", () => {+ a.appendChild(document.createElement("li", "foo"))+})+</script>+<body>+<q id="a">+C*e:AAAAAAAAA NZ+</q>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/flex-grid-item-insert-002-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/flex-grid-item-insert-002-crash.htmlnew file mode 100644index 00000000000..e81cae1d327--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/flex-grid-item-insert-002-crash.html@@ -0,0 +1,27 @@+<!doctype html>+<style>+* {+ max-height: 0vmax;+ max-width: 1vmax;+}+</style>+<script>+document.addEventListener("DOMContentLoaded", () => {+ a.appendChild(c)+ b.style.setProperty("display", "flex")+ document.execCommand("outdent", false)+ f.appendChild(d)+})+</script>+<link id="a">m</link>+<details style="column-count: 1">+<summary id="b">+<table id="c">]e]"(8u7+V))|QB</table>+<line />+<ellipse>+<menu>+</menu>+</menu>+<math dir="rtl">+<mspace id="d"/>+<mspace id="f"/>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/img-alt-as-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/img-alt-as-multicol-crash.htmlnew file mode 100644index 00000000000..95b8de96e01--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/img-alt-as-multicol-crash.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278531">+<img alt="BOOM" style="columns:2;">diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/multicol-loads-indefinitely-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/multicol-loads-indefinitely-001-crash.htmlnew file mode 100644index 00000000000..c00891c14c1--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/multicol-loads-indefinitely-001-crash.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1927270">++<style>+* {+ max-height: 10vh;+ border-top-style: dotted;+ word-break: break-all;+ columns: 1 0px;+}+.a {+ float: right;+}+</style>++<ol>+<li>+<div class="a">Cj"hWJ_/[8s</dt>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-balanced-monolithic-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-balanced-monolithic-multicol-crash.htmlnew file mode 100644index 00000000000..082bf70691c--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-balanced-monolithic-multicol-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1281049">+<div style="columns:2;">+ <div style="columns:3; height:300px; contain:size;">+ <div style="height:400px;"></div>+ <div style="height:307px; contain:size;"></div>+ <div></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-balanced-very-tall-content-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-balanced-very-tall-content-crash.htmlnew file mode 100644index 00000000000..00b1bf2c42f--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-balanced-very-tall-content-crash.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1289800">+<div style="columns:1; column-fill:auto; height:12000000px;">+ <span style="vertical-align:1234567890px;">+ <div style="columns:1;">+ <div style="height:100px;"></div>+ <div style="height:1234567890px;"></div>+ </div>+ </span>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-floated-shape-outside-multicol-with-monolithic-child-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-floated-shape-outside-multicol-with-monolithic-child-crash.htmlnew file mode 100644index 00000000000..d6180352658--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-floated-shape-outside-multicol-with-monolithic-child-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278880">+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="height:50px;"></div>+ <div style="shape-outside:margin-box circle(10px); float:right; columns:2; column-fill:auto; width:100%;">+ <div style="contain:size; height:80px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-with-overflowing-padding-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-with-overflowing-padding-crash.htmlnew file mode 100644index 00000000000..de29a713740--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/nested-with-overflowing-padding-crash.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278310">+<div style="columns:2; column-fill:auto; height:8px;">+ <div style="columns:2; column-fill:auto; height:0; padding-top:10px;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/overflow-scroll-in-multicol-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/overflow-scroll-in-multicol-crash.htmlnew file mode 100644index 00000000000..ed1f5b6da9b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/overflow-scroll-in-multicol-crash.html@@ -0,0 +1,24 @@+<!DOCTYPE html>+<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1240384">+<style>+ #multicol {+ column-count: 2;+ column-fill: auto;+ column-gap: 5px;+ width: 200px;+ height: 100px;+ }+ #container {+ position: relative;+ box-sizing: border-box;+ width: 100px;+ overflow: scroll;+ }+</style>+<p>PASS if no crash.</p>+<div id="multicol">+ <div id="container">+ <div style="width: 100px; height: 200px;"></div>+ <div style="height: 100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-block-beside-spanner-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-block-beside-spanner-in-inline-crash.htmlnew file mode 100644index 00000000000..7d9246cf538--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-block-beside-spanner-in-inline-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1292004">+<div style="columns:2;">+ <span></span>+ <div id="traitor"></div>+ <span>+ <div style="column-span:all;"></div>+ </span><div style="column-span:all;"></div>+</div>+<script>+ document.body.offsetTop;+ traitor.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-block-sibling-of-inline-with-block-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-block-sibling-of-inline-with-block-crash.htmlnew file mode 100644index 00000000000..e752abc9f51--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-block-sibling-of-inline-with-block-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278532">+<div style="columns:2;">+ <span>+ <div></div>+ </span>+ <div id="elm"></div>+ x+</div>+<script>+ document.body.offsetTop;+ elm.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-inline-with-block-beside-spanners-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-inline-with-block-beside-spanners-crash.htmlnew file mode 100644index 00000000000..d48ff19b99a--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-inline-with-block-beside-spanners-crash.html@@ -0,0 +1,23 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1102137">+<div style="columns:3;">+ <span id="inlineWithBlock"><div></div></span><div id="spanner1" style="column-span:all;"></div>+ <div id="spanner2" style="display:none; column-span:all;"></div>+ <div id="block1" style="display:none;"></div>+ <div id="spanner3" style="display:none; column-span:all;"></div>+ <div id="block2" style="display:none;"></div>+</div>+<script>+ document.body.offsetTop;+ inlineWithBlock.style.display = "none";+ document.body.offsetTop;+ spanner1.style.display = "none";+ document.body.offsetTop;+ spanner2.style.display = "block";+ document.body.offsetTop;+ block1.style.display = "block";+ block2.style.display = "block";+ document.body.offsetTop;+ spanner3.style.display = "block";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-spanner-beside-spanner-in-inline-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-spanner-beside-spanner-in-inline-crash.htmlnew file mode 100644index 00000000000..969d54a9b6d--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/remove-spanner-beside-spanner-in-inline-crash.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1292004">+<div style="columns:2;">+ <span></span>+ <div id="removeme" style="column-span:all;"></div>+ <span>+ <div style="column-span:all;"></div>+ </span>+ <div style="column-span:all;"></div>+</div>+<script>+ document.body.offsetTop;+ removeme.style.display = "none";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/spanning-legend-000-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/spanning-legend-000-crash.htmlnew file mode 100644index 00000000000..407697e8433--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/spanning-legend-000-crash.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1123710">+<div style="columns:2;">+ <legend style="column-span:all; columns:2;">+ <div></div>+ </legend>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/spanning-legend-001-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/spanning-legend-001-crash.htmlnew file mode 100644index 00000000000..6126ec61e24--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/spanning-legend-001-crash.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1123792">+<div style="columns:2;">+ <legend id="legend" style="column-span:all;"></legend>+</div>+<script>+ legend.getBoundingClientRect();+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/subpixel-scroll-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/subpixel-scroll-crash.htmlnew file mode 100644index 00000000000..254dfaf8735--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/subpixel-scroll-crash.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<html class="test-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1276319">+ <div style="columns:2; column-fill:auto; height:4000px;">+ <div style="margin-top:1000px; width:100px; height:100px; background:url(bilen.jpg) fixed;"></div>+ <!-- Attempt to get legacy layout, in order to trigger the bug: -->+ <div style="display:flex;"></div>+ <div style="display:grid;"></div>+ <div style="display:table;"></div>+ </div>+ <script>+ var offset = 1000;+ function scrollEverSoSlightly() {+ if (offset > 1003) {+ document.documentElement.classList.remove("test-wait");+ return;+ }+ window.scrollTo(0, offset);+ offset += 1/19;+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ scrollEverSoSlightly();+ });+ });+ }+ scrollEverSoSlightly();+ </script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/table/balance-breakafter-before-table-section-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/table/balance-breakafter-before-table-section-crash.htmlnew file mode 100644index 00000000000..119b44607eb--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/table/balance-breakafter-before-table-section-crash.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=605902">+<div style="columns:3;">+ <div style="margin:8px; height:20px; break-after:column;"></div>+ <div style="display:table-row-group;"></div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/text-child-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/text-child-crash.htmlnew file mode 100644index 00000000000..16e43582345--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/text-child-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://crbug.com/1412020">+<div id="outer">+ x+ <div id="inner" style="display:none; columns:1; padding-left:1%;"></div>+</div>+<script>+ document.body.offsetTop;+ outer.style.columns = "1";+ inner.style.display = "block";+</script>+</html>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/textarea-text-overflow-ellipsis-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/textarea-text-overflow-ellipsis-crash.htmlnew file mode 100644index 00000000000..90cf1460f7b--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/textarea-text-overflow-ellipsis-crash.html@@ -0,0 +1,9 @@+<!doctype html>+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2056633">+<style>+textarea {+ columns: 50;+ text-overflow: ellipsis;+}+</style>+<textarea></textarea>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/toggle-spanner-float-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/toggle-spanner-float-crash.htmlnew file mode 100644index 00000000000..d5948b2dd67--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/toggle-spanner-float-crash.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1219401">+<div style="columns:2;">+ <span>+ <div id="div0" style="column-span:all; float:right;"></div>+ <div id="div1" style="column-span:all;"></div>+ </span>+</div>+<script>+ document.body.offsetTop;+ div0.style.float = "none";+ div1.style.float = "right";+</script>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/triply-nested-with-fixedpos-in-abspos-crash.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/triply-nested-with-fixedpos-in-abspos-crash.htmlnew file mode 100644index 00000000000..8bed96f8c02--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/triply-nested-with-fixedpos-in-abspos-crash.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278921">+<div style="columns:2;">+ <div style="columns:2; position:absolute;">+ <div style="columns:2; position:absolute;">+ <div style="columns:2; position:fixed;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Crash/wpt-import/css/css-multicol/with-custom-layout-on-same-element-crash.https.html b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/with-custom-layout-on-same-element-crash.https.htmlnew file mode 100644index 00000000000..7bffb2aa21e--- /dev/null+++ b/Tests/LibWeb/Crash/wpt-import/css/css-multicol/with-custom-layout-on-same-element-crash.https.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=997403">+<div id="elm" style="display:layout(parent); columns:2; width:10em; height:60px; column-fill:auto; line-height:20px;">+ x+ <span>+ <div style="display:inline-block;"></div>+ </span>+ <div style="height:1px;"></div>+ <br>+</div>+<script>+</script>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ document.body.offsetTop;+ elm.style.display = "none";+ document.body.offsetTop;+ test(()=> {}, "No crash");+</script>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/abspos-in-opacity-000-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/abspos-in-opacity-000-ref.htmlnew file mode 100644index 00000000000..b7013a90ab3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/abspos-in-opacity-000-ref.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>There should be a purple square below.</p>+<div style="width:100px; height:100px; background:blue;">+ <div style="opacity:0.5;">+ <div style="width:100px; height:100px; background:red;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/area-002-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/area-002-ref.htmlnew file mode 100644index 00000000000..9f1ab0130a6--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/area-002-ref.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<title>Reference for area elements in multicol</title>+<style>+ .multicol {+ columns: 2;+ column-fill: auto;+ column-gap: 0;+ width: 200px;+ height: 100px;+ margin-bottom: 20px;+ }+ .block {+ height: 50px;+ background: green;+ }+ .inline {+ display: inline;+ padding: 10px;+ border: 10px solid blue;+ background: blue;+ }+</style>++<div class="multicol">+ <div class="block"></div>+ <div class="block"></div>+ <div class="block"></div>+ <div class="block"></div>+</div>++<div class="multicol">+ <div class="block"></div>+ <span class="inline"></span>+ <div class="block"></div>+ <div class="block"></div>+ <div class="block"></div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/block-min-height-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/block-min-height-001-ref.htmlnew file mode 100644index 00000000000..492a9a19ae2--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/block-min-height-001-ref.html@@ -0,0 +1,50 @@+<!DOCTYPE html>+<html>+<head>+ <title>Reference: min-height block fragmentation</title>+ <link rel="author" title="Mats Palmgren" href="mailto:[email protected]">+ <style>+html,body {+ color:black; background-color:white; font:24px/1 monospace; padding:0; margin:0;+ width: 300px;+}+.columns {+ columns: 3;+ background: grey;+ margin-bottom: 1em;+}+.columns > div { height:200px; background: yellow; }+.columns > div > div { height:160px; width:50px; border:solid; }+ </style>+</head>+<body>+<div class="columns">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:100px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:70px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:50px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/block-min-height-001b-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/block-min-height-001b-ref.htmlnew file mode 100644index 00000000000..46e6927a293--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/block-min-height-001b-ref.html@@ -0,0 +1,56 @@+<!DOCTYPE html>+<html>+<head>+ <title>Reference: min-height block fragmentation</title>+ <link rel="author" title="Mats Palmgren" href="mailto:[email protected]">+ <style>+html,body {+ color:black; background-color:white; font:24px/1 monospace; padding:0; margin:0;+ width: 300px;+}+.columns {+ columns: 3;+ background: grey;+ margin-bottom: 1em;+}+.columns > div {+ height: 172px;+ background: yellow;+ border: solid;+ border-width:10px 0 6px 0;+ padding: 5px 0 3px 0;+}+.columns > div > div { height:150px; width:50px; border:solid; }+ </style>+</head>+<body>+<div class="columns">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:100px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:70px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:50px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/box-decoration-break-clone-009-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/box-decoration-break-clone-009-ref.htmlnew file mode 100644index 00000000000..23be78f87fc--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/box-decoration-break-clone-009-ref.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>There should be two squares below, with a hotpink outline and a cyan "shadow".</p>+<div style="margin:20px; display:flex; width:230px; height:100px; justify-content:space-between;">+ <div style="width:100px; height:100px; box-shadow:0 0 0 10px cyan; outline: 5px solid hotpink;"></div>+ <div style="width:100px; height:100px; box-shadow:0 0 0 10px cyan; outline: 5px solid hotpink;"></div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/box-shadow-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/box-shadow-001-ref.htmlnew file mode 100644index 00000000000..f87e16adedc--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/box-shadow-001-ref.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>There should be 6 identical cyan rectangles below, all with a box shadow.</p>+<style>+ #mc > div {+ float: left;+ margin-bottom: 50px;+ margin-right: 50px;+ width: 100px;+ height: 50px;+ box-shadow: 20px 20px 20px;+ background: cyan;+ }+</style>+<div id="mc" style="width:400px; height:150px; background:yellow;">+ <div></div>+ <div></div>+ <div style="margin-right:0;"></div>+ <div></div>+ <div></div>+ <div style="margin-right:0;"></div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/break-inside-avoid-min-block-size-1-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/break-inside-avoid-min-block-size-1-ref.htmlnew file mode 100644index 00000000000..56789f62cbb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/break-inside-avoid-min-block-size-1-ref.html@@ -0,0 +1,74 @@+<!DOCTYPE html>+<html>+<head>+ <title>CSS Test: break-inside:avoid min-block-size block</title>+ <link rel="author" title="Mats Palmgren" href="mailto:[email protected]">+ <style>+html,body {+ color:black; background-color:white; font:10px/1 monospace; padding:0; margin:0;+}+.columns {+ columns: 3;+ background: grey;+ margin-block-end: 1px;+ inline-size: 500px;+}+.fill {+ column-fill: auto;+}+.short {+ block-size: 30px;+}+.tall {+ block-size: 60px;+}+.columns > div {+ block-size: 40px;+ background: blue;+}+.columns > div:nth-child(2n) { background: lightblue; }+ </style>+</head>+<body>+<div class="columns fill" style="block-size:40px">+ <div></div>+ <div></div>+</div>+<div class="columns fill" style="block-size:40px">+ <div> <br> </div>+ <div> <br> </div>+</div>+<div class="columns short">+ <div style="margin-block-end:20px"></div>+ <div></div>+</div>+<div class="columns short">+ <div style="margin-block-end:20px"> <br> </div>+ <div> <br> </div>+</div>+<div class="columns tall">+ <div style="margin-block-end:40px"></div>+ <div></div>+</div>+<div class="columns tall">+ <div style="margin-block-end:40px"> <br> </div>+ <div> <br> </div>+</div>+<div class="columns fill short">+ <div style="margin-block-end:20px"></div>+ <div></div>+</div>+<div class="columns fill short">+ <div style="margin-block-end:20px"> <br> </div>+ <div> <br> </div>+</div>+<div class="columns fill tall">+ <div style="margin-block-end:40px"></div>+ <div></div>+</div>+<div class="columns fill tall">+ <div style="margin-block-end:40px"> <br> </div>+ <div> <br> </div>+</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/change-inline-color-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/change-inline-color-ref.htmlnew file mode 100644index 00000000000..7f99f57a679--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/change-inline-color-ref.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/">+<style>+ .fakecolumn {+ width: 1em;+ text-align: center;+ }+</style>+<p>The word PASS should be seen below.</p>+<div style="display:flex; color:green;">+ <div class="fakecolumn">P</div>+ <div class="fakecolumn">A</div>+ <div class="fakecolumn">S</div>+ <div class="fakecolumn">S</div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/contain-strict-with-opacity-and-oof-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/contain-strict-with-opacity-and-oof-ref.htmlnew file mode 100644index 00000000000..a9c82c4f3e2--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/contain-strict-with-opacity-and-oof-ref.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>There should be a (pale) green square below, and no (pale) red.</p>+<div style="will-change:transform; contain:strict; width:100px; height:100px;">+ <div style="opacity:0.2; width:100px; height:100px;">+ <div style="width:100px; height:100px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-041-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-041-ref.htmlnew file mode 100644index 00000000000..4924a792b73--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-041-ref.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-direction: column; flex-wrap: wrap; height: 200px;">+ <div style="height: 50px; width: 25px; background: yellow;"></div>+ <div style="height: 50px; width: 25px; background: purple;"></div>+ <div style="height: 50px; width: 25px; background: blue;"></div>+ <div style="height: 50px; width: 25px; background: orange;"></div>++ <div style="height: 50px; width: 25px; background: mediumaquamarine;"></div>+ <div style="height: 50px; width: 25px; background: magenta;"></div>+ <div style="height: 50px; width: 25px; background: maroon;"></div>+ <div style="height: 50px; width: 25px; background: pink;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-042-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-042-ref.htmlnew file mode 100644index 00000000000..ad7d3c78ecb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-042-ref.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-direction: column; flex-wrap: wrap; height: 200px;">+ <div style="height: 50px; width: 25px; background: pink;"></div>+ <div style="height: 50px; width: 25px; background: maroon;"></div>+ <div style="height: 50px; width: 25px; background: magenta;"></div>+ <div style="height: 50px; width: 25px; background: mediumaquamarine;"></div>++ <div style="height: 50px; width: 25px; background: orange;"></div>+ <div style="height: 50px; width: 25px; background: blue;"></div>+ <div style="height: 50px; width: 25px; background: purple;"></div>+ <div style="height: 50px; width: 25px; background: yellow;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-043-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-043-ref.htmlnew file mode 100644index 00000000000..f6f933a9c54--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-043-ref.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-direction: column; flex-wrap: wrap; height: 200px;">+ <div style="height: 50px; width: 25px; background: mediumaquamarine;"></div>+ <div style="height: 50px; width: 25px; background: magenta;"></div>+ <div style="height: 50px; width: 25px; background: maroon;"></div>+ <div style="height: 50px; width: 25px; background: pink;"></div>++ <div style="height: 50px; width: 25px; background: yellow;"></div>+ <div style="height: 50px; width: 25px; background: purple;"></div>+ <div style="height: 50px; width: 25px; background: blue;"></div>+ <div style="height: 50px; width: 25px; background: orange;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-044-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-044-ref.htmlnew file mode 100644index 00000000000..20710e8c292--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-044-ref.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="height: 50px; width: 50px; background: green;"></div>+ <div style="display: flex; flex-direction: column; flex-wrap: wrap; height: 200px;">+ <div style="height: 50px; width: 25px; background: mediumaquamarine; break-before: column;"></div>+ <div style="height: 50px; width: 25px; background: magenta;"></div>+ <div style="height: 50px; width: 25px; background: maroon; break-before: avoid;"></div>+ <div style="height: 50px; width: 25px; background: pink;"></div>++ <div style="height: 50px; width: 25px; background: yellow;"></div>+ <div style="height: 50px; width: 25px; background: purple;"></div>+ <div style="height: 50px; width: 25px; background: blue; break-before: avoid;"></div>+ <div style="height: 50px; width: 25px; background: orange;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-047-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-047-ref.htmlnew file mode 100644index 00000000000..d669603858d--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-047-ref.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-wrap: wrap; height: 200px;">+ <div style="height: 100px; width: 25px; background: blue;"></div>+ <div style="height: 100px; width: 25px; background: orange;"></div>+ <div style="height: 100px; width: 25px; background: yellow;"></div>+ <div style="height: 100px; width: 25px; background: purple;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-048-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-048-ref.htmlnew file mode 100644index 00000000000..1ffc07387d4--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-048-ref.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-wrap: wrap; height: 200px;">+ <div style="height: 100px; width: 25px; background: purple;"></div>+ <div style="height: 100px; width: 25px; background: yellow;"></div>+ <div style="height: 100px; width: 25px; background: orange;"></div>+ <div style="height: 100px; width: 25px; background: blue;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-049-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-049-ref.htmlnew file mode 100644index 00000000000..ffbedaada1e--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-049-ref.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-wrap: wrap; height: 200px;">+ <div style="height: 100px; width: 25px; background: yellow;"></div>+ <div style="height: 100px; width: 25px; background: purple;"></div>+ <div style="height: 100px; width: 25px; background: blue;"></div>+ <div style="height: 100px; width: 25px; background: orange;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-050-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-050-ref.htmlnew file mode 100644index 00000000000..d0e574022b5--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-050-ref.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="height: 50px; width: 50px; background: green;"></div>+ <div style="display: flex; flex-wrap: wrap; height: 200px;">+ <div style="height: 50px; width: 25px; background: yellow;"></div>+ <div style="height: 50px; width: 25px; background: purple; break-before: column;"></div>++ <div style="height: 50px; width: 25px; background: maroon;"></div>+ <div style="height: 50px; width: 25px; background: pink;"></div>++ <div style="height: 100px; width: 25px; background: blue; break-before: avoid;"></div>+ <div style="height: 100px; width: 25px; background: orange;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-040-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-040-ref.htmlnew file mode 100644index 00000000000..3d20cb44e49--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-040-ref.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-flow: column; height: 200px;">+ <div style="height: 50px; width: 50px; background: yellow;"></div>+ <div style="height: 50px; width: 50px; background: purple;"></div>+ <div style="height: 50px; width: 50px; background: blue;"></div>+ <div style="height: 50px; width: 50px; background: orange;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-027-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-027-ref.htmlnew file mode 100644index 00000000000..e1079de13fb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-027-ref.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; height: 200px;">+ <div style="height: 200px; width: 10px; background: pink;"></div>+ <div style="height: 200px; width: 10px; background: yellow;"></div>+ <div style="height: 200px; width: 10px; background: purple;"></div>+ <div style="height: 200px; width: 10px; background: blue;"></div>+ <div style="height: 200px; width: 10px; background: orange;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/float-009-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/float-009-ref.htmlnew file mode 100644index 00000000000..567272bf608--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/float-009-ref.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<meta charset="utf-8">+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="stylesheet" href="../../fonts/ahem.css">++<style>+.multicol {+ column-count: 2;+ column-gap: 0;+ width: 200px;+ font: 50px/1 Ahem;+}+</style>++<div class="multicol">+ <div>AX</div>+ <div>BX</div>+ <div>CX</div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/out-of-flow-in-multicolumn-014-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/out-of-flow-in-multicolumn-014-ref.htmlnew file mode 100644index 00000000000..6388a186444--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/out-of-flow-in-multicolumn-014-ref.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<style>+div {+ height: 300px;+ width: 300px;+ background-color: green;+}+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/out-of-flow-in-multicolumn-105-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/out-of-flow-in-multicolumn-105-ref.htmlnew file mode 100644index 00000000000..1230f8b2506--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/out-of-flow-in-multicolumn-105-ref.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <p>Test passes if there is a filled green square and <strong>no red</strong>,+ and a vertical scrollbar (unless overlay scrollbars are enabled).</p>+ <div id="scrollable" style="overflow:auto; width:200px; height:200px;">+ <div style="height:10000px;">+ <div style="height:9800px;"></div>+ <div style="width:100px; height:100px; background:green;"></div>+ </div>+ </div>+ <script>+ scrollable.scrollTop = 100000;+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-008-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-008-ref.htmlnew file mode 100644index 00000000000..431d37a4b3c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-008-ref.html@@ -0,0 +1,37 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ height: 104px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;++ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div>1<br>2<br>3<br>4<br>5<br>6<br><br><br>7<br>8<br>9</div>++ <div>1<br>2<br>3<br>4<br>5<br>6<br><br><br>7<br>8<br>9</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-009-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-009-ref.htmlnew file mode 100644index 00000000000..77e8bd7b46a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-009-ref.html@@ -0,0 +1,37 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ height: 104px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;++ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br><br>8<br>9</div>++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br><br>8<br>9</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-010-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-010-ref.htmlnew file mode 100644index 00000000000..431d37a4b3c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-010-ref.html@@ -0,0 +1,37 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ height: 104px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;++ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div>1<br>2<br>3<br>4<br>5<br>6<br><br><br>7<br>8<br>9</div>++ <div>1<br>2<br>3<br>4<br>5<br>6<br><br><br>7<br>8<br>9</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-011-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-011-ref.htmlnew file mode 100644index 00000000000..8977e4729c7--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-011-ref.html@@ -0,0 +1,37 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ height: 156px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;++ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the numbers inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br><br><br><br><br>9<br>10<br>11<br>12<br>13<br>14</div>++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br><br><br><br><br>9<br>10<br>11<br>12<br>13<br>14</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-012-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-012-ref.htmlnew file mode 100644index 00000000000..a03a7993d74--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-012-ref.html@@ -0,0 +1,37 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ height: 208px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;++ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the numbers inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br><br><br><br><br>13<br>14<br>15<br>16<br>17<br>18<br>19</div>++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br><br><br><br><br>13<br>14<br>15<br>16<br>17<br>18<br>19</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-013-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-013-ref.htmlnew file mode 100644index 00000000000..7872ac730bf--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-013-ref.html@@ -0,0 +1,37 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ height: 234px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;++ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the numbers inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br><br><br><br>16<br>17<br>18<br>19</div>++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br><br><br><br>16<br>17<br>18<br>19</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-014-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-014-ref.htmlnew file mode 100644index 00000000000..795350a0285--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-014-ref.html@@ -0,0 +1,37 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ height: 234px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;++ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br><br><br>8<br>9<br>0</div>++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br><br><br>8<br>9<br>0</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-016-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-016-ref.htmlnew file mode 100644index 00000000000..77e8bd7b46a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-016-ref.html@@ -0,0 +1,37 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ height: 104px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;++ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br><br>8<br>9</div>++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br><br>8<br>9</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-017-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-017-ref.htmlnew file mode 100644index 00000000000..0a65a50c29f--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/reference/widows-orphans-017-ref.html@@ -0,0 +1,26 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ height: 182px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7</div>++ <div>1<br>2<br>3<br>4<br>5<br>6<br>7</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/relpos-inline-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/relpos-inline-ref.htmlnew file mode 100644index 00000000000..8c19f1cf4c6--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/relpos-inline-ref.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<style>+ span {+ position: relative;+ left: -100px;+ top: 100px;+ border: 1px solid;+ background:hotpink;+ }+ .fakecol {+ float: left;+ width: 150px;+ height: 100%;+ }+</style>+<div style="line-height:30px; height:60px;">+ <div class="fakecol"></div>+ <div class="fakecol">+ <br>+ <span style="border-right:none;">+ line1<br>+ </span>+ </div>+ <div class="fakecol">+ <span style="border-left:none; border-right:none;">+ line2<br>+ line3<br>+ </span>+ </div>+ <div class="fakecol">+ <span style="border-left:none;">+ line4<br>+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/repeated-section/abspos-uncontained-text-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/repeated-section/abspos-uncontained-text-ref.htmlnew file mode 100644index 00000000000..a7c2eeb5b8e--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/repeated-section/abspos-uncontained-text-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>The word PASS should be seen <em>once</em> below.</p>+PASSdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/table-caption-and-cells-fixed-width-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/table-caption-and-cells-fixed-width-ref.htmlnew file mode 100644index 00000000000..c41a4a515a8--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/table-caption-and-cells-fixed-width-ref.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<p>Check that a table caption at a column boundary is properly pushed to the next column.</p>+<p>The word "PASS" should be seen below, fully visible and unbroken.</p>+<div style="margin-left:15em; width:10em; line-height:2em; text-align:center;">+ PASS<br>+ <div style="height:2em; background:black;"></div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/table-caption-and-cells-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/table-caption-and-cells-ref.htmlnew file mode 100644index 00000000000..1ca93e64f7f--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/table-caption-and-cells-ref.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<p>Check that a table caption at a column boundary is properly pushed to the next column.</p>+<p>The word "PASS" should be seen below, fully visible and unbroken.</p>+<div style="margin-left:50%; width:10em; line-height:2em; text-align:center;">+ PASS<br>+ <div style="height:2em; background:black;"></div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/table-caption-with-block-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/table-caption-with-block-ref.htmlnew file mode 100644index 00000000000..ca210636a94--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-break/table/table-caption-with-block-ref.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<p>Check that a table caption with a block at a column boundary is properly pushed to the next column.</p>+<p>The word "PASS" should be seen below, fully visible and unbroken.</p>+<div style="margin-left:20em; line-height:2em;">+ PASS+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/auto-fill-auto-size-001-print-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/auto-fill-auto-size-001-print-ref.htmlnew file mode 100644index 00000000000..fcd9b7deff7--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/auto-fill-auto-size-001-print-ref.html@@ -0,0 +1,3 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+On the first pagediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-000-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-000-ref.htmlnew file mode 100644index 00000000000..aba812bb9d8--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-000-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+PASSdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-001-ref.htmlnew file mode 100644index 00000000000..181f7bafec3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-001-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>There should be a green square below.</p>+<div style="width:100px; height:100px; background:green;"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-002-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-002-ref.htmlnew file mode 100644index 00000000000..dc6562cd70e--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-002-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>There should be a green square below.</p>+<div style="width:100px; height:100px; background:green"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-003-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-003-ref.htmlnew file mode 100644index 00000000000..e031f1aeae2--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-003-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+ PASSdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-004-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-004-ref.htmlnew file mode 100644index 00000000000..c1d72cb0158--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-004-ref.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+<div style="padding-top:2em;">+ PASS+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-005-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-005-ref.htmlnew file mode 100644index 00000000000..d5a382740f5--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-005-ref.html@@ -0,0 +1,3 @@+<!DOCTYPE html>+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+PASSdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-006-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-006-ref.htmlnew file mode 100644index 00000000000..e229db9ceda--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-006-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+<div style="padding-top:33px;">PASS</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-007-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-007-ref.htmlnew file mode 100644index 00000000000..dc6562cd70e--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-007-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>There should be a green square below.</p>+<div style="width:100px; height:100px; background:green"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-008-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-008-ref.htmlnew file mode 100644index 00000000000..181f7bafec3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/baseline-008-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>There should be a green square below.</p>+<div style="width:100px; height:100px; background:green;"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/column-balancing-paged-001-print-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/column-balancing-paged-001-print-ref.htmlnew file mode 100644index 00000000000..f832a0cf70a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/column-balancing-paged-001-print-ref.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test Reference: Test fragmentation for a nested multi-column container with column-span in paginated context</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org/">++ <style>+ :root {+ print-color-adjust: exact;+ }+ .inner {+ column-count: 2;+ column-rule: 3px solid green;+ background-color: lightgreen;+ }+ .block1 {+ background-color: yellow;+ height: 3in;+ }+ .spanner {+ height: 2in;+ background-color: lightblue;+ }+ .block2 {+ background-color: pink;+ height: 3in;+ }+ </style>++ <article class="inner">+ <div class="block1">block1</div>+ </article>+ <div class="spanner">spanner</div>+ <article class="inner">+ <div class="block2">block2</div>+ </article>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/column-balancing-with-floats-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/column-balancing-with-floats-001-ref.htmlnew file mode 100644index 00000000000..d98879277b7--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/column-balancing-with-floats-001-ref.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<meta charset="UTF-8">+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="stylesheet" href="../../fonts/ahem.css">++<style>+.multicol {+ width: 600px;+ column-count: 2;+ column-gap: 0;+ font: 25px/1 Ahem;+}+.nav {+ padding: 25px;+}+.float {+ float: right;+ width: 50px;+ height: 25px;+ background: green;+}+</style>++<div class="multicol">+ <div class="nav">First</div>+ <div class="nav">+ <div class="float"></div>+ Second+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/column-rule-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/column-rule-001-ref.htmlnew file mode 100644index 00000000000..a0b3fea8ff3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/column-rule-001-ref.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<style>+ body {+ margin: 0;+ }+</style>+<p>There should be <b>two</b> black squares below.</p>+<div style="float:right; width:100px; height:100px; margin-right:95px; background:black;"></div>+<div style="width:500px; margin:auto;">+ <div style="width:100px; height:100px; background:black;"></div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/composited-under-clip-under-multicol-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/composited-under-clip-under-multicol-ref.htmlnew file mode 100644index 00000000000..ebd2d860cec--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/composited-under-clip-under-multicol-ref.html@@ -0,0 +1,2 @@+<!DOCTYPE html>+<div style="width: 100px; height: 100px; background: green"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/float-with-line-after-spanner-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/float-with-line-after-spanner-ref.htmlnew file mode 100644index 00000000000..7c33b48f5e6--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/float-with-line-after-spanner-ref.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>The word 'PASS' should be seen below, inside a blue square.</p>+<div style="font-size:50px; width:225px; height:225px; line-height:60px; color:white; background:blue;">+ <div style="height:165px;"></div>+ PASS+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/increase-prev-sibling-height-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/increase-prev-sibling-height-ref.htmlnew file mode 100644index 00000000000..963f584f17d--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/increase-prev-sibling-height-ref.html@@ -0,0 +1,5 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>The word "PASS" should be seen below.</p>+<div style="height:2em; background:black;"></div>+PASSdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/move-with-text-after-paint-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/move-with-text-after-paint-ref.htmlnew file mode 100644index 00000000000..bb5d56f26b1--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/move-with-text-after-paint-ref.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<html>+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <div style="columns:3;">+ <div style="position:relative; top:100px;">+ Short loin tri-tip pork belly, tail venison capicola turducken sausage+ pork. Turkey ribeye pork belly chicken chuck, speck shank tail short loin+ bacon tongue prosciutto. Tenderloin pastrami turkey, rump ball tip+ frankfurter ham hock pork chop sausage filet mignon beef hamburger pork+ sirloin speck. Meatball pig pork chop, short loin shankle pork loin flank+ ball tip capicola ham hock pork shank turkey pastrami. Corned beef+ capicola ribeye turkey bresaola, ground round fatback turducken.+ </div>+ </div>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-block-no-clip-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-block-no-clip-001-ref.xhtnew file mode 100644index 00000000000..1313948514e--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-block-no-clip-001-ref.xht@@ -0,0 +1,33 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->+ <meta name="flags" content="image" />+ <style type="text/css"><![CDATA[+ table+ {+ border-spacing: 0px;+ border: gray solid 1em;+ font: 1.25em/1 serif;+ }++ td+ {+ padding: 0;+ width: 3em;+ }++ td + td {width: 8em;}++ img, td {vertical-align: top;}+ ]]></style>+ </head>+ <body>+ <table>+ <tr>+ <td><img src="support/swatch-blue.png" width="40" height="80" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="60" height="20" alt="Image download support must be enabled" /></td><td><img src="support/swatch-orange.png" width="40" height="80" alt="Image download support must be enabled" /></td>+ </tr></table>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-block-no-clip-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-block-no-clip-002-ref.xhtnew file mode 100644index 00000000000..dd0461feeb0--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-block-no-clip-002-ref.xht@@ -0,0 +1,54 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->+ <meta name="flags" content="image" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 1.25em/1 serif;+ border: 1em solid gray;+ width: 11em;+ height: 6em;+ position: relative;+ }++ img {position: absolute;}++ img#black {top: 4em;}++ img#first-orange {top: 5em;}++ img#second-orange {left: 4em;}++ img#first-pink+ {+ left: 4em;+ top: 3em;+ }++ img#second-pink {left: 8em;}++ img#yellow+ {+ left: 8em;+ top: 1em;+ }+ ]]></style>+ </head>+ <body>++ <div>+ <img id="blue" src="support/swatch-blue.png" width="40" height="80" alt="Image download support must be enabled" />+ <img id="black" src="support/black20x20.png" width="80" height="20" alt="Image download support must be enabled" />+ <img id="first-orange" src="support/swatch-orange.png" width="40" height="20" alt="Image download support must be enabled" />+ <img id="second-orange" src="support/swatch-orange.png" width="40" height="60" alt="Image download support must be enabled" />+ <img id="first-pink" src="support/swatch-pink.png" width="40" height="60" alt="Image download support must be enabled" />+ <img id="second-pink" src="support/swatch-pink.png" width="40" height="20" alt="Image download support must be enabled" />+ <img id="yellow" src="support/swatch-yellow.png" width="40" height="80" alt="Image download support must be enabled" />+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-clip-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-clip-001-ref.xhtnew file mode 100644index 00000000000..d742ea716d3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-clip-001-ref.xht@@ -0,0 +1,31 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->+ <meta name="flags" content="image" />+ <style type="text/css"><![CDATA[+ div+ {+ border: gray solid 1em;+ font: 1.25em/1 serif;+ width: 11em;+ }++ img+ {+ position: relative;+ vertical-align: top;+ }++ img + img {left: 3em;}++ img + img + img {left: 6em;}+ ]]></style>+ </head>+ <body>+ <div><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="40" alt="Image download support must be enabled" />+ </div>+ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-clip-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-clip-002-ref.xhtnew file mode 100644index 00000000000..681166c3857--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-clip-002-ref.xht@@ -0,0 +1,31 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->+ <meta name="flags" content="image" />+ <style type="text/css"><![CDATA[+ div+ {+ border: gray solid 1em;+ font: 1.25em/1 serif;+ width: 11em;+ }++ img+ {+ position: relative;+ vertical-align: top;+ }++ img + img {left: 3em;}++ img + img + img {left: 6em;}+ ]]></style>+ </head>+ <body>+ <div><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="20" height="40" alt="Image download support must be enabled" />+ </div>+ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-containing-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-containing-001-ref.xhtnew file mode 100644index 00000000000..f7c279d1195--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-containing-001-ref.xht@@ -0,0 +1,31 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-27 -->+ <meta name="flags" content="image" />+ <style type="text/css"><![CDATA[+ table+ {+ background-color: yellow;+ border-spacing: 0px;+ border: gray solid 1em;+ font: 1.25em/1 serif;+ }++ td {padding: 0 2em 0 0;}++ img, td {vertical-align: top;}+ ]]></style>+ </head>+ <body>+ <table>+ <tr>+ <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>+ <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>+ <td><img src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></td>+ </tr>+ </table>+ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-count-computed-003-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-count-computed-003-ref.xhtnew file mode 100644index 00000000000..bc33b6f7f8c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-count-computed-003-ref.xht@@ -0,0 +1,27 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-29 -->+ <meta name="flags" content="image ahem" />+ <link rel="stylesheet" href="../../fonts/ahem.css" />++ <style type="text/css"><![CDATA[+ body {font: 1.25em/1 Ahem;}+ img {vertical-align: top;}+ ]]></style>+ </head>++ <body>++ <div><img src="support/swatch-gray.png" width="300" height="20" alt="Image download support must be enabled" /></div>++ <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="5" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="35" height="20" alt="Image download support must be enabled" /><img src="support/swatch-purple.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="60" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>++ <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="5" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="35" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="60" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>++ <div><img src="support/swatch-gray.png" width="300" height="20" alt="Image download support must be enabled" /></div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-001-ref.htmlnew file mode 100644index 00000000000..8c614a2e19f--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-001-ref.html@@ -0,0 +1,25 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Append a block to an empty inline element</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">++ <style>+ #column {+ column-count: 3;+ column-rule: 6px solid;+ width: 400px;+ outline: 1px solid black;+ }+ div {+ height: 300px;+ background-color: yellow;+ }+ </style>+ <body>+ <article id="column">+ <span id="span"><div>block</div></span>+ </article>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-002-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-002-ref.htmlnew file mode 100644index 00000000000..c122e36a38c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-002-ref.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<title>CSS Multi-column Layout Reference: Flex container in multi-column context</title>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="http://www.mozilla.org/">++<style>+:root { columns: 0px }+</style>++<q style="display: flex">f</q>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-003-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-003-ref.htmlnew file mode 100644index 00000000000..c69a3217f29--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-003-ref.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<title>CSS Multi-column Layout Reference: Grid with pseudo-elements in multi-column context</title>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="http://www.mozilla.org/">++<style>+.columns {+ columns: 2;+ column-fill: auto;+ width: 100px;+ height: 10px;+}+#grid {+ display: grid;+ grid: 20px 20px / 40px 40px;+}+#grid::before, #grid::after {+ content: "";+ grid-row: 1 / 3;+}+nav {+ grid-row: 1 / 3;+}+</style>++<div class="columns">+ <div id="grid">+ <nav>text</nav>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-004-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-004-ref.htmlnew file mode 100644index 00000000000..e6dfd2e1e0b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-add-004-ref.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<title>CSS Multi-column Layout Reference: Block with floating pseudo-elements in multi-column context</title>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="http://www.mozilla.org/">++<style>+.columns {+ columns: 2;+ column-fill: auto;+ width: 100px;+ height: 10px;+}+#container::before, #container::after {+ float: left;+ content: "";+ width: 10px;+ height: 20px;+}+nav {+ float: left;+}+</style>++<div class="columns">+ <div id="container">+ <nav>text</nav>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-change-inside-break-inside-avoid-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-change-inside-break-inside-avoid-001-ref.htmlnew file mode 100644index 00000000000..201213944c7--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-dynamic-change-inside-break-inside-avoid-001-ref.html@@ -0,0 +1,14 @@+<!doctype html>+<title>CSS Test reference</title>+<style>+ input { -moz-appearance: none; -webkit-appearance: none; appearance: none; }+</style>+<div style="column-count: 2">+ a<br>+ <input>++ <div style="page-break-inside: avoid; break-inside: avoid;">+ b+ <div><input id="editme" value="Am I clipped?"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-auto-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-auto-002-ref.xhtnew file mode 100644index 00000000000..358202a469b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-auto-002-ref.xht@@ -0,0 +1,44 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-fill-auto</title>+<link rel="author" title="[email protected]" href="http://www.opera.com/"/>+<meta name="flags" content="ahem"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body>div {+ font-family: Ahem;+ font-size: 1.25em;+ line-height: 1em;+ color: green;+ height: 3em;+ width: 2em;+ orphans: 1;+ widows: 1;+ position: relative;+ margin: 1em;+}+div.col {+ column-count: 2;+ column-fill: auto;+ column-gap: 0;+}+div.red {+ background: red; position: absolute; z-index: -1;+}+]]></style>+</head>++<body>++<div class='ref'>+oo<br/>t<br/>o+</div>++<div class='ref'>+oo<br/>t<br/>o+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-auto-block-children-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-auto-block-children-002-ref.xhtnew file mode 100644index 00000000000..63015a46870--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-auto-block-children-002-ref.xht@@ -0,0 +1,48 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-16 -->+ <style type="text/css"><![CDATA[+ body {margin:0; margin-top:8px;}++ div+ {+ float: left;+ background-color: blue;+ height: 200px;+ width: 60%;+ margin-left: 8px;+ }++ h1+ {+ color: white;+ font-size: 2em;+ line-height: 1.25; /* or 1.21875 to achieve a 39px tall line box */+ margin: 21px 0em;+ }++ span#pass+ {+ float: left;+ margin-left: 10px;+ color: blue;+ font-size: 1.5em;+ font-weight: bolder;++ line-height: 1;+ margin-top: 122px;+ }+ ]]></style>+ </head>+ <body>++ <div>+ <h1>Test passes if "PASS!" is<br />on the right ↘</h1>+ </div>+ <span id="pass">PASS!</span>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-auto-block-children-003-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-auto-block-children-003-ref.htmlnew file mode 100644index 00000000000..075b1b3ea8d--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-auto-block-children-003-ref.html@@ -0,0 +1,25 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test Reference: 'column-fill: auto' and height constrained of a multi-column container</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">++ <style>+ article {+ column-fill: auto;+ column-count: 2;+ width: 200px;+ height: 200px;+ }+ div {+ height: 400px;+ background-color: lightgreen;+ }+ </style>++ <p>This test passes if you see two green strips with equal height.</p>+ <article>+ <div></div>+ </article>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-balance-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-balance-001-ref.xhtnew file mode 100644index 00000000000..a0b750977ec--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-fill-balance-001-ref.xht@@ -0,0 +1,44 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-fill</title>+<link rel="author" title="[email protected]" href="http://www.opera.com/"/>+<meta name="flags" content="ahem"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body>div {+ font-family: Ahem;+ font-size: 1.25em;+ line-height: 1em;+ color: green;+ height: 3em;+ width: 2em;+ orphans: 1;+ widows: 1;+ position: relative;+ margin: 1em;+}+div.col {+ column-count: 2;+ column-fill: balance;+ column-gap: 0;+}+div.red {+ background: red; position: absolute; z-index: -1;+}+]]></style>+</head>++<body>++<div class='ref'>+oo<br/>tt+</div>++<div class='ref'>+oo<br/>tt+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-height-002-print-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-height-002-print-ref.xhtnew file mode 100644index 00000000000..24943560c30--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-height-002-print-ref.xht@@ -0,0 +1,37 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" />+ <style type="text/css"><![CDATA[+ html, body { height: 100%; }+ * { margin: 0; }+ div {+ border: double blue 12px;+ height: 150%;+ padding: 0 12px;+ }+ div > p {+ border-right: solid orange 12px;+ border-left: solid orange 12px;+ width: 50%;+ margin: 0 auto;+ height: 100%;+ }+ blockquote {+ border: solid thick yellow;+ } ]]></style>+ </head>+ <body>+ <p>Test passes if even when printed:</p>+ <ul>+ <li>Two vertical orange stripes stretch exactly+ from the inner top edge to the inner bottom edge of the blue box below.</li>+ <li>There is a yellow stripe immediately below the blue box.</li>+ </ul>+ <div>+ <p></p>+ </div>+ <blockquote></blockquote>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-inherit-3-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-inherit-3-ref.xhtnew file mode 100644index 00000000000..66efce81ef3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-inherit-3-ref.xht@@ -0,0 +1,67 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | inheritance</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ width: 75em;+}+body>div {+ color: black;+ background: yellow;+ height: 2em;+ position: relative;+}+div div {+ position: absolute;+ top: 0;+ left: 0;+}+#two {left: 19em;}+#three {left: 38em;}+div div div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ width: 2em;+ height: 2em;+ color: black;+ position: absolute;+ left: 1em;+}+.a2 {left: 4em;}+.a3 {left: 10.5em;}+.a4 {left: 13.5em;}+#two div {color: blue;}+#three div {color: pink;}+]]></style>+</head>++<body>++<div>+ <div>+ <div>xx xx</div>+ <div class="a2">xx xx</div>+ <div class="a3">xx xx</div>+ <div class="a4">xx xx</div>+ </div>+ <div id="two">+ <div>xx xx</div>+ <div class="a2">xx xx</div>+ <div class="a3">xx xx</div>+ <div class="a4">xx xx</div>+ </div>+ <div id="three">+ <div>xx xx</div>+ <div class="a2">xx xx</div>+ <div class="a3">xx xx</div>+ <div class="a4">xx xx</div>+ </div>+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-003-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-003-ref.htmlnew file mode 100644index 00000000000..966715ae1f6--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-003-ref.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<div style="display:list-item; width:490px; margin:50px;">+ <div style="height:100px;"></div>+ ← Marker here+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-004-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-004-ref.htmlnew file mode 100644index 00000000000..a1a373c2972--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-004-ref.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<div style="display:list-item; margin:50px;">+ <div style="height:50px;"></div>+ <div style="height:50px;">← Marker here</div>+ Marker NOT here+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-006-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-006-ref.htmlnew file mode 100644index 00000000000..30e55658f54--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-006-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<div style="position:absolute; left:40px; top:30px;">↓ Marker here.</div>+<div style="display:list-item; margin:50px;"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-007-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-007-ref.htmlnew file mode 100644index 00000000000..54435d71918--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-list-item-007-ref.html@@ -0,0 +1,5 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<div style="display:list-item; list-style-position:inside;">+ List item markes should render identically, regardless of multicol.+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-002-ref.xhtnew file mode 100644index 00000000000..5aaa30521e1--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-002-ref.xht@@ -0,0 +1,105 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-11 -->+ <style type="text/css"><![CDATA[+ body {margin: 0em;}++ div#rel-pos-wrapper+ {+ background-color: yellow;+ font: 1.25em/1 serif;+ height: 4em;+ position: relative;+ width: 32em;+ }++ div > div+ {+ font-size: 1em;+ height: 3em;+ position: absolute;+ top: 0;+ width: 2em;+ }++ div#black1+ {+ background-color: black;+ left: 1em;+ }++ div#black2+ {+ background-color: black;+ left: 4em;+ }++ div#black3+ {+ background-color: black;+ height: 2em;+ left: 7em;+ }++ div#blue1+ {+ background-color: blue;+ left: 12em;+ }++ div#blue2+ {+ background-color: blue;+ left: 15em;+ }++ div#blue3+ {+ background-color: blue;+ height: 2em;+ left: 18em;+ }++ div#pink1+ {+ background-color: pink;+ left: 23em;+ }++ div#pink2+ {+ background-color: pink;+ left: 26em;+ }++ div#pink3+ {+ background-color: pink;+ height: 2em;+ left: 29em;+ }+ ]]></style>+ </head>+ <body>++ <div id="rel-pos-wrapper">++ <div id="black1"></div>+ <div id="black2"></div>+ <div id="black3"></div>++ <div id="blue1"></div>+ <div id="blue2"></div>+ <div id="blue3"></div>++ <div id="pink1"></div>+ <div id="pink2"></div>+ <div id="pink3"></div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-005-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-005-ref.xhtnew file mode 100644index 00000000000..39d7f537c1d--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-005-ref.xht@@ -0,0 +1,35 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->+ <meta name="flags" content="image" />+ <style type="text/css"><![CDATA[+ div+ {+ background-color: yellow;+ font: 1.25em/1 serif;+ margin: 1em;+ padding: 0em 1em 1em;+ width: 39em;+ }++ img+ {+ padding-right: 2em;+ vertical-align: top;+ }++ img.column-gap {margin-right: 2em;}++ img#last {padding-right: 0em;}+ ]]></style>+ </head>+ <body>++ <div><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img class="column-gap" src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img class="column-gap" src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="60" alt="Image download support must be enabled" /><img src="support/black20x20.png"+width="40" height="60" alt="Image download support must be enabled" /><img id="last" src="support/black20x20.png" width="40" height="40" alt="Image download support must be enabled" /></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-029-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-029-ref.htmlnew file mode 100644index 00000000000..8c92486cc80--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-029-ref.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<div style="display:flow-root; width:20em; height:10em; color:white; background:black;">+ <p>The word "PASS" should be seen below.</p>+ <div style="line-height:0.8;">+ PASS+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-033-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-033-ref.htmlnew file mode 100644index 00000000000..5360ef01596--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-033-ref.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">++<style>+.multicol {+ column-count: 2;+ column-fill: auto;+ column-gap: 0;+}+#outer {+ width: 100px;+ height: 100px;+}+#nested {+ width: 100%;+ height: 200px;+ column-gap: 15px;+}+#abscb {+ position: relative;+ width: 100%;+ height: 50px;+}+#abspos {+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ height: 400px;+ background: green;+}+</style>++<div id="outer" class="multicol">+ <div id="nested" class="multicol">+ <div id="abscb">+ <div id="abspos"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-column-rule-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-column-rule-001-ref.xhtnew file mode 100644index 00000000000..df0820fec52--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-column-rule-001-ref.xht@@ -0,0 +1,12 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-09 -->+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ </head>+ <body>+ <div style="font: 1.25em/1 Ahem; width:8em; height:3em; margin-left:9em; border-left:1em solid blue; border-right:1em solid blue;"></div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-margin-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-margin-001-ref.xhtnew file mode 100644index 00000000000..83b832ab04b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-margin-001-ref.xht@@ -0,0 +1,106 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-11 -->+ <style type="text/css"><![CDATA[+ body {margin: 0em;}++ div#rel-pos-wrapper+ {+ background-color: yellow;+ font: 1.25em/1 serif;+ height: 3em;+ margin: 1em;+ position: relative;+ width: 32em;+ }++ div > div+ {+ font-size: 1em;+ height: 3em;+ position: absolute;+ top: 0em;+ width: 2em;+ }++ div#black1+ {+ background-color: black;+ left: 1em;+ }++ div#black2+ {+ background-color: black;+ left: 4em;+ }++ div#black3+ {+ background-color: black;+ height: 2em;+ left: 7em;+ }++ div#pink1+ {+ background-color: pink;+ left: 12em;+ }++ div#pink2+ {+ background-color: pink;+ left: 15em;+ }++ div#pink3+ {+ background-color: pink;+ height: 2em;+ left: 18em;+ }++ div#blue1+ {+ background-color: blue;+ left: 23em;+ }++ div#blue2+ {+ background-color: blue;+ left: 26em;+ }++ div#blue3+ {+ background-color: blue;+ height: 2em;+ left: 29em;+ }+ ]]></style>+ </head>+ <body>++ <div id="rel-pos-wrapper">++ <div id="black1"></div>+ <div id="black2"></div>+ <div id="black3"></div>++ <div id="pink1"></div>+ <div id="pink2"></div>+ <div id="pink3"></div>++ <div id="blue1"></div>+ <div id="blue2"></div>+ <div id="blue3"></div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-margin-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-margin-002-ref.xhtnew file mode 100644index 00000000000..2818de04a18--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-margin-002-ref.xht@@ -0,0 +1,58 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->+ <style type="text/css"><![CDATA[+ body {margin: 0em;}++ div+ {+ background-color: yellow;+ font: 1.25em/1 serif;+ height: 5em;+ position: relative;+ width: 41em;+ }++ div > div+ {+ background-color: blue;+ font: inherit;+ height: 3em;+ position: absolute;+ top: 0em;+ width: 2em+ }++ div#first-blue+ {+ background-color: blue;+ left: 29em;+ }++ div#second-blue+ {+ background-color: blue;+ left: 33em;+ }++ div#third-blue+ {+ background-color: blue;+ height: 2em;+ left: 37em;+ }+ ]]></style>+ </head>+ <body>++ <div>+ <div id="first-blue"></div>+ <div id="second-blue"></div>+ <div id="third-blue"></div>+ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-margin-003-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-margin-003-ref.xhtnew file mode 100644index 00000000000..b9e80644a0f--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-nested-margin-003-ref.xht@@ -0,0 +1,107 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->+ <style type="text/css"><![CDATA[+ div#rel-pos-wrapper+ {+ background-color: yellow;+ font: 1.25em/1 serif;+ height: 4em;+ margin: 1em;+ position: relative;+ width: 41em;+ }++ div > div+ {+ font-size: 1em;+ height: 3em;+ position: absolute;+ top: 0em;+ width: 2em;+ }++ div#black1+ {+ background-color: black;+ left: 1em;+ top: 1em;+ }++ div#black2+ {+ background-color: black;+ left: 5em;+ top: 1em;+ }++ div#black3+ {+ background-color: black;+ height: 2em;+ left: 9em;+ top: 1em;+ }++ div#pink1+ {+ background-color: pink;+ left: 15em;+ }++ div#pink2+ {+ background-color: pink;+ left: 19em;+ }++ div#pink3+ {+ background-color: pink;+ height: 2em;+ left: 23em;+ }++ div#blue1+ {+ background-color: blue;+ left: 29em;+ }++ div#blue2+ {+ background-color: blue;+ left: 33em;+ }++ div#blue3+ {+ background-color: blue;+ height: 2em;+ left: 37em;+ }+ ]]></style>+ </head>+ <body>++ <div id="rel-pos-wrapper">++ <div id="black1"></div>+ <div id="black2"></div>+ <div id="black3"></div>++ <div id="pink1"></div>+ <div id="pink2"></div>+ <div id="pink3"></div>++ <div id="blue1"></div>+ <div id="blue2"></div>+ <div id="blue3"></div>++ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-oof-inline-cb-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-oof-inline-cb-001-ref.htmlnew file mode 100644index 00000000000..a7c8e4be8a1--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-oof-inline-cb-001-ref.html@@ -0,0 +1,43 @@+<!DOCTYPE html>+<style>+section {+ width: 300px;+ height: 100px;+ border: blue 1px solid;+}+.cb {+ position: relative;+}+abs {+ position: absolute;+ background: purple;+ width: 100px;+ height: 50px;+}+abs.p0 {+ top: 0; left: 0;+ background: blue;+}+</style>+<body>+ <section>+ 123+ <span class="cb">+ 456<br>+ 7+ <abs></abs>+ <abs class="p0"></abs>+ </span>+ </section>++ <!-- Same -->+ <section>+ 123+ <span class="cb">+ 456<br>+ 7+ <abs></abs>+ <abs class="p0"></abs>+ </span>+ </section>+</body>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-000-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-000-ref.xhtnew file mode 100644index 00000000000..aab047a0a2a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-000-ref.xht@@ -0,0 +1,34 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Hakon Wium Lie" href="mailto:[email protected]" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->+ <meta name="flags" content="ahem" />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ table+ {+ background-color: yellow;+ border-right: lime solid 1em;+ border-spacing: 0px;+ color: lime;+ font: 1.25em/1 Ahem;+ margin: 1em 0;+ table-layout: fixed;+ width: 21em;+ }++ td {padding: 0em;}+ ]]></style>+ </head>+ <body>++ <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>++ <table><tr><td>G<br />H</td><td>I<br />J</td></tr></table>++ <table><tr><td>G<br />H</td><td>I<br />J</td></tr></table>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-clip-auto-sized-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-clip-auto-sized-ref.htmlnew file mode 100644index 00000000000..95a6e0cb2ca--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-clip-auto-sized-ref.html@@ -0,0 +1,5 @@+<!DOCTYPE html>+<div style="columns: 2">+ <div>Column1</div>+ <div style="break-inside: avoid; padding: 2px">Column2<br>Column2 line2</div>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-clip-positioned-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-clip-positioned-ref.htmlnew file mode 100644index 00000000000..58f1d57bc39--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-clip-positioned-ref.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<div style="columns: 2">+ <div style="height: 200px; background: blue"></div>+ <div style="height: 200px"></div>+</div>+diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-clip-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-clip-ref.htmlnew file mode 100644index 00000000000..c061a1d6114--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-overflow-clip-ref.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<style>+.multicol {+ column-count: 3;+}+.parent {+ background: green;+ height: 50px;+}+</style>+<div class="multicol">+ <div class="parent"></div>+ <div class="parent"></div>+ <div class="parent"></div>+</div>+diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-fraction-3-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-fraction-3-ref.xhtnew file mode 100644index 00000000000..5fddad36148--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-fraction-3-ref.xht@@ -0,0 +1,58 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-rule</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: yellow;+ margin: 1em;+ border: 1em solid gray;+ width: 14em;+ height: 2em;+ position: relative;+}+div div {+ width: 2em;+ height: 2em;+ background: black;+ position: absolute;+ left: 0;+ top: 0;+}+.a {+ background: blue;+ width: 1em;+}+#a1 {left: 2.4em;}+#a2 {left: 3.75em;}+#a3 {left: 6.15em;}+#a4 {left: 7.5em;}+#a5 {left: 9.9em;}+#a6 {left: 11.25em;}+]]></style>+</head>++<body>++<div>+ <div></div>+ <div id="a1" class="a"></div>+ <div id="a2"></div>+ <div id="a3" class="a"></div>+ <div id="a4"></div>+ <div id="a5" class="a"></div>+ <div id="a6"></div>+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-nested-balancing-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-nested-balancing-001-ref.htmlnew file mode 100644index 00000000000..aa00e51415d--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-nested-balancing-001-ref.html@@ -0,0 +1,43 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test Reference: Test the column rules' block-size with nested balancing multicol container</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org/">++ <style>+ .outer {+ column-count: 2;+ column-rule: 6px solid black;+ column-fill: auto;+ width: 400px;+ height: 250px;+ }+ .inner {+ column-count: 2;+ column-rule: 3px solid gray;+ column-fill: auto;+ height: 200px;+ }+ .outer-block {+ background-color: lightgreen;+ height: 200px;+ }+ .inner-block {+ background-color: lightblue;+ height: 150px;+ }+ .space {+ height: 50px;+ }+ </style>++ <article class="outer">+ <div class="outer-block"></div>+ <div class="space"></div>+ <article class="inner">+ <div class="inner-block"></div><div class="space"></div>+ <div class="inner-block"></div><div class="space"></div>+ </article>+ </article>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-nested-balancing-002-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-nested-balancing-002-ref.htmlnew file mode 100644index 00000000000..a176989f6b3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-nested-balancing-002-ref.html@@ -0,0 +1,43 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test Reference: Test the column rules' block-size with nested balancing multicol container</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org/">++ <style>+ .outer {+ column-count: 2;+ column-rule: 6px solid black;+ column-fill: auto;+ width: 400px;+ height: 250px;+ }+ .inner {+ column-count: 2;+ column-rule: 3px solid gray;+ column-fill: auto;+ height: 200px;+ }+ .outer-block {+ background-color: lightgreen;+ height: 200px;+ }+ .inner-block {+ background-color: lightblue;+ height: 200px;+ }+ .space {+ height: 50px;+ }+ </style>++ <article class="outer">+ <div class="outer-block"></div>+ <div class="space"></div>+ <article class="inner">+ <div class="inner-block"></div>+ <div class="inner-block"></div>+ </article>+ </article>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-ref.xhtnew file mode 100644index 00000000000..87fa981425c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-ref.xht@@ -0,0 +1,52 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-rule</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: yellow;+ margin: 1em;+ border: 1em solid gray;+ width: 15em;+ height: 2em;+}+div div {+ width: 2em;+ height: 2em;+ float: left;+}+.a {+ color: blue;+ width: 1em;+ margin-left: 1em;+}+div+div+div {+ left: 11em;+}+]]></style>+</head>++<body>++<div>+ <div>xx xx</div>+ <div class="a">x x</div>+ <div>xx xx</div>+ <div class="a">x x</div>+ <div>xx xx</div>+ <div class="a">x x</div>+ <div>xx xx</div>+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-shorthand-2-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-shorthand-2-ref.xhtnew file mode 100644index 00000000000..5d1b698a16f--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-shorthand-2-ref.xht@@ -0,0 +1,50 @@+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-rule</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style><![CDATA[+body {+ margin: 1em;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: yellow;+ margin: 1em 0;+ border: 1em solid gray;+ width: 15em;+ height: 2em;+}+div div {+ width: 2em;+ height: 2em;+ float: left;+}+.a {+ color: blue;+ width: 1em;+ margin-left: 1em;+}+div+div+div {+ left: 11em;+}+]]></style>+</head>++<body>+<p>Pass if there is no red visible.</p>+<div>+ <div>xx xx</div>+ <div class="a">x x</div>+ <div>xx xx</div>+ <div class="a">x x</div>+ <div>xx xx</div>+ <div class="a">x x</div>+ <div>xx xx</div>+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-stacking-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-stacking-ref.xhtnew file mode 100644index 00000000000..42ebb05db12--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-rule-stacking-ref.xht@@ -0,0 +1,54 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-rule</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: blue;+ margin: 1em;+ border: 1em solid gray;+ width: 14em;+ height: 2em;+ position: relative;+}+span {+ margin-left: 7.5em;+ width: 2em;+ height: 2em;+ display: inline-block;+}+div div {+ background: blue;+ position: absolute;+ height: 2em;+ width: 2em;+ top: 0;+ left: -2em;+}+div div+div {+ left: 13em;+ width: 11.75em;+}+]]></style>+</head>++<body>++<div>+ <span>xx xx</span>+ <div></div>+ <div></div>+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-button-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-button-001-ref.htmlnew file mode 100644index 00000000000..bfa26a818ea--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-button-001-ref.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a multi-column container on button works with a column-span:all child</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">++ <style>+ button {+ width: 400px;+ }+ .inner {+ column-count: 3;+ column-rule: 6px solid;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ </style>++ <button>+ <div class="inner">+ <div>block1</div><div>block2</div>+ <h3>spanner</h3>+ <div>block3</div><div>block4</div>+ </div>+ </button>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-button-002-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-button-002-ref.htmlnew file mode 100644index 00000000000..a231ad54134--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-button-002-ref.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on button works with a column-span:all child and position:absolute boxes</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">++ <style>+ button {+ width: 400px;+ padding: 1em;+ overflow: hidden;+ position: absolute;+ }+ .inner {+ column-count: 3;+ column-rule: 6px solid;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ a {+ position: absolute;+ width: 1em;+ height: 1em;+ background-color: blue;+ }+ </style>++ <button>+ <div class="inner">+ <div>block1</div><div>block2</div><a></a>+ <h3>spanner<a></a></h3>+ <div>block3</div><div>block4</div><a></a>+ </div>+ </button>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-button-003-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-button-003-ref.htmlnew file mode 100644index 00000000000..7020b6b85b3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-button-003-ref.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on button works with a column-span:all child and position:fixed boxes</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">++ <style>+ button {+ width: 400px;+ padding: 1em;+ overflow: hidden;+ position: absolute;+ }+ .inner {+ column-count: 3;+ column-rule: 6px solid;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ a {+ position: fixed;+ width: 1em;+ height: 1em;+ background-color: blue;+ }+ </style>++ <button>+ <div class="inner">+ <div>block1</div><div>block2</div><a></a>+ <h3>spanner<a></a></h3>+ <div>block3</div><div>block4</div><a></a>+ </div>+ </button>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-001-ref.htmlnew file mode 100644index 00000000000..5dfdce5d1de--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-001-ref.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a multi-column container on fieldset works with a column-span:all child</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">++ <style>+ fieldset {+ width: 400px;+ }+ .inner {+ column-count: 3;+ column-rule: 6px solid;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ </style>++ <fieldset>+ <legend>Legend</legend>+ <div class="inner">+ <div>block1</div><div>block2</div>+ <h3>spanner</h3>+ <div>block3</div><div>block4</div>+ </div>+ </fieldset>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-002-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-002-ref.htmlnew file mode 100644index 00000000000..523adfd2f31--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-002-ref.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on fieldset works with a column-span:all child and position:absolute boxes</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">++ <style>+ fieldset {+ width: 400px;+ overflow: hidden;+ position: absolute;+ }+ .inner {+ column-count: 3;+ column-rule: 6px solid;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ a {+ position: absolute;+ width: 1em;+ height: 1em;+ background-color: blue;+ }+ </style>++ <fieldset>+ <legend>Legend<a></a></legend>+ <div class="inner">+ <div>block1</div><div>block2</div><a></a>+ <h3>spanner<a></a></h3>+ <div>block3</div><div>block4</div><a></a>+ </div>+ </fieldset>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-003-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-003-ref.htmlnew file mode 100644index 00000000000..bf0d6c5b69b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-003-ref.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on fieldset works with a column-span:all child and position:fixed boxes</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">++ <style>+ fieldset {+ width: 400px;+ overflow: hidden;+ position: absolute;+ }+ .inner {+ column-count: 3;+ column-rule: 6px solid;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ a {+ position: fixed;+ width: 1em;+ height: 1em;+ background-color: blue;+ }+ </style>++ <fieldset>+ <legend>Legend<a></a></legend>+ <div class="inner">+ <div>block1</div><div>block2</div><a></a>+ <h3>spanner<a></a></h3>+ <div>block3</div><div>block4</div><a></a>+ </div>+ </fieldset>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-margin-nested-firstchild-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-margin-nested-firstchild-ref.xhtnew file mode 100644index 00000000000..0a40ef6affa--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-all-margin-nested-firstchild-ref.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-span</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: navy;+ background: yellow;+ margin: 1em;+ border: 1em solid gray;+ width: 8em;+ height: 13em;+ position: relative;+ float: left;+ overflow: hidden;+}+div div {+ position: absolute;+ top: 0;+ left: 0;+ width: 8em;+ height: 2em;+ background: navy;+}+#s2 {+ top: 11em;+}+#s3 {+ background: black;+ top: 3em;+}+#s4 {+ background: pink;+ top: 5em;+ height: 1em;+}+#s5 {+ background: black;+ top: 6em;+ height: 1em;+}+#s6 {+ background: pink;+ top: 7em;+ height: 1em;+}+#s7 {+ background: black;+ top: 9em;+ height: 1em;+}+]]></style>+</head>++<body>++<div>+ <div></div>+ <div id="s2"></div>+ <div id="s3"></div>+ <div id="s4"></div>+ <div id="s5"></div>+ <div id="s6"></div>+ <div id="s7"></div>+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-float-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-float-001-ref.xhtnew file mode 100644index 00000000000..50addc37797--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-span-float-001-ref.xht@@ -0,0 +1,35 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-22 -->+ <meta name="flags" content="image" />+ <style type="text/css"><![CDATA[+ div+ {+ font-size: 1.25em;+ line-height: 1;+ }++ img {vertical-align: top;}++ img:first-child {padding-left: 5em;}++ img#no-padding {padding-left: 0em;}+ ]]></style>+ </head>+ <body>++ <div><img src="support/swatch-gray.png" width="260" height="20" alt="Image download support must be enabled" /></div>++ <div><img id="no-padding" src="support/swatch-pink.png" width="220" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="120" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>++ <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="100" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="120" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>++ <div><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-navy.png" width="100" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-navy.png" width="100" height="20" alt="Image download support must be enabled" /><img src="support/swatch-gray.png" width="20" height="20" alt="Image download support must be enabled" /></div>++ <div><img src="support/swatch-gray.png" width="260" height="20" alt="Image download support must be enabled" /></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-width-small-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-width-small-001-ref.xhtnew file mode 100644index 00000000000..a862607a6ba--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/multicol-width-small-001-ref.xht@@ -0,0 +1,30 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-24 -->+ <meta name="flags" content="image" />+ <style type="text/css"><![CDATA[+ table+ {+ background-color: yellow;+ border-spacing: 0px;+ border: gray solid 1em;+ font: 1.25em/1 serif;+ }++ td {padding: 0 4em 0 0;}++ img, td {vertical-align: top;}+ ]]></style>+ </head>+ <body>+ <p>This test passes is it is idential to the reference.</p>+ <table>+ <tr>+ <td><img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/black20x20.png" width="40" height="20" alt="Image download support must be enabled" /></td>+ </tr>+ </table>+ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/nested-with-too-tall-line-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/nested-with-too-tall-line-ref.htmlnew file mode 100644index 00000000000..16be12ca918--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/nested-with-too-tall-line-ref.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<p>The word "PASS" should be seen below, and there should be no red.</p>+<div style="line-height:200px;">+ PASS+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/multicol-basic-005-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/multicol-basic-005-ref.xhtnew file mode 100644index 00000000000..a46863c62fd--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/multicol-basic-005-ref.xht@@ -0,0 +1,21 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicol-000</title>+<link rel="author" title="Hakon Wium Lie" href="mailto:[email protected]"/>+<style type="text/css">+div {+ margin: 1em auto;+ background: yellow;+ border: thin solid black;+ width: 600px;+ columns: 3;+ column-gap: 0;+ column-rule: none;+}+</style>+</head>+<body>+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three columns with no gap or rule between them.</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/multicol-clip-scrolled-content-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/multicol-clip-scrolled-content-001-ref.htmlnew file mode 100644index 00000000000..d19ec1b93a1--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/multicol-clip-scrolled-content-001-ref.html@@ -0,0 +1,52 @@+<!DOCTYPE html>+<html>+<meta charset="utf-8">+<title>CSS Test: Multi-column element with scrolled content clipping (reference)</title>+<link rel="author" title="Vladimir Levin" href="mailto:[email protected]"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#columns"/>+<style>+#columns {+ column-width: 350px;+}+.spacer {+ height: 200px;+ width: 10px;+}+#outer {+ border: 1px solid black;+ overflow: scroll;+ height: 300px;+ width: 300px;+}+.inner {+ overflow: scroll;+ visibility: hidden;+}+.clipped_target {+ width: 50px;+ height: 50px;+}+</style>++<div class=spacer></div>+<div id=columns>+<div class=spacer></div>+<div id=outer>+ <div class=inner>+ <pre class=clipped_target>+ scrollable+ content+ goes+ here+ </pre>+ </div>+ <div class=spacer></div>+ <div class=spacer></div>+</div>+</div>++<script>+window.onload = () => { outer.scrollTop = 100; };+</script>+</html>+diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/nested-oofs-in-relative-multicol-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/nested-oofs-in-relative-multicol-ref.htmlnew file mode 100644index 00000000000..01956bf492c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/nested-oofs-in-relative-multicol-ref.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<style>+.outer {+ position: relative;+ margin-left: 100px;+ width: 400px;+ height: 400px;+ background: green;+}+</style>+<body>+ <div class="outer"></div>+</body>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/subpixel-column-rule-width-ref.tentative.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/subpixel-column-rule-width-ref.tentative.htmlnew file mode 100644index 00000000000..47300675fb8--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/reference/subpixel-column-rule-width-ref.tentative.html@@ -0,0 +1,92 @@+<!DOCTYPE html>+<html>++<head>+ <title>+ CSS Column-Rule: width computed value+ </title>++ <link rel="author" title="Traian Captan" href="mailto:[email protected]">++ <style>+ .columns {+ column-count: 2;+ column-rule: 1px solid gray;+ width: 420px;+ height: 50px;+ }+ </style>+</head>++<body>+ <h1>+ Test passes if column rule widths are rounded up+ when they are greater than 0 and less than 1,+ and rounded down when they are greater than 1.+ </h1>++ <div class="columns">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 3px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 3px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 3px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>+</body>++</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/relative-child-overflowing-column-gap-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/relative-child-overflowing-column-gap-ref.htmlnew file mode 100644index 00000000000..02a5ec0f439--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/relative-child-overflowing-column-gap-ref.html@@ -0,0 +1,24 @@+<!DOCTYPE html>+<title>Relative child can overflow onto the column gap area</title>+<style>+body {+ margin: 0px;+}++.child {+ width: 100px;+ height: 50px;+ background: green;+}++.child2 {+ width: 100px;+ height: 50px;+ background: green;+ position: absolute;+ left: 125px;+ top: 0px;+}+</style>+<div class="child"></div>+<div class="child2"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/resize-with-text-after-paint-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/resize-with-text-after-paint-ref.htmlnew file mode 100644index 00000000000..2876b93f37b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/resize-with-text-after-paint-ref.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<html>+ <p style="columns:3; column-rule:solid;">+ Short loin tri-tip pork belly, tail venison capicola turducken sausage+ pork. Turkey ribeye pork belly chicken chuck, speck shank tail short loin+ bacon tongue prosciutto. Tenderloin pastrami turkey, rump ball tip+ frankfurter ham hock pork chop sausage filet mignon beef hamburger pork+ sirloin speck. Meatball pig pork chop, short loin shankle pork loin flank+ ball tip capicola ham hock pork shank turkey pastrami. Corned beef capicola+ ribeye turkey bresaola, ground round fatback turducken.+ </p>+ <p style="columns:3; column-rule:solid;">+ Tenderloin ham boudin tongue sausage venison short ribs sirloin, kielbasa+ beef ribs. Strip steak shank bresaola salami spare ribs kielbasa fatback,+ cow t-bone flank leberkas sirloin. Jowl pork belly ribeye, corned beef+ sirloin chicken salami tail. Rump swine ham shank corned beef short loin,+ speck turkey pancetta shankle frankfurter. Pancetta tail fatback, ground+ round brisket biltong frankfurter turkey. Ham hock chicken strip steak,+ salami short ribs beef ribs pork sirloin pastrami pork loin turducken rump+ brisket andouille.+ </p>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/multicol-table-cell-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/multicol-table-cell-001-ref.xhtnew file mode 100644index 00000000000..37f172d5e18--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/multicol-table-cell-001-ref.xht@@ -0,0 +1,12 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->+ <meta name="flags" content="image" />+ </head>+ <body>+ <div><img src="../support/black20x20.png" width="120" height="20" alt="Image download support must be enabled" /></div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/multicol-table-cell-height-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/multicol-table-cell-height-001-ref.xhtnew file mode 100644index 00000000000..e028d1f797d--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/multicol-table-cell-height-001-ref.xht@@ -0,0 +1,23 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->+ <meta name="flags" content="image" />+ <style type="text/css"><![CDATA[+ div+ {+ background-color: yellow;+ height: 360px;+ width: 300px;+ }++ img + img {padding-left: 110px;}+ ]]></style>++ </head>+ <body>+ <div><img src="../support/black20x20.png" width="60" height="360" alt="Image download support must be enabled" /><img src="../support/black20x20.png" width="60" height="360" alt="Image download support must be enabled" /></div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/multicol-table-cell-vertical-align-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/multicol-table-cell-vertical-align-ref.xhtnew file mode 100644index 00000000000..8383696f9b2--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/multicol-table-cell-vertical-align-ref.xht@@ -0,0 +1,30 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | table-cell, vertical-align</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="stylesheet" type="text/css" href="../../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+div {+ font-family: Ahem;+ font-size: 20px;+ line-height: 1em;+ vertical-align: middle;+ color: white;+ background: #3366CC;+ width: 6em;+ height: 5.5em;+}+div+div {+ margin-top: 9em;+}+]]></style>+</head>++<body>+<div></div>+<div></div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/table-cell-as-multicol-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/table-cell-as-multicol-ref.htmlnew file mode 100644index 00000000000..2e5a6ba4603--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-multicol/table/table-cell-as-multicol-ref.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<p>You should see the word 'PASS' below.</p>+<div style="font-family:monospace;">+ <div style="float:left; overflow:hidden; width:1em;">P</div>+ <div style="float:left; overflow:hidden; width:1em;">A</div>+ <div style="float:left; overflow:hidden; width:1em;">S</div>+ <div style="float:left; overflow:hidden; width:1em;">S</div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/abspos-in-opacity-000.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/abspos-in-opacity-000.htmlnew file mode 100644index 00000000000..7e02a3c6d87--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/abspos-in-opacity-000.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/abspos-in-opacity-000-ref.html">+<p>There should be a purple square below.</p>+<div style="columns:2; column-gap:0; column-fill:auto; width:100px; height:100px; background:blue;">+ <div style="opacity:0.5;">+ <div style="position:absolute; width:100px; height:100px; background:red;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/abspos-inside-relpos-inside-monolithic.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/abspos-inside-relpos-inside-monolithic.htmlnew file mode 100644index 00000000000..e8db8dd585a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/abspos-inside-relpos-inside-monolithic.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1336634">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:1; width:100px; background:red;">+ <div style="height:40px; background:green;"></div>+ <div style="overflow:hidden;">+ <div style="position:relative; height:60px;">+ <div style="position:absolute; width:100%; height:60px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/area-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/area-002.htmlnew file mode 100644index 00000000000..a0ccfae0ecd--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/area-002.html@@ -0,0 +1,61 @@+<!DOCTYPE html>+<title>Default-hidden and author-shown area elements in multicol</title>+<link rel="author" title="Helmut Januschka" href="mailto:[email protected]">+<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements">+<link rel="help" href="https://drafts.csswg.org/css-break/">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/area-002-ref.html">+<style>+ .multicol {+ columns: 2;+ column-fill: auto;+ column-gap: 0;+ width: 200px;+ height: 100px;+ margin-bottom: 20px;+ }+ .block {+ height: 50px;+ background: green;+ }+ area {+ padding: 10px;+ border: 10px solid red;+ background: red;+ }+ .inline {+ display: inline;+ border-color: blue;+ background: blue;+ }+ .out-of-flow {+ position: absolute;+ top: 0;+ left: 0;+ width: 50px;+ height: 50px;+ background: red;+ }+</style>++<div class="multicol">+ <div class="block"></div>+ <area>+ <div class="block"></div>+ <area id="area-with-child">+ <div class="block"></div>+ <div class="block"></div>+</div>++<div class="multicol">+ <div class="block"></div>+ <area class="inline">+ <div class="block"></div>+ <div class="block"></div>+ <div class="block"></div>+</div>++<script>+ const child = document.createElement("div");+ child.className = "out-of-flow";+ document.getElementById("area-with-child").appendChild(child);+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/background-image-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/background-image-003.htmlnew file mode 100644index 00000000000..f767e0f596e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/background-image-003.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#break-decoration">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div id="container" style="columns:5; width:100px; gap:0; column-fill:auto; height:100px; background:red;">+ <div style="height:250px; background:linear-gradient(red 50%, green 50%);">+ <div style="height:500px;">+ <div style="height:125px; background:green;"></div>+ <div style="height:125px;"></div>+ <div style="height:250px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/become-unfragmented-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/become-unfragmented-001.htmlnew file mode 100644index 00000000000..ab642f3f076--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/become-unfragmented-001.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1285795">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div style="width:100px; height:100px; background:red;">+ <div id="mc" style="columns:4; column-fill:auto; width:100px; height:25px;">+ <div>+ <div style="width:100px; height:100px; background:green;"></div>+ </div>+ </div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ mc.style.columns = 'auto';+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-end-aligned-abspos-nested.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-end-aligned-abspos-nested.htmlnew file mode 100644index 00000000000..b35ec969154--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-end-aligned-abspos-nested.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#transforms">+<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#abs-non-replaced-height">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="position:relative;">+ <div style="position:absolute; top:50px; width:50px; height:50px; background:red;"></div>+</div>+<div id="multicol" style="columns:2; column-fill:auto; column-gap:0; width:101px; height:100px; background:green;">+ <div style="position:relative; height:100px;">+ <div style="position:absolute; bottom:0;">+ <div style="position:absolute; bottom:0;">+ <div style="width:50px; height:50px; background:green;"></div>+ </div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ document.getElementById("multicol").style.width = "100px";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-in-inline-008.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-in-inline-008.htmlnew file mode 100644index 00000000000..de94260f8f2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-in-inline-008.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1457464">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<!-- There are no valid breakpoints in this test. Blink will still place a break+ between the end of #monolith and the bottom padding of #container, to+ prevent fragmentainer overflow, whereas Gecko won't insert any breaks at+ all. All we want to test here, though, is that no break is inserted between+ the top border of #outer and #container. -->+<div style="columns:1; overflow:hidden; column-fill:auto; width:100px; height:100px; background:red;">+ <div id="outer" style="width:100px; border-top:10px solid green;">+ <span>+ <div id="container" style="padding-bottom:50px;">+ <div id="monolith" style="contain:size; height:90px; background:green;"></div>+ </div>+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-in-inline-009.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-in-inline-009.htmlnew file mode 100644index 00000000000..3b9d7dea5c5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-in-inline-009.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1457464">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; gap:0; column-fill:auto; height:200px; orphans:1; widows:1;">+ <div style="height:100px; background:green;"></div>+ <div style="height:10px;"></div>+ <div style="border-top:40px solid green;">+ <span>+ <div style="contain:size; height:60px; background:green;"></div>+ </span>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-min-height-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-min-height-001.htmlnew file mode 100644index 00000000000..5d06e6ea083--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-min-height-001.html@@ -0,0 +1,53 @@+<!DOCTYPE html>+<html>+<head>+ <title>CSS Test: min-height block fragmentation</title>+ <link rel="author" title="Mats Palmgren" href="mailto:[email protected]">+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1602430">+ <link rel="help" href="https://drafts.csswg.org/css-break">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/block-min-height-001-ref.html">+ <style>+html,body {+ color:black; background-color:white; font:24px/1 monospace; padding:0; margin:0;+ width: 300px;+}+.columns {+ columns: 3;+ background: grey;+ margin-bottom: 1em;+}+.columns > div { min-height:200px; background: yellow; }+.columns > div > div { height:160px; width:50px; border:solid; }+ </style>+</head>+<body>+<div class="columns">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:100px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:70px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:50px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-min-height-001b.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-min-height-001b.htmlnew file mode 100644index 00000000000..cc02e90e046--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/block-min-height-001b.html@@ -0,0 +1,59 @@+<!DOCTYPE html>+<html>+<head>+ <title>CSS Test: min-height block fragmentation</title>+ <link rel="author" title="Mats Palmgren" href="mailto:[email protected]">+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1602430">+ <link rel="help" href="https://drafts.csswg.org/css-break">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/block-min-height-001b-ref.html">+ <style>+html,body {+ color:black; background-color:white; font:24px/1 monospace; padding:0; margin:0;+ width: 300px;+}+.columns {+ columns: 3;+ background: grey;+ margin-bottom: 1em;+}+.columns > div {+ min-height: 172px;+ background: yellow;+ border: solid;+ border-width:10px 0 6px 0;+ padding: 5px 0 3px 0;+}+.columns > div > div { height:150px; width:50px; border:solid; }+ </style>+</head>+<body>+<div class="columns">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:100px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:70px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+<div class="columns" style="height:50px">+ BEFORE+ <div>+ <div></div>+ </div>+ AFTER+</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-003.htmlnew file mode 100644index 00000000000..6eb00578951--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-003.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<meta charset="utf-8">+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1564726">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">++<style>+.multicol {+ column-count: 2;+ column-gap: 0;+ column-fill: auto;+ inline-size: 100px;+ block-size: 100px;+ background: red;+}++.container {+ border-block-start: 15px solid green;+ border-block-end: 15px solid pink;+ box-decoration-break: clone;+ block-size: 70px;+}++.child {+ block-size: calc(85px + 100px); /* 1st column + 2nd column */+ background: green;+}+</style>++<!-- The container's content-box block-size is 70px, fitting exactly into the+ first column. The child overflows the container, and get painted over the+ container's block-end border in the first column. -->++<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="container">+ <div class="child"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-007.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-007.htmlnew file mode 100644index 00000000000..1c3250d07f5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-007.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">+<meta name="assert" content="box-sizing:border-box and cloned box decorations.">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto; gap:0; width:100px; height:100px; background:red;">+ <div style="box-decoration-break:clone; border:10px solid green; box-sizing:border-box; height:200px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-009.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-009.htmlnew file mode 100644index 00000000000..08d49c100cf--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-009.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">+<meta name="assert" content="Cloned box decorations, with outline and shadow.">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/box-decoration-break-clone-009-ref.html">+<p>There should be two squares below, with a hotpink outline and a cyan "shadow".</p>+<div style="margin:20px; columns:2; gap:30px; column-fill:auto; width:230px; height:100px;">+ <div style="box-decoration-break:clone; height:200px; box-shadow:0 0 0 10px cyan; outline: 5px solid hotpink;">+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-011.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-011.htmlnew file mode 100644index 00000000000..225fd85125b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-011.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">+<meta name="assert" content="Tall monolithic content as first child.">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="overflow:clip; columns:1; column-fill:auto; gap:0; width:100px; height:100px; background:red;">+ <div style="box-decoration-break:clone; border:20px solid green;">+ <div style="contain:size; height:100px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-013.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-013.htmlnew file mode 100644index 00000000000..12ab4367caf--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-decoration-break-clone-013.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">+<meta name="assert" content="Tall monolithic content as first child, float edition.">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="overflow:clip; columns:1; column-fill:auto; gap:0; width:100px; height:100px; background:red;">+ <div style="display:flow-root; box-decoration-break:clone; border:20px solid green;">+ <div style="contain:size; float:left; width:100%; height:100px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-shadow-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-shadow-001.htmlnew file mode 100644index 00000000000..5596c332bec--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/box-shadow-001.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=269061">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/box-shadow-001-ref.html">+<p>There should be 6 identical cyan rectangles below, all with a box shadow.</p>+<style>+ #mc > div {+ margin-bottom: 50px;+ height: 50px;+ box-shadow: 20px 20px 20px;+ background: cyan;+ }+</style>+<div id="mc" style="columns:3; column-gap:50px; column-fill:auto; width:400px; height:150px; background:yellow;">+ <div></div>+ <div></div>+ <div></div>+ <div></div>+ <div></div>+ <div></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-at-end-container-edge-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-at-end-container-edge-003.htmlnew file mode 100644index 00000000000..c6f32311ed6--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-at-end-container-edge-003.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#possible-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<meta name="assert" content="The block with padding should be pushed to the second column, so that we won't have to break between the line and the padding edge">+<style>+ .child { display:inline-block; vertical-align:top; width:100%; height:90px; line-height:90px; }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:100px; orphans:1; widows:1; background:red;">+ <div style="float:left; width:100%; height:100px; background:green;"></div>+ <div style="height:10px;"></div>+ <div style="padding-bottom:10px; background:green;">+ <div class="child"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-at-end-container-edge-005.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-at-end-container-edge-005.htmlnew file mode 100644index 00000000000..c31dc3a0cb3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-at-end-container-edge-005.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-break/#end-block">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2014323">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<meta name="assert" content="A block with no available space at the column boundary should be pushed to the next column, not create a zero-height fragment.">++<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns: 2; column-gap: 0; column-fill: auto; height: 100px; width: 200px; margin-left: -100px;">+ <div style="height: 100px;"></div>+ <div style="height: 100px; outline:auto; background: green;+ outline: 5px solid green; outline-offset: -5px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-inside-avoid-min-block-size-1.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-inside-avoid-min-block-size-1.htmlnew file mode 100644index 00000000000..18d4f20aa16--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-inside-avoid-min-block-size-1.html@@ -0,0 +1,78 @@+<!DOCTYPE html>+<html>+<head>+ <title>CSS Test: break-inside:avoid min-block-size block</title>+ <link rel="author" title="Mats Palmgren" href="mailto:[email protected]">+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1711630">+ <link rel="help" href="https://drafts.csswg.org/css-break">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/break-inside-avoid-min-block-size-1-ref.html">+ <style>+html,body {+ color:black; background-color:white; font:10px/1 monospace; padding:0; margin:0;+}+.columns {+ columns: 3;+ background: grey;+ margin-block-end: 1px;+ inline-size: 500px;+}+.fill {+ column-fill: auto;+}+.short {+ block-size: 30px;+}+.tall {+ block-size: 60px;+}+.columns > div {+ break-inside: avoid;+ min-block-size: 40px;+ background: blue;+}+.columns > div:nth-child(2n) { background: lightblue; }+ </style>+</head>+<body>+<div class="columns">+ <div></div>+ <div></div>+</div>+<div class="columns">+ <div> <br> </div>+ <div> <br> </div>+</div>+<div class="columns short">+ <div></div>+ <div></div>+</div>+<div class="columns short">+ <div> <br> </div>+ <div> <br> </div>+</div>+<div class="columns tall">+ <div></div>+ <div></div>+</div>+<div class="columns tall">+ <div> <br> </div>+ <div> <br> </div>+</div>+<div class="columns fill short">+ <div></div>+ <div></div>+</div>+<div class="columns fill short">+ <div> <br> </div>+ <div> <br> </div>+</div>+<div class="columns fill tall">+ <div></div>+ <div></div>+</div>+<div class="columns fill tall">+ <div> <br> </div>+ <div> <br> </div>+</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-overflowed-block-dynamic-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-overflowed-block-dynamic-001.htmlnew file mode 100644index 00000000000..7da200a9856--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/break-overflowed-block-dynamic-001.html@@ -0,0 +1,47 @@+<!DOCTYPE html>+<!-- Any copyright is dedicated to the Public Domain.+ http://creativecommons.org/publicdomain/zero/1.0/ -->+<html>+ <meta charset="utf-8">+ <title>Test for dynamic re-pagination of a overflowed block element</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-break/#possible-breaks">+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1559961">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">++ <style>+ #multicol {+ columns: 2;+ column-fill: auto;+ column-gap: 0;+ height: 400px; /* Must be large enough so that .target doesn't break initially. */+ width: 100px;+ background: red;+ }+ #block {+ height: 25px;+ }+ #target {+ background: green;+ width: 50px;+ height: 200px; /* Expected to be broken into 2 columns after runTest() */+ }+ </style>++ <script>+ function runTest() {+ document.body.offsetHeight;+ document.getElementById("multicol").style.height = "100px";+ }+ </script>++ <body onload="runTest()">+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div id="multicol">+ <div id="block">+ <div id="target"></div>+ </div>+ </div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-block-background.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-block-background.htmlnew file mode 100644index 00000000000..590823d50d4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-block-background.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1278652">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div style="columns:5; column-gap:0; column-fill:auto; width:100px; height:100px;">+ <div style="height:200px; background:green;"></div>+ <div id="elm" style="height:300px; background:red;"></div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ elm.style.background = "green";+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-after.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-after.htmlnew file mode 100644index 00000000000..c4079b52365--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-after.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#break-between">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=948828">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; gap:0; column-fill:auto; height:150px;">+ <div id="elm" style="height:100px; background:green;"></div>+ <div style="height:100px; background:green;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.breakAfter = "column";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-after2.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-after2.htmlnew file mode 100644index 00000000000..3b397a8c0f9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-after2.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#break-between">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=948828">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; gap:0; column-fill:auto; height:100px;">+ <div id="elm" style="break-after:column; height:50px; background:green;"></div>+ <div style="height:100px; background:green;"></div>+ <div style="height:50px; background:green;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.breakAfter = "auto";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-before.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-before.htmlnew file mode 100644index 00000000000..ba61c460ea2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-before.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#break-between">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=948828">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; gap:0; column-fill:auto; height:150px;">+ <div style="height:100px; background:green;"></div>+ <div id="elm" style="height:100px; background:green;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.breakBefore = "column";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-inside.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-inside.htmlnew file mode 100644index 00000000000..c6a46fbd50a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-break-inside.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#break-within">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=948828">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; gap:0; column-fill:auto; height:150px;">+ <div style="height:100px; background:green;"></div>+ <div id="elm" style="height:100px; background:green;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.breakInside = "avoid";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-inline-color.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-inline-color.htmlnew file mode 100644index 00000000000..185a589167e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/change-inline-color.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/change-inline-color-ref.html">+ <p>The word PASS should be seen below.</p>+ <div style="columns:4; width:4em; text-align:center; column-gap:0; orphans:1; widows:1; color:white;">+ <span id="span">+ P A S S+ </span>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ span.style.color = "green";+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/class-c-breakpoint-after-float-004.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/class-c-breakpoint-after-float-004.htmlnew file mode 100644index 00000000000..9861b501287--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/class-c-breakpoint-after-float-004.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#possible-breaks">+<meta name="assert" content="Note that this test tests that there'll be *no* class C breakpoint after the float, since the flow-root sibling can fit beside the float, so that there'll be no gap to establish a class C break opportunity">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:green;">+ <div style="width:200%;">+ <div style="width:50%; height:50px;"></div>+ <div style="float:left; width:50%; height:40px;"></div>+ <div style="clear:both; width:50%; background:red;">+ <div style="float:left; width:10px; height:100px; background:green;"></div>+ <div style="display:flow-root; break-inside:avoid; width:40px; height:100px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/contain-strict-with-opacity-and-oof.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/contain-strict-with-opacity-and-oof.htmlnew file mode 100644index 00000000000..620ae15b3dc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/contain-strict-with-opacity-and-oof.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/contain-strict-with-opacity-and-oof-ref.html">+<p>There should be a (pale) green square below, and no (pale) red.</p>+<div style="columns:3; margin-top:-50px; column-fill:auto; height:200px;">+ <div style="height:50px;"></div>+ <div style="will-change:transform; contain:strict; width:100px; height:100px;">+ <div style="opacity:0.2; width:100px; height:100px; background:red;">+ <div style="position:absolute; width:100px; height:100px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/flex-container-fragmentation-008.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/flex-container-fragmentation-008.htmlnew file mode 100644index 00000000000..78c122677ef--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/flex-container-fragmentation-008.html@@ -0,0 +1,32 @@+<!DOCTYPE html>+<title>+ OOF in fragmented flex container with viewport CB.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 2;+ column-gap: 0px;+ height: 100px;+ width: 100px;+ }+ .flex {+ display: flex;+ height: 200px;+ width: 50px;+ }+ .abs {+ background: green;+ position: absolute;+ height: 100px;+ width: 100px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="flex">+ <div class="abs"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/flex-container-fragmentation-009.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/flex-container-fragmentation-009.htmlnew file mode 100644index 00000000000..354b38d63fe--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/flex-container-fragmentation-009.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<title>+ OOF static pos in fragmented flex container with multicol CB.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 2;+ column-gap: 0px;+ height: 100px;+ width: 100px;+ position: relative;+ }+ .flex {+ display: flex;+ height: 200px;+ width: 50px;+ }+ .abs {+ background: green;+ position: absolute;+ height: 100px;+ width: 100px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="flex">+ <div class="abs"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/flex-item-content-overflow-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/flex-item-content-overflow-003.htmlnew file mode 100644index 00000000000..bd8ba15a35f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/flex-item-content-overflow-003.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1417976">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto;">+ <div style="display:flex;">+ <div style="width:100px; max-height:50px;">+ <div style="height:50px; background:green;"></div>+ <div style="height:50px; background:red;"></div>+ </div>+ </div>+ <div style="position:relative; width:100px; height:50px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/increase-fragmentainer-size-flex-item-trailing-margin.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/increase-fragmentainer-size-flex-item-trailing-margin.htmlnew file mode 100644index 00000000000..52a5116bbd7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/increase-fragmentainer-size-flex-item-trailing-margin.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395408">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1399449">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div id="mc" style="columns:1; width:100px; column-fill:auto; height:90px; background:red;">+ <div style="height:40px; background:green;"></div>+ <div style="display:flex; background:green;">+ <div style="margin-bottom:10px; height:50px; width:100px;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ mc.style.height = "100px";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/monolithic-overflow-001.tentative.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/monolithic-overflow-001.tentative.htmlnew file mode 100644index 00000000000..3ef73950224--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/monolithic-overflow-001.tentative.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1425077">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1; column-fill:auto; height:60px;">+ <div style="display:flex; flex-flow:column; height:100px; background:green;">+ <div style="contain:size; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/monolithic-overflow-002.tentative.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/monolithic-overflow-002.tentative.htmlnew file mode 100644index 00000000000..4cec70a42a3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/monolithic-overflow-002.tentative.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1425077">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1; column-fill:auto; height:60px;">+ <div style="display:flex; flex-flow:column; background:green;">+ <div style="contain:size; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-041.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-041.htmlnew file mode 100644index 00000000000..22982059c70--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-041.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<title>+ Multi-line column flex fragmentation: column-reverse.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-041-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-direction: column-reverse; flex-wrap: wrap; height: 200px;">+ <div style="height: 50px; width: 25px; background: orange;"></div>+ <div style="height: 50px; width: 25px; background: blue;"></div>+ <div style="height: 50px; width: 25px; background: purple;"></div>+ <div style="height: 50px; width: 25px; background: yellow;"></div>++ <div style="height: 50px; width: 25px; background: pink;"></div>+ <div style="height: 50px; width: 25px; background: maroon;"></div>+ <div style="height: 50px; width: 25px; background: magenta;"></div>+ <div style="height: 50px; width: 25px; background: mediumaquamarine;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-042.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-042.htmlnew file mode 100644index 00000000000..ca4bc8178ca--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-042.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<title>+ Multi-line column flex fragmentation: wrap-reverse.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-042-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-direction: column; flex-wrap: wrap-reverse; height: 200px;">+ <div style="height: 50px; width: 25px; background: orange;"></div>+ <div style="height: 50px; width: 25px; background: blue;"></div>+ <div style="height: 50px; width: 25px; background: purple;"></div>+ <div style="height: 50px; width: 25px; background: yellow;"></div>++ <div style="height: 50px; width: 25px; background: pink;"></div>+ <div style="height: 50px; width: 25px; background: maroon;"></div>+ <div style="height: 50px; width: 25px; background: magenta;"></div>+ <div style="height: 50px; width: 25px; background: mediumaquamarine;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-043.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-043.htmlnew file mode 100644index 00000000000..69d16b5ae04--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-043.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<title>+ Multi-line column flex fragmentation: wrap-reverse and column-reverse.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-043-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-direction: column-reverse; flex-wrap: wrap-reverse; height: 200px;">+ <div style="height: 50px; width: 25px; background: orange;"></div>+ <div style="height: 50px; width: 25px; background: blue;"></div>+ <div style="height: 50px; width: 25px; background: purple;"></div>+ <div style="height: 50px; width: 25px; background: yellow;"></div>++ <div style="height: 50px; width: 25px; background: pink;"></div>+ <div style="height: 50px; width: 25px; background: maroon;"></div>+ <div style="height: 50px; width: 25px; background: magenta;"></div>+ <div style="height: 50px; width: 25px; background: mediumaquamarine;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-044.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-044.htmlnew file mode 100644index 00000000000..1ced884831b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-044.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<title>+ Multi-line column flex fragmentation: wrap-reverse and column-reverse with break-rules.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-044-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="height: 50px; width: 50px; background: green;"></div>+ <div style="display: flex; flex-direction: column-reverse; flex-wrap: wrap-reverse; height: 200px;">+ <div style="height: 50px; width: 25px; background: orange;"></div>+ <div style="height: 50px; width: 25px; background: blue; break-before: avoid;"></div>+ <div style="height: 50px; width: 25px; background: purple;"></div>+ <div style="height: 50px; width: 25px; background: yellow;"></div>++ <div style="height: 50px; width: 25px; background: pink;"></div>+ <div style="height: 50px; width: 25px; background: maroon; break-before: avoid;"></div>+ <div style="height: 50px; width: 25px; background: magenta;"></div>+ <div style="height: 50px; width: 25px; background: mediumaquamarine; break-before: column;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-050.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-050.htmlnew file mode 100644index 00000000000..59a03dba015--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-column-flex-fragmentation-050.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<title>+ Tests that the margin-bottom of the last flex item is taken into account+ when fragmenting.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; background: red;">+ <div style="column-count: 1; width: 100px;">+ <div style="display: flex; flex-direction: column; flex-wrap: wrap; height: 50px;">+ <div style="margin-bottom: 50px;">+ <div style="height: 25px; width: 50px; background: green;"></div>+ </div>+ <div style="margin-bottom: 50px;">+ <div style="height: 25px; width: 50px; background: green;"></div>+ </div>+ </div>+ <div style="margin-top: -25px; height: 75px; width: 100px; background: green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-021.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-021.htmlnew file mode 100644index 00000000000..4da1a6d8b3c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-021.html@@ -0,0 +1,25 @@+<!DOCTYPE html>+<title>+ Multi-line row flex fragmentation with break-inside: avoid.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<style>+ #flex {+ display: flex;+ flex-wrap: wrap;+ }+ #flex > div {+ background: green;+ width: 50px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; column-fill: auto; position: relative; background: red;">+ <div style="width: 50px; height: 30px; background: green;"></div>+ <div style="position: absolute; height: 70px; width: 50px; background: green;"></div>+ <div id="flex">+ <div style="height: 80px; break-inside: avoid;"></div>+ <div style="height: 20px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-025.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-025.htmlnew file mode 100644index 00000000000..90566534a25--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-025.html@@ -0,0 +1,25 @@+<!DOCTYPE html>+<title>+ Multi-line row flex fragmentation: break-before values on the first row+ are propagated to the flex container.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<style>+ #flex {+ display: flex;+ flex-wrap: wrap;+ background: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; column-fill: auto; position: relative; background: red;">+ <div style="height: 50px; width: 50px; background: green;"></div>+ <div style="position: absolute; height: 50px; width: 50px; background: green;"></div>+ <div id="flex">+ <div>+ <div style="height: 50px; width: 50px; break-before: column;"></div>+ </div>+ <div style="height: 50px; width: 50px; break-before: avoid;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-047.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-047.htmlnew file mode 100644index 00000000000..ee7d08f1a56--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-047.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<title>+ Multi-line row flex fragmentation: row-reverse.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-047-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-flow: row-reverse; flex-wrap: wrap; height: 200px;">+ <div style="height: 100px; width: 25px; background: orange;"></div>+ <div style="height: 100px; width: 25px; background: blue;"></div>+ <div style="height: 100px; width: 25px; background: purple;"></div>+ <div style="height: 100px; width: 25px; background: yellow;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-048.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-048.htmlnew file mode 100644index 00000000000..1a25f9d553f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-048.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<title>+ Multi-line row flex fragmentation: wrap-reverse.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-048-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-wrap: wrap-reverse; height: 200px;">+ <div style="height: 100px; width: 25px; background: orange;"></div>+ <div style="height: 100px; width: 25px; background: blue;"></div>+ <div style="height: 100px; width: 25px; background: purple;"></div>+ <div style="height: 100px; width: 25px; background: yellow;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-049.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-049.htmlnew file mode 100644index 00000000000..40aa1b85577--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-049.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<title>+ Multi-line row flex fragmentation: wrap-reverse and row-reverse.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-049-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-flow: row-reverse; flex-wrap: wrap-reverse; height: 200px;">+ <div style="height: 100px; width: 25px; background: orange;"></div>+ <div style="height: 100px; width: 25px; background: blue;"></div>+ <div style="height: 100px; width: 25px; background: purple;"></div>+ <div style="height: 100px; width: 25px; background: yellow;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-050.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-050.htmlnew file mode 100644index 00000000000..701d3d756f4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-050.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<title>+ Multi-line row flex fragmentation: wrap-reverse and row-reverse with break-rules.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-050-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="height: 50px; width: 50px; background: green;"></div>+ <div style="display: flex; flex-flow: row-reverse; flex-wrap: wrap-reverse; height: 200px;">+ <div style="height: 100px; width: 25px; background: orange;"></div>+ <div style="height: 100px; width: 25px; background: blue; break-before: avoid;"></div>++ <div style="height: 50px; width: 25px; background: pink;"></div>+ <div style="height: 50px; width: 25px; background: maroon;"></div>++ <div style="height: 50px; width: 25px; background: purple; break-before: column;"></div>+ <div style="height: 50px; width: 25px; background: yellow;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-061.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-061.htmlnew file mode 100644index 00000000000..e2c94416419--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/multi-line-row-flex-fragmentation-061.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<title>+ Tests that the margin-bottom of the last flex item is taken into account+ when fragmenting.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; background: red;">+ <div style="column-count: 1; width: 100px;">+ <div style="display: flex; flex-wrap: wrap; width: 100px;">+ <div style="height: 25px; width: 100px; background: green;"></div>+ <div style="margin-bottom: 20px;">+ <div style="height: 25px; width: 50px; background: green;"></div>+ </div>+ <div style="margin-bottom: 10px;">+ <div style="height: 25px; width: 50px; background: green;"></div>+ </div>+ </div>+ <div style="margin-top: -20px; height: 50px; width: 100px; background: green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-040.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-040.htmlnew file mode 100644index 00000000000..159e1dafe24--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-040.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<title>+ Single-line column flex fragmentation: column-reverse.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-040-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-flow: column-reverse; height: 200px;">+ <div style="height: 50px; width: 50px; background: orange;"></div>+ <div style="height: 50px; width: 50px; background: blue;"></div>+ <div style="height: 50px; width: 50px; background: purple;"></div>+ <div style="height: 50px; width: 50px; background: yellow;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-046.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-046.htmlnew file mode 100644index 00000000000..2124325f033--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-046.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="margin-left:-100px; columns:2; height:200px; width:200px; column-gap:0; column-fill:auto;">+ <div style="height:199px;"></div>+ <div style="display:flex; flex-direction:column;">+ <div style="columns:2; width:100%; column-gap:0; background:red; line-height:0;">+ <div style="display:inline-block; width:100%; height:20px; background:green;"></div>+ <div style="height:180px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-053.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-053.htmlnew file mode 100644index 00000000000..1e7d72ed6f9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-053.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<title>+ Tests that a flex-item that can't shrink and has a definite flex-basis, an+ indefinite height, and a non-auto min-height *doesn't* expand.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;">+ <div style="display: flex; flex-direction: column; height: 100px;">+ <div style="background: green; flex-basis: 10px; min-height: 10px;">+ <div style="contain: size; width: 50px; height: 50px;"></div>+ <div style="contain: size; width: 50px; height: 100px;"></div>+ </div>+ <div style="background: green; width: 50px; height: 190px;"></div>+ </div>+ <div style="background: green; width: 50px; height: 100px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-056.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-056.htmlnew file mode 100644index 00000000000..df509623fdf--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-056.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<title>+ Tests that the margin-bottom of the last flex item is taken into account+ when fragmenting.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; background: red;">+ <div style="column-count: 1; width: 100px;">+ <div style="display: flex; flex-direction: column;">+ <div style="margin-bottom: 20px;">+ <div style="height: 50px; width: 100px; background: green;"></div>+ </div>+ </div>+ <div style="margin-top: -20px; height: 50px; width: 100px; background: green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-058.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-058.htmlnew file mode 100644index 00000000000..edadf0a33d9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-column-flex-fragmentation-058.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<title>+ Tests that the margin-bottom of the last flex item is taken into account+ when fragmenting.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="column-count: 2; height: 100px; width: 100px; column-gap: 0; column-fill: auto; background: red;">+ <div style="display: flex; flex-direction: column; background: green;">+ <div style="height: 50px; width: 50px; margin-bottom: 20px;">+ <div style="height: 200px; width: 50px;"></div>+ </div>+ </div>+ <div style="height: 130px; width: 50px; background: green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-008.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-008.htmlnew file mode 100644index 00000000000..8b2db66ede1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-008.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<title>+ Tests that a flex-item with a fixed block-size container *doesn't* grow due to fragmentation+ if stretched.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;">+ <div style="display: flex; height: 100px;">+ <div style="line-height: 0; background: green;">+ <div style="display: inline-block; width: 50px; height: 50px;"></div>+ <div style="display: inline-block; width: 50px; height: 100px;"></div>+ </div>+ </div>+ <div style="background: green; width: 50px; height: 100px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-014.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-014.htmlnew file mode 100644index 00000000000..017a4932799--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-014.html@@ -0,0 +1,24 @@+<!DOCTYPE html>+<title>+ Single-line row flex fragmentation with break-inside: avoid.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<style>+ #flex {+ display: flex;+ }+ #flex > div {+ background: green;+ width: 25px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; column-fill: auto; position: relative; background: red;">+ <div style="height: 20px; background: green;"></div>+ <div style="position: absolute; height: 80px; width: 50%; background: green;"></div>+ <div id="flex">+ <div style="height: 100px;"></div>+ <div style="break-inside: avoid;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-015.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-015.htmlnew file mode 100644index 00000000000..1496e61b2c3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-015.html@@ -0,0 +1,23 @@+<!DOCTYPE html>+<title>+ Single-line row flex fragmentation: break-before values on the first row+ are propagated to the flex container.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<style>+ #flex {+ display: flex;+ background: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; column-fill: auto; position: relative; background: red;">+ <div style="height: 50px; width: 50px; background: green;"></div>+ <div style="position: absolute; height: 50px; width: 50px; background: green;"></div>+ <div id="flex">+ <div>+ <div style="height: 100px; width: 50px; break-before: column;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-021.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-021.htmlnew file mode 100644index 00000000000..07914cf6646--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-021.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<title>+ Single-line row flex fragmentation: If the fragmentainer is out of space+ but the flexbox and flex row have zero block-size, not additional+ fragmentainers should be created to hold this content.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<style>+ #flex {+ display: flex;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 1; column-rule: 20px solid red; column-fill: auto;">+ <div style="height: 100px; width: 100px; background: green;"></div>+ <div id="flex">+ <div></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-022.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-022.htmlnew file mode 100644index 00000000000..db1c2e1b9e4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-022.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<title>+ Single-line row flex fragmentation: If the fragmentainer is out of space+ but a flex row should break before if it has content.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<style>+ #flex {+ display: flex;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; column-fill: auto; background: red;">+ <div style="height: 100px; width: 100px; background: green;"></div>+ <div id="flex">+ <div style="height: 100px; width: 100px; background: green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-027.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-027.htmlnew file mode 100644index 00000000000..faab8d36d5a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-027.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<title>+ Single-line row flex fragmentation: row-reverse.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-027-ref.html">+<div style="width: 100px; height: 100px; columns: 2; column-fill: auto; column-gap: 0;">+ <div style="display: flex; flex-flow: row-reverse; height: 200px;">+ <div style="height: 200px; width: 10px; background: orange;"></div>+ <div style="height: 200px; width: 10px; background: blue;"></div>+ <div style="height: 200px; width: 10px; background: purple;"></div>+ <div style="height: 200px; width: 10px; background: yellow;"></div>+ <div style="height: 200px; width: 10px; background: pink;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-032.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-032.htmlnew file mode 100644index 00000000000..5fb90f61bca--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-032.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="margin-left:-100px; columns:2; height:200px; width:200px; column-gap:0; column-fill:auto;">+ <div style="height:199px;"></div>+ <div style="display:flex;">+ <div style="columns:2; width:100%; column-gap:0; background:red; line-height:0;">+ <div style="display:inline-block; width:100%; height:20px; background:green;"></div>+ <div style="height:180px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-037.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-037.htmlnew file mode 100644index 00000000000..88ec5c5e25c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-037.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<title>+ Single-line row flex fragmentation: the container gets pushed to next fragmentainer+ if content doesn't fit in the current fragmentainer.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="position: relative; width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;">+ <div style="background: green; width: 50px; height: 50px;"></div>+ <div style="position: absolute; background: green; width: 50px; height: 50px;"></div>+ <div style="display: flex; width: 50px; background: green;">+ <div style="height: 100px; width: 50px; contain: size;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-038.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-038.htmlnew file mode 100644index 00000000000..1382a8d3aca--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-038.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<title>+ Tests that the margin-bottom of the last flex item is taken into account+ when fragmenting.+</title>+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; background: red;">+ <div style="column-count: 1; width: 100px;">+ <div style="display: flex;">+ <div style="margin-bottom: 20px;">+ <div style="height: 50px; width: 100px; background: green;"></div>+ </div>+ </div>+ <div style="margin-top: -20px; height: 50px; width: 100px; background: green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-049.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-049.htmlnew file mode 100644index 00000000000..ebd62ec5017--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-049.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Flexbox row fragmentation and item that stretches in the block axis.</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="help" href="https://issues.chromium.org/issues/40943159">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square-only.html">++<p>Test passes if there is a filled green square.</p>+<div style="columns:1; height:300px; column-fill:auto;">+ <div style="display:flex; height:100px;">+ <div style="width:100px; background:green;"></div>+ <div style="width:100px; height:200px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-050.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-050.htmlnew file mode 100644index 00000000000..b8c9d5470ce--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/flexbox/single-line-row-flex-fragmentation-050.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>Flexbox row fragmentation and item that stretches in the block axis.</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">+<link rel="help" href="https://issues.chromium.org/issues/40943159">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/flexbox/../../reference/ref-filled-green-100px-square-only.html">++<p>Test passes if there is a filled green square.</p>+<div style="columns:1; height:300px; column-fill:auto;">+ <div style="display:flex; height:50px; flex-wrap: wrap;">+ <div style="width:100px; background:green;"></div>+ <div style="width:100px; height:100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/float-009.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/float-009.htmlnew file mode 100644index 00000000000..590f5a6937e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/float-009.html@@ -0,0 +1,23 @@+<!DOCTYPE html>+<meta charset="utf-8">+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://drafts.csswg.org/css-break/#possible-breaks">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1441048">+<link rel="stylesheet" href="../../fonts/ahem.css">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/float-009-ref.html">++<style>+.multicol {+ column-count: 2;+ column-gap: 0;+ width: 200px;+ font: 50px/1 Ahem;+}+</style>++<div class="multicol">+ <div>A<div style="float:left">X</div></div>+ <div>B<div style="float:left">X</div></div>+ <div>C<div style="float:left">X</div></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/forced-break-before-new-fc-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/forced-break-before-new-fc-001.htmlnew file mode 100644index 00000000000..7ed13bf966e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/forced-break-before-new-fc-001.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<title>Forced break before new formatting context root.</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/388290814">+<link rel="help" href="https://drafts.csswg.org/css-break-3/#break-margins">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="position:relative; columns:2; column-fill:auto; gap:0; width:100px; height:100px; background:red;">+ <div style="break-after:column; height:50px; background:green;"></div>+ <div style="display:flow-root; margin-top:30px; height:70px; background:green;"></div>+ <div style="position:absolute; top:50px; left:0; width:50px; height:50px; background:green;"></div>+ <div style="position:absolute; top:0; left:50px; width:50px; height:30px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/forced-break-before-new-fc-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/forced-break-before-new-fc-002.htmlnew file mode 100644index 00000000000..7571ee943a0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/forced-break-before-new-fc-002.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<title>Forced break before new formatting context root.</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/388290814">+<link rel="help" href="https://drafts.csswg.org/css-break-3/#break-margins">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="position:relative; columns:2; column-fill:auto; gap:0; width:100px; height:100px; background:red;">+ <div style="break-after:column; height:90px; background:green;"></div>+ <div style="display:flow-root; margin-top:30px; height:70px; background:green;"></div>+ <div style="position:absolute; top:90px; left:0; width:50px; height:10px; background:green;"></div>+ <div style="position:absolute; top:0; left:50px; width:50px; height:30px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/forced-break-before-new-fc-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/forced-break-before-new-fc-003.htmlnew file mode 100644index 00000000000..7c90fd47838--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/forced-break-before-new-fc-003.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<title>Forced break before new formatting context root.</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/388290814">+<link rel="help" href="https://drafts.csswg.org/css-break-3/#break-margins">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="position:relative; columns:2; column-fill:auto; gap:0; width:100px; height:100px; background:red;">+ <div style="height:90px; background:green;"></div>+ <div style="break-before:column; display:flow-root; margin-top:30px; height:70px; background:green;"></div>+ <div style="position:absolute; top:90px; left:0; width:50px; height:10px; background:green;"></div>+ <div style="position:absolute; top:0; left:50px; width:50px; height:30px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/form-control.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/form-control.htmlnew file mode 100644index 00000000000..72eab57e30a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/form-control.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#possible-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<meta name="assert" content="Replaced content should be considered to be monolithic">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:3; column-gap:0;">+ <input style="display:block; margin:0; border:none; padding:0; width:100px; height:100px; background:green;">+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-container-fragmentation-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-container-fragmentation-003.htmlnew file mode 100644index 00000000000..e3d293a72df--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-container-fragmentation-003.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-grid-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/grid/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;">+ <div style="height: 50px;">+ <div style="height: 100px; background: green;"></div>+ </div>+ <div style="display: grid; background: green; height: 100px; break-inside: avoid;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-item-fragmentation-041.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-item-fragmentation-041.htmlnew file mode 100644index 00000000000..e09ff180f5d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-item-fragmentation-041.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-grid-1/#pagination">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/grid/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="margin-left:-100px; columns:2; height:200px; width:200px; column-gap:0; column-fill:auto;">+ <div style="height:199px;"></div>+ <div style="display: grid;">+ <div style="columns:2; width:100%; column-gap:0; background:red; line-height: 0;">+ <div style="display: inline-block; width: 100%; height: 20px; background: green;"></div>+ <div style="height:180px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-item-overflow-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-item-overflow-001.htmlnew file mode 100644index 00000000000..0af8d3d7a5c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-item-overflow-001.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1417976">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/grid/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto;">+ <div style="display:grid;">+ <div style="width:100px; max-height:50px;">+ <div style="height:50px; background:green;"></div>+ <div style="height:50px; background:red;"></div>+ </div>+ </div>+ <div style="position:relative; width:100px; height:50px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-multi-lane-fragmentation-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-multi-lane-fragmentation-003.htmlnew file mode 100644index 00000000000..f685102420f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-multi-lane-fragmentation-003.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<title>+ Multi-lane column grid-lanes fragmentation intrinsic block size.+</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/grid-lanes/../../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 5;+ column-fill: auto;+ column-gap: 0px;+ height: 100px;+ width: 100px;+ }+ .grid-lanes {+ background: green;+ display: grid-lanes;+ grid-template-columns: repeat(2, 10px);+ width: 20px;+ }+ .grid-lanes > div {+ width: 10px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="grid-lanes">+ <div style="grid-column: 1; height: 50px;"></div>+ <div style="grid-column: 1; height: 150px;"></div>+ <div style="grid-column: 1; height: 300px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-single-lane-fragmentation-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-single-lane-fragmentation-001.htmlnew file mode 100644index 00000000000..5cc4b5743d0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-single-lane-fragmentation-001.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<title>+ Simple column grid-lanes fragmentation.+</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/grid-lanes/../../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 4;+ column-fill: auto;+ column-gap: 0px;+ height: 100px;+ width: 100px;+ }+ .grid-lanes {+ display: grid-lanes;+ grid-template-columns: 25px;+ height: 400px;+ width: 25px;+ }+ .grid-lanes > div {+ background: green;+ width: 25px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="grid-lanes">+ <div style="height: 50px;"></div>+ <div style="height: 350px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-single-lane-fragmentation-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-single-lane-fragmentation-003.htmlnew file mode 100644index 00000000000..77f38ef0e71--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-single-lane-fragmentation-003.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<title>+ Column grid-lanes fragmentation intrinsic block size.+</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/grid-lanes/../../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 4;+ column-fill: auto;+ column-gap: 0px;+ height: 100px;+ width: 100px;+ }+ .grid-lanes {+ background: green;+ display: grid-lanes;+ grid-template-columns: 25px;+ width: 25px;+ }+ .grid-lanes > div {+ width: 25px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="grid-lanes">+ <div style="height: 50px;"></div>+ <div style="height: 350px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-single-lane-fragmentation-004.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-single-lane-fragmentation-004.htmlnew file mode 100644index 00000000000..7b84431ced1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/column-single-lane-fragmentation-004.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<title>+ Column grid-lanes fragmentation with item offsets.+</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/grid-lanes/../../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 4;+ column-fill: auto;+ column-gap: 0px;+ height: 100px;+ width: 100px;+ }+ .grid-lanes {+ display: grid-lanes;+ grid-template-columns: 25px;+ width: 25px;+ }+ .grid-lanes > div {+ background: green;+ width: 25px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="grid-lanes">+ <div style="height: 150px;"></div>+ <div style="height: 150px;"></div>+ <div style="height: 100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-001.htmlnew file mode 100644index 00000000000..85d3dace24f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-001.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<title>+ Grid-lanes container fragmentation (with no items).+</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/grid-lanes/../../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 4;+ column-gap: 0px;+ height: 100px;+ width: 100px;+ }+ .grid-lanes {+ background: green;+ border: 3px solid green;+ display: grid-lanes;+ padding: 5px;+ width: 9px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="grid-lanes" style="height: 134px;"></div>+ <div class="grid-lanes" style="height: 234px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-002.htmlnew file mode 100644index 00000000000..998037e9f0b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-002.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<title>+ Grid-lanes container fragmentation with break-inside: avoid.+</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/grid-lanes/../../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 4;+ column-gap: 0px;+ height: 100px;+ position: relative;+ width: 100px;+ }+ .grid-lanes {+ background: green;+ break-inside: avoid;+ display: grid-lanes;+ width: 25px;+ }+ .abs {+ background: green;+ height: 50px;+ position: absolute;+ width: 25px;+ top: 50px;+ left: 50px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="grid-lanes" style="height: 250px;"></div>+ <div class="grid-lanes" style="height: 100px;"></div>+ <div class="abs"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-003.htmlnew file mode 100644index 00000000000..1dd5812f43e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-003.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<title>+ Grid-lanes container fragmentation with break-before: avoid.+</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/grid-lanes/../../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 4;+ column-gap: 0px;+ height: 100px;+ position: relative;+ width: 100px;+ }+ .grid-lanes {+ background: green;+ display: grid-lanes;+ width: 25px;+ }+ .abs {+ height: 50px;+ position: absolute;+ width: 25px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="grid-lanes" style="height: 50px;"></div>+ <div class="grid-lanes" style="height: 50px;"></div>+ <div class="grid-lanes" style="height: 300px; break-before: avoid;"></div>+ <div class="abs" style="background: green; top: 50px; left: 0px;"></div>+ <div class="abs" style="background: white; top: 0px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-004.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-004.htmlnew file mode 100644index 00000000000..8736cfe9ca3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-004.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<title>+ Grid-lanes container fragmentation with break-after: avoid.+</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/grid-lanes/../../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 4;+ column-gap: 0px;+ height: 100px;+ position: relative;+ width: 100px;+ }+ .grid-lanes {+ background: green;+ display: grid-lanes;+ width: 25px;+ }+ .abs {+ height: 50px;+ position: absolute;+ width: 25px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="grid-lanes" style="height: 50px;"></div>+ <div class="grid-lanes" style="height: 50px; break-after: avoid;"></div>+ <div class="grid-lanes" style="height: 300px;"></div>+ <div class="abs" style="background: green; top: 50px; left: 0px;"></div>+ <div class="abs" style="background: white; top: 0px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-005.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-005.htmlnew file mode 100644index 00000000000..fa34323e3dc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/grid-lanes/grid-lanes-container-fragmentation-005.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<title>+ Grid-lanes container fragmentation with break-before: column.+</title>+<link rel="author" title="Alison Maher" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/grid-lanes/../../../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ background: red;+ column-count: 4;+ column-gap: 0px;+ height: 100px;+ position: relative;+ width: 100px;+ }+ .grid-lanes {+ background: green;+ display: grid-lanes;+ width: 25px;+ }+ .abs {+ height: 50px;+ position: absolute;+ width: 25px;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="grid-lanes" style="height: 50px;"></div>+ <div class="grid-lanes" style="height: 50px; break-before: column;"></div>+ <div class="grid-lanes" style="height: 300px;"></div>+ <div class="abs" style="background: green; top: 50px; left: 0px;"></div>+ <div class="abs" style="background: white; top: 0px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/monolithic-overflow-001.tentative.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/monolithic-overflow-001.tentative.htmlnew file mode 100644index 00000000000..2c2890099b1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/monolithic-overflow-001.tentative.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1425077">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/grid/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1; column-fill:auto; height:60px;">+ <div style="display:grid; height:100px; background:green;">+ <div style="contain:size; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/monolithic-overflow-002.tentative.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/monolithic-overflow-002.tentative.htmlnew file mode 100644index 00000000000..2f348d9d749--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/monolithic-overflow-002.tentative.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1425077">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/grid/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1; column-fill:auto; height:60px;">+ <div style="display:grid; background:green;">+ <div style="contain:size; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/subgrid/subgrid-container-fragmentation-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/subgrid/subgrid-container-fragmentation-003.htmlnew file mode 100644index 00000000000..9fea7abbdb8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/grid/subgrid/subgrid-container-fragmentation-003.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-grid-2/#pagination">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/grid/subgrid/../../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0; background: red;">+ <div style="height: 50px;">+ <div style="height: 100px; background: green;"></div>+ </div>+ <div style="display: grid; height: 100px;">+ <div style="display: grid; grid-template: subgrid / subgrid; background: green; break-inside: avoid;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/increase-fragmentainer-size-tall-border.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/increase-fragmentainer-size-tall-border.htmlnew file mode 100644index 00000000000..268dfa45ef3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/increase-fragmentainer-size-tall-border.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395408">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div id="mc" style="columns:1; width:100px; column-fill:auto; height:60px; background:red;">+ <div style="height:50px; background:green;"></div>+ <div style="display:flow-root; border-top:50px solid green;"></div>+</div>+<script>+ document.body.offsetTop;+ mc.style.height = "100px";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/ink-overflow-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/ink-overflow-002.htmlnew file mode 100644index 00000000000..1c0732cdbd3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/ink-overflow-002.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<link rel="author" title="Mats Palmgren" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<style>+.col {+ column-width: 100px;+ column-rule: 100px solid red;+ height: 100px;+ column-fill: auto;+ gap: 0;+ overflow: hidden;+}++.col > div {+ display: flow-root;+ width: 100px;+ height: 100px;+ background: green;+}++.col > div > div {+ width: 10px;+ height: 10px;+ margin-top: 80px;+ margin-left: 50px;+ outline: 30px solid green;+ box-shadow: 0 30px 0 30px green;+}+</style>+<body>+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div class="col"><div><div></div></div></div>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-content-with-forced-break-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-content-with-forced-break-002.htmlnew file mode 100644index 00000000000..de8a52b3cf3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-content-with-forced-break-002.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://www.w3.org/TR/css-break-3/#monolithic">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square-only.html">+<p>Test passes if there is a filled green square.</p>+<div style="columns:2; column-fill:auto; gap:0; width:100px; height:200px;">+ <div style="contain:size; height:100px; width:50px; break-after:column;">+ <div style="height:100px; background:green;"></div>+ </div>+ <div style="width:50px; height:100px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-content-with-forced-break-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-content-with-forced-break-003.htmlnew file mode 100644index 00000000000..b8c9e1874aa--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-content-with-forced-break-003.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://www.w3.org/TR/css-break-3/#monolithic">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square-only.html">+<p>Test passes if there is a filled green square.</p>+<div style="columns:2; column-fill:auto; gap:0; width:100px; height:200px;">+ <div style="width:50px; height:100px; background:green;"></div>+ <div>+ <div style="contain:size; break-before:column; height:100px; width:50px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-overflow-001.tentative.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-overflow-001.tentative.htmlnew file mode 100644index 00000000000..e2365aef7de--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-overflow-001.tentative.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1425077">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1; column-fill:auto; height:60px;">+ <div style="height:100px; background:green;">+ <div style="contain:size; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-overflow-002.tentative.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-overflow-002.tentative.htmlnew file mode 100644index 00000000000..6adf53bf3f4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-overflow-002.tentative.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1425077">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1; column-fill:auto; height:60px;">+ <div style="background:green;">+ <div style="contain:size; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-with-overflow.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-with-overflow.htmlnew file mode 100644index 00000000000..94503b48abb--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/monolithic-with-overflow.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#monolithic">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="inline-size:100px; block-size:100px; background:red;">+ <div style="columns:2; column-gap:0; column-fill:auto; block-size:50px;">+ <div style="block-size:50px; background:green;"></div>+ <div style="contain:size; block-size:0;">+ <div style="block-size:25px; background:green;"></div>+ <div style="block-size:25px; background:green;"></div>+ </div>+ <div style="contain:size; block-size:100px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/orphans-in-parallel-flow.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/orphans-in-parallel-flow.htmlnew file mode 100644index 00000000000..ae3a0c81990--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/orphans-in-parallel-flow.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#parallel-flows">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; orphans:2; widows:2; background:red;">+ <div style="columns:2; column-fill:auto; column-gap:0; height:130px;">+ <div style="height:100px; background:green;"></div>+ <div style="height:100px; background:green;">+ <div style="line-height:20px; height:10px;">+ <br>+ <br>+ </div>+ <div style="height:10px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-005.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-005.htmlnew file mode 100644index 00000000000..2a177c6f8b9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-005.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<link rel="help" href="https://www.w3.org/TR/css-break-3/#breaking-controls">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<!-- break-after: column does not apply to absolute positioned elements. -->+<style>+ #multicol {+ column-count: 2;+ column-fill: auto;+ column-gap: 10px;+ height: 100px;+ width: 200px;+ }+ .rel {+ position: relative;+ height: 10px;+ width: 100px;+ background: green;+ }+ .abs {+ position: absolute;+ width: 40px;+ height: 30px;+ break-after: column;+ }+ .content {+ width: 100px;+ height: 45px;+ background: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div id="multicol">+ <div class="content"></div>+ <div class="rel">+ <div class="abs"></div>+ </div>+ <div class="content"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-014.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-014.htmlnew file mode 100644index 00000000000..d2c36b3d0df--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-014.html@@ -0,0 +1,32 @@+<!DOCTYPE html>+<link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking">+<!-- This test requires a 300px tall multicolumn to reproduce the issue. -->+<link rel="match" href="../../../../expected/wpt-import/css/css-break/out-of-flow-in-multicolumn-014-ref.html">+<!-- Fragmented OOF element with block-size percentage resolution and overflow. -->+<style>+ #multicol {+ columns: 2;+ width: 300px;+ height: 300px;+ column-fill: auto;+ column-gap: 0px;+ background-color: red;+ }+ .rel {+ position: relative;+ }+ .abs {+ position: absolute;+ top: 0px;+ width: 150px;+ height: 150px;+ background: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div id="multicol">+ <div style="width: 150px; height: 450px; background-color: green;"></div>+ <div class="rel">+ <div class="abs"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-026.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-026.htmlnew file mode 100644index 00000000000..36c9db56eb0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-026.html@@ -0,0 +1,36 @@+<!DOCTYPE html>+<title>+ Nested fixedpos in a multicol.+</title>+<link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ column-count: 2;+ column-fill: auto;+ column-gap: 0px;+ height: 100px;+ width: 100px;+ background: red;+ }+ .rel {+ position: relative;+ }+ .abs {+ position: absolute;+ }+ .fixed {+ position: fixed;+ height: 100px;+ width: 100px;+ background-color: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div class="rel">+ <div class="abs">+ <div class="fixed"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-076.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-076.htmlnew file mode 100644index 00000000000..eb14d4b9182--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-076.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1265759">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="position:relative;">+ <div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:100px; background:red;">+ <div id="elm" style="position:absolute; width:50px; height:200px; background:green;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.position = "static";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-083.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-083.htmlnew file mode 100644index 00000000000..257926a321c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-083.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1305067">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; width:100px; height:100px; background:red;">+ <div style="position:absolute;">+ <div style="columns:2;">+ <!-- This one doesn't participate in any of the fragmentation contexts: -->+ <div style="position:absolute; width:100px; height:100px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-084.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-084.htmlnew file mode 100644index 00000000000..9c03bf88d67--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-084.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1314234">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1;">+ <div style="height:50px; background:green;"></div>+ <div style="position:relative; height:13px;">+ <div style="position:absolute; width:100%; height:50px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-091.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-091.htmlnew file mode 100644index 00000000000..79d4f7a222a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-091.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<title>+ Nested fixedpos in a where the multicol is the containing block.+</title>+<link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ column-count: 2;+ column-fill: auto;+ column-gap: 0px;+ height: 100px;+ width: 100px;+ transform: translateX(0);+ }+ .rel {+ position: relative;+ }+ .abs {+ position: absolute;+ }+ .fixed {+ position: fixed;+ height: 100%;+ width: 100%;+ top: -100px;+ background:green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="height: 100px; width: 100px; background: red;"></div>+<div class="multicol">+ <div class="rel">+ <div class="abs">+ <div class="fixed"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-092.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-092.htmlnew file mode 100644index 00000000000..b0ea19da198--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-092.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<title>+ Nested fixedpos in a nested fragmentation context where the outer+ multicol is the containing block.+</title>+<link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ column-count: 2;+ column-fill: auto;+ column-gap: 0px;+ }+ #outer {+ height: 100px;+ width: 100px;+ transform: translateX(0);+ }+ #inner {+ width: 50px;+ }+ .rel {+ position: relative;+ }+ .abs {+ position: absolute;+ }+ .fixed {+ position: fixed;+ height: 100%;+ width: 100%;+ top: -100px;+ background:green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="height: 100px; width: 100px; background: red;"></div>+<div class="multicol" id="outer">+ <div class="multicol" id="inner">+ <div class="rel">+ <div class="abs">+ <div class="fixed"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-100.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-100.htmlnew file mode 100644index 00000000000..694db7f3a13--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-100.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395581">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto; height:200px;">+ <div style="width:60px; height:60px; direction:rtl; border:20px solid green; background:red;">+ <div style="position:relative;">+ <div style="position:absolute; left:0; top:0; width:60px; height:30px; background:green;"></div>+ <div style="position:absolute; right:0; top:30px; width:60px; height:30px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-102.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-102.htmlnew file mode 100644index 00000000000..eb5a95ea241--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-102.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395581">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="position:absolute; margin-left:15px; margin-top:15px; width:30px; height:70px; background:green;"></div>+<div style="columns:2; column-fill:auto; height:200px;">+ <div style="width:70px; height:70px; direction:rtl; border:solid 15px green; background:red;">+ <div style="position:relative;">+ <div style="position:absolute; width:40px; height:70px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-104.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-104.htmlnew file mode 100644index 00000000000..44bc5466764--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-104.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395037">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:3; column-fill:auto; height:100px;">+ <div style="overflow:clip; position:relative; width:100px; height:100px; background:green;">+ <div style="position:absolute; z-index:-1; width:5000px; height:100px; background:red;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-105.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-105.htmlnew file mode 100644index 00000000000..facbb541eb1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-105.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395037">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/out-of-flow-in-multicolumn-105-ref.html">+ <p>Test passes if there is a filled green square and <strong>no red</strong>,+ and a vertical scrollbar (unless overlay scrollbars are enabled).</p>+ <div id="scrollable" style="overflow:auto; width:200px; height:200px;">+ <div style="columns:2; column-fill:auto; height:100px;">+ <div style="overflow-x:clip; position:relative; width:100px; height:100px;">+ <div style="position:absolute; width:5000px;">+ <div style="contain:size; height:10000px;">+ <div style="height:9800px; background:red;"></div>+ <div style="float:left; width:100px; height:100px; background:green;"></div>+ <div style="float:left; width:100px; height:100px;"></div>+ <div style="float:left; width:4800px; height:200px; background:red;"></div>+ </div>+ </div>+ </div>+ </div>+ </div>+ <script>+ scrollable.scrollTop = 100000;+ scrollable.scrollLeft = 100000;+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-112.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-112.htmlnew file mode 100644index 00000000000..76c531f6a25--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-112.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1404718">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:red;">+ <div style="height:150px; background:green;"></div>+ <div style="position:relative; overflow:clip; height:50px;">+ <div style="position:absolute; width:100%; height:20px; background:green;">+ <div style="position:absolute; top:20px; width:100%; height:30px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-113.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-113.htmlnew file mode 100644index 00000000000..b8b3857db1f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-113.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1404718">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:red;">+ <div style="height:40px; background:green;"></div>+ <div style="position:relative; overflow:clip; height:60px;">+ <div style="position:absolute; width:100%; height:60px; background:green;"></div>+ <div style="height:100px;"></div>+ </div>+ <div style="height:40px; background:green;"></div>+ <div style="position:relative; overflow:clip; height:60px;">+ <div style="position:absolute; width:100%; height:60px; background:green;"></div>+ <div style="height:100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-116.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-116.htmlnew file mode 100644index 00000000000..77e4a2baf54--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/out-of-flow-in-multicolumn-116.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1412313">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:1; column-fill:auto; height:100px; width:100px;">+ <div style="contain:size; height:100px; background:green;">+ <div style="height:50px;"></div>+ <span style="position:relative; height:50px;">+ <div style="height:25px; background:red;"></div>+ <div style="position:absolute; top:0; width:100px; height:25px; background:green;"></div>+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/overflow-clip-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/overflow-clip-003.htmlnew file mode 100644index 00000000000..4c82533db46--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/overflow-clip-003.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#fragmentation-model">+<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#overflow-properties">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; width:100px; column-fill:auto; height:100px; column-gap:0; background:red;">+ <div style="overflow-x:clip; height:150px;">+ <div style="width:100px; background:red;">+ <div style="width:50px; height:200px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/overflow-clip-013.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/overflow-clip-013.htmlnew file mode 100644index 00000000000..c5cd7d865b9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/overflow-clip-013.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1342107">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:1; column-fill:auto; width:100px; height:100px; background:green;">+ <div style="overflow:clip; height:100px;">+ <div style="height:200px;">+ <div style="height:100px;"></div>+ <div style="position:relative;">+ <div style="position:absolute; width:100px; height:100px; background:red;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/overflowing-block-004.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/overflowing-block-004.htmlnew file mode 100644index 00000000000..653d070d12b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/overflowing-block-004.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/348445899">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div id="mc" style="columns:2; width:100px; column-fill:auto; gap:0; height:300px; background:red;">+ <div style="width:50px;">+ <div style="height:15px;">+ <div style="height:200px; background:green;"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ mc.style.height = "100px";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/relpos-inline.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/relpos-inline.htmlnew file mode 100644index 00000000000..ed8865c2360--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/relpos-inline.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#transforms">+<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#relative-positioning">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/relpos-inline-ref.html">+<div style="columns:4; column-gap:0; column-fill:auto; line-height:30px; width:600px; height:60px; orphans:1; widows:1;">+ <br><br><br>+ <span style="position:relative; left:-100px; top:100px; border:1px solid; background:hotpink;">+ line1<br>+ line2<br>+ line3<br>+ line4<br>+ </span>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/svg-with-transform.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/svg-with-transform.htmlnew file mode 100644index 00000000000..2b67e841b8d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/svg-with-transform.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1334213">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:red;">+ <div style="height:100px; background:green;"></div>+ <svg style="position:relative;">+ <rect transform="scale(2)" width="25" height="50" fill="green"/>+ </svg>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/caption-margin-004.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/caption-margin-004.htmlnew file mode 100644index 00000000000..5d75735ee97--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/caption-margin-004.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#box-splitting">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; gap:0; column-fill:auto; height:150px;">+ <div style="display:table-caption; caption-side:bottom; margin-bottom:50px; width:50px; height:100px; background:green;"></div>+ <div style="height:100px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/dynamic-caption-child-change-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/dynamic-caption-child-change-001.htmlnew file mode 100644index 00000000000..1877112e487--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/dynamic-caption-child-change-001.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1379473">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto; height:500px;">+ <div style="display:table-caption; overflow:hidden;">+ <span>+ <div style="display:inline-block; width:100px; height:100px; background:red;">+ <div id="target" style="width:0px; height:100px; background:green;"></div>+ </div>+ + </span>+ </div>+</div>+<script>+ document.body.offsetTop;+ target.style.width = "100px";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/monolithic-overflow-001.tentative.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/monolithic-overflow-001.tentative.htmlnew file mode 100644index 00000000000..4033c0774f2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/monolithic-overflow-001.tentative.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1425077">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1; column-fill:auto; height:60px;">+ <div style="display:table; width:100%; height:100px; background:green;">+ <div style="contain:size; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/monolithic-overflow-002.tentative.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/monolithic-overflow-002.tentative.htmlnew file mode 100644index 00000000000..12849944afa--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/monolithic-overflow-002.tentative.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1425077">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1; column-fill:auto; height:60px;">+ <div style="display:table; width:100%; background:green;">+ <div style="contain:size; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/oof-in-cell-with-alignment-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/oof-in-cell-with-alignment-001.htmlnew file mode 100644index 00000000000..569e23b7907--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/oof-in-cell-with-alignment-001.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395836">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto; height:200px;">+ <div style="display:table;">+ <div style="display:table-cell; vertical-align:bottom;">+ <div style="position:relative; width:50px; height:50px; background:red;">+ <div style="position:absolute; top:0; left:0; width:50px; height:50px; background:green;"></div>+ </div>+ </div>+ <div style="display:table-cell;">+ <div style="height:100px;">+ <div style="width:100px; height:50px; margin-left:-50px; background:green;"></div>+ <div style="width:50px; height:50px; background:green;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/oof-in-cell-with-alignment-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/oof-in-cell-with-alignment-002.htmlnew file mode 100644index 00000000000..f11ced26bbd--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/oof-in-cell-with-alignment-002.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395836">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto; height:200px;">+ <div style="display:table;">+ <div style="display:table-cell; vertical-align:bottom;">+ <div style="will-change:transform; width:50px; height:50px; background:red;">+ <div style="position:absolute;">+ <div style="position:fixed; top:0; left:0; width:50px; height:50px; background:green;"></div>+ </div>+ </div>+ </div>+ <div style="display:table-cell;">+ <div style="height:100px;">+ <div style="width:100px; height:50px; margin-left:-50px; background:green;"></div>+ <div style="width:50px; height:50px; background:green;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/oof-in-cell-with-alignment-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/oof-in-cell-with-alignment-003.htmlnew file mode 100644index 00000000000..fcba3cc5bf7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/oof-in-cell-with-alignment-003.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1395836">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto; height:200px;">+ <div style="display:table;">+ <div style="display:table-cell; vertical-align:bottom;">+ <div style="position:relative; width:50px; height:50px; background:red;">+ <div style="position:absolute; width:50px; height:50px; background:green;"></div>+ </div>+ </div>+ <div style="display:table-cell;">+ <div style="height:100px;">+ <div style="width:100px; height:50px; margin-left:-50px; background:green;"></div>+ <div style="width:50px; height:50px; background:green;"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/repeated-section/abspos-uncontained-text.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/repeated-section/abspos-uncontained-text.htmlnew file mode 100644index 00000000000..2a872deba39--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/repeated-section/abspos-uncontained-text.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-tables-3/#repeated-headers">+<link rel="match" href="../../../../../../expected/wpt-import/css/css-break/table/repeated-section/abspos-uncontained-text-ref.html">+<p>The word PASS should be seen <em>once</em> below.</p>+<div style="columns:4; column-fill:auto; gap:0; width:100px; height:100px;">+ <div style="display:table;">+ <div style="display:table-header-group; break-inside:avoid;">+ <div style="height:20px;">+ <div style="position:absolute;">PASS</div>+ </div>+ </div>+ <div style="width:25px; height:320px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-caption-and-cells-fixed-width.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-caption-and-cells-fixed-width.htmlnew file mode 100644index 00000000000..2f668c37605--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-caption-and-cells-fixed-width.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=329421">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/table-caption-and-cells-fixed-width-ref.html">+<p>Check that a table caption at a column boundary is properly pushed to the next column.</p>+<p>The word "PASS" should be seen below, fully visible and unbroken.</p>+<div style="columns:2; column-gap:0; column-fill:auto; line-height:2em; width:30em; height:9em;">+ <div style="height:8em;"></div>+ <table style="height:2em; width:10em; background:black;" cellspacing="0" cellpadding="0">+ <caption>PASS</caption>+ <tr>+ <td></td>+ </tr>+ </table>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-caption-and-cells.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-caption-and-cells.htmlnew file mode 100644index 00000000000..0fb2fce7b7f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-caption-and-cells.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=329421">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/table-caption-and-cells-ref.html">+<p>Check that a table caption at a column boundary is properly pushed to the next column.</p>+<p>The word "PASS" should be seen below, fully visible and unbroken.</p>+<div style="columns:2; column-gap:0; column-fill:auto; line-height:2em; height:9em;">+ <div style="height:8em;"></div>+ <table style="width:10em; height:2em; background:black;" cellspacing="0" cellpadding="0">+ <caption>PASS</caption>+ <tr>+ <td></td>+ </tr>+ </table>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-caption-with-block.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-caption-with-block.htmlnew file mode 100644index 00000000000..2b4e0fa0ea9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-caption-with-block.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=329421">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/table-caption-with-block-ref.html">+<p>Check that a table caption with a block at a column boundary is properly pushed to the next column.</p>+<p>The word "PASS" should be seen below, fully visible and unbroken.</p>+<div style="columns:2; column-gap:0; column-fill:auto; line-height:2em; width:40em; height:3em;">+ <div style="height:2em;"></div>+ <table cellspacing="0" cellpadding="0">+ <caption>+ <div>PASS</div>+ </caption>+ </table>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-cell-expansion-006.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-cell-expansion-006.htmlnew file mode 100644index 00000000000..c6aee4b494d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/table-cell-expansion-006.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns: 2; gap: 0; column-fill: auto; height: 100px; width: 100px; background: red;">+ <table style="border-spacing: 0;">+ <td style="background: green; padding: 0; writing-mode: vertical-rl;">+ <div style="min-width: 100px; width: 200%; height: 100px;"></div>+ </td>+ </table>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/truncated-border-spacing-at-fragmentainer-end.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/truncated-border-spacing-at-fragmentainer-end.htmlnew file mode 100644index 00000000000..bcb54802d42--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/table/truncated-border-spacing-at-fragmentainer-end.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1368054">+<link rel="match" href="../../../../../expected/wpt-import/css/css-break/table/../../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div id="mc" style="columns:1; column-fill:auto; width:100px; height:60px; background:red;">+ <div style="display:table; width:100%; border-spacing:40px; background:green;">+ <div style="height:20px;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ mc.style.height = "100px";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/transform-000.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/transform-000.htmlnew file mode 100644index 00000000000..9468a72c980--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/transform-000.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#transforms">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<style>+ .relpos {+ position: relative;+ left: -60px;+ background: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="inline-size:100px; block-size:100px; columns:4; column-fill:auto; column-gap:0; background:red;">+ <div style="block-size:50px; background:green;"></div>+ <div style="will-change:transform; transform:translateX(60px);">+ <div class="relpos" style="block-size:100px;"></div>+ <div class="relpos" style="block-size:100px;"></div>+ <div class="relpos" style="block-size:150px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/transform-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/transform-003.htmlnew file mode 100644index 00000000000..7be9e039fc6--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/transform-003.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#transforms">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<style>+ .relpos {+ position: relative;+ left: -60px;+ top: -50px;+ background: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="inline-size:100px; block-size:100px; columns:4; column-fill:auto; column-gap:0; background:red;">+ <div style="block-size:50px; background:green;"></div>+ <div style="will-change:transform; transform:translate(60px, 50px);">+ <div class="relpos" style="block-size:100px;"></div>+ <div class="relpos" style="block-size:100px;"></div>+ <div class="relpos" style="block-size:150px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/transform-017.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/transform-017.htmlnew file mode 100644index 00000000000..8e17e64eb62--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/transform-017.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1442211">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:1; gap:0; column-fill:auto; width:100px; height:100px; background:red;">+ <div style="height:50px;"></div>+ <div style="transform:scaleY(2); transform-origin:bottom; width:100px; height:50px;">+ <div style="position:absolute; top:150px;">+ <div style="position:absolute; top:-150px; width:100px; height:50px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/truncated-margin-at-fragmentainer-end-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/truncated-margin-at-fragmentainer-end-001.htmlnew file mode 100644index 00000000000..c58c7be672f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/truncated-margin-at-fragmentainer-end-001.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1368054">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div id="mc" style="columns:1; column-fill:auto; width:100px; height:60px; background:red;">+ <div style="display:flow-root; background:green;">+ <div style="margin-bottom:40px; height:60px;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ mc.style.height = "100px";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/truncated-margin-at-fragmentainer-end-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/truncated-margin-at-fragmentainer-end-002.htmlnew file mode 100644index 00000000000..16a4bae34ee--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/truncated-margin-at-fragmentainer-end-002.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1368054">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:1; column-fill:auto; width:100px; height:100px; background:red;">+ <div id="child" style="height:40px;"></div>+ <div style="display:flow-root; background:green;">+ <div style="margin-bottom:40px; height:60px;"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ child.style.height = "0";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-007.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-007.htmlnew file mode 100644index 00000000000..3ac7b6612ce--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-007.html@@ -0,0 +1,34 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1153517">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<style>+ #mc > div { display:inline-block; width:100%; height:20px; }+ #mc > div.green { height:100px; background:green; }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div id="mc" style="columns:4; orphans:3; widows:1; column-gap:0; line-height:0;">+ <div class="green"></div>+ <div></div>+ <div></div>+ <div></div>+ <div></div>+ <div class="green"></div>+ <div></div>+ <div></div>+ <div></div>+ <div></div>+ <div class="green"></div>+ <div></div>+ <div></div>+ <div></div>+ <div></div>+ <div class="green"></div>+ </div>+</div>+<script>+ document.body.offsetTop;+ mc.style.orphans = 5;+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-008.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-008.htmlnew file mode 100644index 00000000000..c2a3a455c88--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-008.html@@ -0,0 +1,64 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and content distribution in columns</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-008-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <!--++ Bug 137367: Implement orphans and widows+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367++ -->++ <meta name="assert" content="When column boxes are filled sequentially, their content should be distributed and fragmented in accordance with the 'orphans' and the 'widows' declarations. In the test, since the 3rd column box was going to get only 1 line box, then a class B break point should occur between the '6' and the '7' so that there is a minimum of 3 line boxes at the top of the 3rd column box.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ height: 104px; /* Therefore, exactly 4 line boxes */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;+ }++ div#test+ {+ orphans: 1;+ widows: 3;+ }++ div#reference+ {+ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br><br><br>7<br>8<br>9</div>++ <!-- Same as div#test except 2 extra br here ^ -->diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-009.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-009.htmlnew file mode 100644index 00000000000..7ad3c4bdb79--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-009.html@@ -0,0 +1,64 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and content distribution in columns</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-009-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <!--++ Bug 137367: Implement orphans and widows+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367++ -->++ <meta name="assert" content="When column boxes are filled sequentially, their content should be distributed and fragmented in accordance with the 'orphans' and the 'widows' declarations. In the test, since the 3rd column box was going to get only 1 line box, then a class B break point should occur between the '7' and the '8' so that there is a minimum of 2 line boxes at the top of the 3rd column box. In doing so, the 'orphans: 2' declaration is still honored.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ height: 104px; /* Therefore, exactly 4 line boxes */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;+ }++ div#test+ {+ orphans: 2;+ widows: 2;+ }++ div#reference+ {+ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br>7<br><br>8<br>9</div>++ <!-- Same as div#test except 1 extra br here ^ -->diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-010.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-010.htmlnew file mode 100644index 00000000000..38356e5bd26--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-010.html@@ -0,0 +1,64 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and content distribution in columns</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-010-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <!--++ Bug 137367: Implement orphans and widows+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367++ -->++ <meta name="assert" content="When column boxes are filled sequentially, their content should be distributed and fragmented in accordance with the 'orphans' and the 'widows' declarations. In the test, since the 3rd column box was going to get only 1 line box, then a class B break point should occur between the '6' and the '7' so that there is a minimum of 3 line boxes at the top of the 3rd column box.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ height: 104px; /* Therefore, exactly 4 line boxes */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;+ }++ div#test+ {+ orphans: 2;+ widows: 3;+ }++ div#reference+ {+ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br><br><br>7<br>8<br>9</div>++ <!-- Same as div#test except 2 extra br here ^ -->diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-011.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-011.htmlnew file mode 100644index 00000000000..5f932b3dc10--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-011.html@@ -0,0 +1,63 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and content distribution in columns</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-011-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <!--++ Bug 137367: Implement orphans and widows+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367++ -->++ <meta name="assert" content="When column boxes are filled sequentially, their content should be distributed and fragmented in accordance with the 'orphans' and the 'widows' declarations. In the test, since the 3rd column box was going to get only 2 line boxes, then a class B break point should occur between '8' and the '9' so that there is a minimum of 6 line boxes at the top of the 3rd column box.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ height: 156px; /* Therefore, exactly 6 line boxes */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;+ }++ div#test+ {+ orphans: 2;+ widows: 6;+ }++ div#reference+ {+ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the numbers inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br><br><br><br><br>9<br>10<br>11<br>12<br>13<br>14</div>+ <!-- Same as div#test except 4 extra br here ^ -->diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-012.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-012.htmlnew file mode 100644index 00000000000..5be457a0ee1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-012.html@@ -0,0 +1,64 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and content distribution in columns</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-012-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <!--++ Bug 137367: Implement orphans and widows+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367++ -->++ <meta name="assert" content="When column boxes are filled sequentially, their content should be distributed and fragmented in accordance with the 'orphans' and the 'widows' declarations. In the test, since the 3rd column box was going to get only 3 line boxes, then a class B break point should occur between the '12' and the '13' so that there is a minimum of 7 line boxes at the top of the 3rd column box.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ height: 208px; /* Therefore, exactly 8 line boxes */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;+ }++ div#test+ {+ orphans: 3;+ widows: 7;+ }++ div#reference+ {+ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the numbers inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br><br><br><br><br>13<br>14<br>15<br>16<br>17<br>18<br>19</div>++ <!-- Same as div#test except 4 extra br here ^ -->diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-013.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-013.htmlnew file mode 100644index 00000000000..b389cf5312e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-013.html@@ -0,0 +1,62 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and content distribution in columns</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-013-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <!--++ Bug 137367: Implement orphans and widows+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367++ -->++ <meta name="assert" content="When column boxes are filled sequentially, their content should be distributed and fragmented in accordance with the 'orphans' and the 'widows' declarations. In the test, since the 3rd column box was going to get only 1 line box, then a class B break point should occur between the '15' and the '16' so that there is a minimum of 4 line boxes at the top of the 3rd column box. In doing so, the 'orphans: 6' declaration is still honored.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ height: 234px; /* Therefore, exactly 9 line boxes */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;+ }++ div#test+ {+ orphans: 6;+ widows: 4;+ }++ div#reference+ {+ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the numbers inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br><br><br><br>16<br>17<br>18<br>19</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-014.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-014.htmlnew file mode 100644index 00000000000..3aeb42eb158--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-014.html@@ -0,0 +1,62 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and content distribution in columns</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-014-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <!--++ Bug 137367: Implement orphans and widows+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367++ -->++ <meta name="assert" content="When column boxes are filled sequentially, their content should be distributed and fragmented in accordance with the 'orphans' and the 'widows' declarations. In the test, since the 3rd column box was going to get only 1 line box, then a class B break point should occur between the '7' and the '8' so that there is a minimum of 3 line boxes at the top of the 3rd column box. In doing so, the 'orphans: 7' declaration is still honored.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ height: 234px; /* Therefore, exactly 9 line boxes */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;+ }++ div#test+ {+ orphans: 7;+ widows: 3;+ }++ div#reference+ {+ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br>7<br><br><br>8<br>9<br>0</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-015.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-015.htmlnew file mode 100644index 00000000000..f46addfe585--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-015.html@@ -0,0 +1,64 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: initial 'widows' value and content distribution in columns</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-016-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <!--++ Bug 137367: Implement orphans and widows+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367++ -->++ <meta name="assert" content="This test checks that 'widows' applies to multi-column containers and that the initial value of 'widows' is '2'. When an UA succeeds at applying 'widows', then there is 2 line boxes at the top of the 3rd column box.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ height: 104px; /* Therefore, exactly 4 line boxes */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;+ }++ div#test+ {+ orphans: 1;+ widows: initial;+ }++ div#reference+ {+ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br>7<br><br>8<br>9</div>++ <!-- Same as div#test except 1 extra br here ^ -->diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-016.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-016.htmlnew file mode 100644index 00000000000..9d6e268feec--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-016.html@@ -0,0 +1,64 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and content distribution in columns</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-016-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <!--++ Bug 137367: Implement orphans and widows+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367++ -->++ <meta name="assert" content="When column boxes are filled sequentially, their content should be distributed and fragmented in accordance with the 'orphans' and the 'widows' declarations. In the test, since the 3rd column box was going to get only 1 line box, then a class B break point should occur between the '7' and the '8' so that there is a minimum of 2 line boxes at the top of the 3rd column box.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ height: 104px; /* Therefore, exactly 4 line boxes */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;++ columns: 4 auto;++ column-fill: auto;++ column-gap: 1em; /* computes to 20px */++ column-rule: blue solid 4px;+ }++ div#test+ {+ orphans: 1;+ widows: 2;+ }++ div#reference+ {+ orphans: 1;+ widows: 1;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br>7<br><br>8<br>9</div>++ <!-- Same as div#test except 1 extra br here ^ -->diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-017.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-017.htmlnew file mode 100644index 00000000000..2a58e0f43e7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-017.html@@ -0,0 +1,52 @@+<!DOCTYPE html>++ <meta charset="UTF-8">++ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and auto-height multicolumn container with 'column-fill: auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+ <link rel="match" href="../../../../expected/wpt-import/css/css-break/reference/widows-orphans-017-ref.html">++ <!--+ Date created: November 26th 2020+ Last modified: December 6th 2020+ -->++ <meta name="assert" content="If a multi-column container fills column boxes sequentially and its 'height' is 'auto', then soft breaks are inoperative since content can not overflow the fragmentainer. Therefore, in this test, the 'orphans' and 'widows' requirements can not be honored.">++ <style>+ div+ {+ border: orange solid 4px;+ font-size: 20px;+ line-height: 1.3; /* computes to 26px */+ margin-bottom: 1em;+ padding: 0.5em; /* computes to 10px */+ width: 460px;+ }++ div#test+ {+ height: auto;++ columns: 4 auto;+ column-fill: auto;+ column-gap: 1em; /* computes to 20px */+ column-rule: blue solid 4px;++ orphans: 1;+ widows: 2;+ }++ div#reference+ {+ height: 182px;+ }+ </style>++ <p>Test passes if the digits inside both orange-bordered rectangles are <strong>distributed identically</strong>.++ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7</div>++ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br>7</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-021.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-021.htmlnew file mode 100644index 00000000000..2d2b0d61deb--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-021.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<title>Float among orphans</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-break/#widows-orphans">+<link rel="help" href="https://issues.chromium.org/issues/40882665">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square-only.html">+<p>Test passes if there is a filled green square.</p>+<div style="columns:2; column-fill:auto; line-height:25px; width:100px; height:100px; gap:0; orphans:3; widows:1; background:red;">+ <div style="background:green;">+ <div style="height:25px;"></div>+ <br>+ <div style="float:left; width:100%; height:25px; background:green;"></div>+ <br>+ <br>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-023.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-023.htmlnew file mode 100644index 00000000000..8e48624d603--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/widows-orphans-023.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<title>Abspos after widows</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-break/#widows-orphans">+<link rel="help" href="https://issues.chromium.org/issues/40752965">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square-only.html">+<p>Test passes if there is a filled green square.</p>+<div style="columns:2; column-fill:auto; line-height:25px; width:100px; height:100px; gap:0; orphans:1; widows:3; background:red;">+ <div style="background:green;">+ <div style="height:50px;"></div>+ <br>+ <br>+ <br>+ <br>+ <div style="position:absolute; width:50px; height:25px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-break/will-change-filter.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/will-change-filter.htmlnew file mode 100644index 00000000000..c2fb6e4f9ff--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-break/will-change-filter.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="help" href="https://www.w3.org/TR/css-break-3/">+<link rel="help" href="https://drafts.csswg.org/css-will-change/#will-change">+<link rel="help" href="https://drafts.fxtf.org/filter-effects/#FilterProperty">+<link rel="match" href="../../../../expected/wpt-import/css/css-break/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width: 100px; height: 100px; columns: 2; column-gap: 0">+ <div style="filter: saturate(1); will-change: filter">+ <div style="height: 200px; background: green"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-after-spanner-static-pos.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-after-spanner-static-pos.htmlnew file mode 100644index 00000000000..3d234b52398--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-after-spanner-static-pos.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<title>Abspos element after a column spanner</title>+<link rel="help" href="https://drafts.csswg.org/css-multicol/">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ columns: 2;+ column-gap: 0px;+ width: 400px;+ margin-top: -60px;+ margin-left: -200px;+ }+ .abs {+ position: absolute;+ width: 100px;+ height: 100px;+ background-color: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div style="height: 70px;"></div>+ <div style="column-span: all; height: 10px;"></div>+ <div style="height: 35px;"></div>+ <div style="height: 15px;"></div>+ <div class="abs"></div>+ <div style="height: 20px; width: 100px; background: red;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-after-spanner.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-after-spanner.htmlnew file mode 100644index 00000000000..402a1d914c6--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-after-spanner.html@@ -0,0 +1,25 @@+<!DOCTYPE html>+<title>Abspos element after a column spanner</title>+<link rel="help" href="https://drafts.csswg.org/css-multicol/">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ columns: 2;+ column-fill: auto;+ column-gap: 0px;+ margin-top: -10px;+ }+ .abs {+ position: absolute;+ width: 100px;+ height: 100px;+ background-color: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="multicol">+ <div style="column-span: all; height: 10px;"></div>+ <div class="abs"></div>+ <div style="height: 30px; width: 30px; background-color: red;"></div>+ <div style="height: 70px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-autopos-contained-by-viewport-000.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-autopos-contained-by-viewport-000.htmlnew file mode 100644index 00000000000..177a8b18f60--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-autopos-contained-by-viewport-000.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#abs-non-replaced-height">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-gap:0; column-fill:auto; width:100px; height:100px; background:red;">+ <div style="height:120px; background:green;"></div>+ <div style="position:absolute; width:50px; height:80px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-autopos-contained-by-viewport-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-autopos-contained-by-viewport-001.htmlnew file mode 100644index 00000000000..ede0e77bbcc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/abspos-autopos-contained-by-viewport-001.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#abs-non-replaced-height">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-gap:0; column-fill:auto; width:100px; height:100px; background:red;">+ <div>+ <div style="height:120px; background:green;"></div>+ <div style="position:absolute; width:50px; height:80px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/always-balancing-before-column-span.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/always-balancing-before-column-span.htmlnew file mode 100644index 00000000000..e8263102e98--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/always-balancing-before-column-span.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">+ <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/4689">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <meta name="assert" content="This test verifies columns are always balancing before column-spanning element in an unconstrained height and column-fill:auto column container.">++ <style>+ .columns {+ column-fill: auto;+ column-count: 2;+ column-gap: 0;+ width: 100px;+ background: red;+ }+ .colspan {+ column-span: all;+ }+ .content {+ height: 200px;+ background: green;+ }+ </style>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div class="columns">+ <div class="content"></div>+ <div class="colspan"></div>+ </div>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/ancestor-toggle-spanner-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/ancestor-toggle-spanner-002.htmlnew file mode 100644index 00000000000..6ced5f7a28e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/ancestor-toggle-spanner-002.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<title>Add transform to existing stacking context root, descendant spanner candidate</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/500832364">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; gap:0;">+ <div id="ancestor" style="position:relative; z-index:1;">+ <div style="column-span:all; width:50px; height:200px; background:green;"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ ancestor.style.transform = "rotate(0deg)";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/as-column-flex-item.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/as-column-flex-item.htmlnew file mode 100644index 00000000000..aea6285fad9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/as-column-flex-item.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="help" href="https://www.w3.org/TR/css-sizing-3/">+<meta name="assert" content="Tests that the intrinsic block-size of a multicol container is calculated correctly, including the border">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="display:flex; flex-flow:column; background:red;">+ <div style="columns:4; column-gap:0; border:30px solid green; width:40px;">+ <div style="height:160px; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/auto-fill-auto-size-001-print.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/auto-fill-auto-size-001-print.htmlnew file mode 100644index 00000000000..c3d48c4f69a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/auto-fill-auto-size-001-print.html@@ -0,0 +1,6 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1339963">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/auto-fill-auto-size-001-print-ref.html">+<div style="columns:2; column-fill:auto; border:10px solid red; border-top:none; border-bottom:none;"></div>+On the first pagediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-000.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-000.htmlnew file mode 100644index 00000000000..a5c091227e5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-000.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1">+<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/baseline-000-ref.html">+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+<div style="display:flex; align-items:baseline;">+ PA+ <div style="columns:2; column-fill:auto; height:5em;">+ SS+ <br>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-001.htmlnew file mode 100644index 00000000000..ed97f8db34f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-001.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1">+<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">+<meta name="assert" content="Look for the highest baseline of all the columns.">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/baseline-001-ref.html">+<p>There should be a green square below.</p>+<div style="display:flex; align-items:baseline;">+ <div style="width:50px; height:100px; background:green;"><br></div>+ <div style="columns:2; height:100px; column-fill:auto;">+ <div style="width:50px; height:100px; background:green;"></div>+ <br>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-002.htmlnew file mode 100644index 00000000000..d93b657182c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-002.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1">+<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/baseline-002-ref.html">+<meta name="assert" content="The first-baseline is propagated from the secound column, as it is the highest.">+<p>There should be a green square below.</p>+<div style="display:flex; align-items:baseline; line-height:2em;">+ <div style="background:green; width:50px; height:100px;">+ <br>+ </div>+ <div style="background:green; columns:3; orphans:1; widows:1; width:50px; height:100px;">+ <div style="break-inside:avoid; height:2em;"></div>+ <br>+ <br>+ <br>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-003.htmlnew file mode 100644index 00000000000..12b99fce337--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-003.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1">+<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/baseline-003-ref.html">+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+<div style="display:flex; align-items:baseline;">+ PA+ <div style="columns:3;">+ <div style="column-span:all;">SS</div>+ <br>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-004.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-004.htmlnew file mode 100644index 00000000000..f9d51442cc3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-004.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1">+<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/baseline-004-ref.html">+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+<div style="display:flex; align-items:baseline;">+ PA+ <div style="columns:3;">+ <div style="column-span:all; height:2em;"></div>+ <div style="column-span:all;">SS</div>+ <br>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-005.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-005.htmlnew file mode 100644index 00000000000..cda4dec9a6c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-005.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1">+<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/baseline-005-ref.html">+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+<div style="display:flex; align-items:baseline;">+ PA+ <div style="columns:3;">+ SS+ <div style="column-span:all;"><br></div>+ <br>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-006.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-006.htmlnew file mode 100644index 00000000000..747d8e784d9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-006.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1">+<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/baseline-006-ref.html">+<p>The word "PASS" should be seen below, with letters baseline aligned.</p>+<div style="display:flex; align-items:baseline;">+ PA+ <div style="columns:3;">+ <div style="height:99px;"></div>+ <div style="column-span:all;">SS</div>+ <br>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-007.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-007.htmlnew file mode 100644index 00000000000..15e1871d48e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-007.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1">+<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/baseline-007-ref.html">+<p>There should be a green square below.</p>+<div style="display:flex; align-items:baseline; line-height:40px;">+ <div style="width:50px; background:green;">+ <div style="height:60px;"></div>+ <br>+ </div>+ <div style="columns:3; width:50px; background:green;">+ <div style="height:90px;"></div>+ <div style="column-span:all; height:30px;"></div>+ <br>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-008.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-008.htmlnew file mode 100644index 00000000000..b38dfbd8f98--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/baseline-008.html@@ -0,0 +1,25 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1">+<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">+<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/7639">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/baseline-008-ref.html">+<style>+ .part {+ display: inline-block;+ width: 50px;+ height: 100px;+ background: green;+ color: transparent;+ }+ .multicol {+ columns: 2;+ column-fill: auto;+ }+</style>+<p>There should be a green square below.</p>+<div class="part">+ <div>line1<br>line2</div>+</div><div class="part multicol">+ <div>line1<br>line2</div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-000.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-000.htmlnew file mode 100644index 00000000000..5cae51f8476--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-000.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1285795">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div id="mc" style="columns:4; column-gap:0; column-fill:auto; width:100px; height:25px; background:red;">+ <div style="width:100px; height:100px; background:green;"></div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ mc.style.height = '100px';+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-001.htmlnew file mode 100644index 00000000000..2a539638a69--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-001.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1285795">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div style="width:100px; height:100px; background:red;">+ <div style="columns:4; column-gap:0;">+ <div style="height:200px; background:green;"></div>+ <div id="elm" style="display:none; height:200px; background:green;"></div>+ </div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ elm.style.display = 'block';+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-002.htmlnew file mode 100644index 00000000000..685c309164c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-002.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1285795">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div id="mc" style="columns:4; column-gap:0; column-fill:auto; width:100px; height:400px; background:red;">+ <div style="height:400px; background:green;"></div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ mc.style.height = '100px';+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-003.htmlnew file mode 100644index 00000000000..680d54b64f0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-fragmentainer-size-003.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1285795">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div id="mc" style="columns:2; column-gap:0; column-fill:auto; width:100px; height:150px; background:red;">+ <div style="height:200px; background:green;"></div>+ </div>+ <script>+ requestAnimationFrame(() => {+ requestAnimationFrame(() => {+ mc.style.height = "100px";+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-transform-in-second-column.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-transform-in-second-column.htmlnew file mode 100644index 00000000000..0df3a00bd51--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-transform-in-second-column.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1279525">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="overflow:auto; width:500px;">+ <div style="columns:2; column-gap:0; column-fill:auto; margin-left:-100px; width:200px; height:100px;">+ <div style="break-after:column; height:1px;"></div>+ <div style="width:100px; height:100px; background:red;">+ <div id="elm" style="transform:translateX(1000px); width:100px; height:100px; background:green;"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.transform = "translateX(0)";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-transform-in-spanner.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-transform-in-spanner.htmlnew file mode 100644index 00000000000..22bc0408b53--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-transform-in-spanner.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1279525">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="overflow:auto; width:500px;">+ <div style="columns:2; column-fill:auto; height:100px;">+ <div style="width:100px; height:100px; background:red;">+ <div id="elm" style="transform:translateX(1000px); width:100px; height:100px; background:green;"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.transform = "translateX(0)";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-transform.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-transform.htmlnew file mode 100644index 00000000000..22bc0408b53--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/change-transform.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1279525">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="overflow:auto; width:500px;">+ <div style="columns:2; column-fill:auto; height:100px;">+ <div style="width:100px; height:100px; background:red;">+ <div id="elm" style="transform:translateX(1000px); width:100px; height:100px; background:green;"></div>+ </div>+ </div>+</div>+<script>+ document.body.offsetTop;+ elm.style.transform = "translateX(0)";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-balancing-paged-001-print.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-balancing-paged-001-print.htmlnew file mode 100644index 00000000000..fc02e8ef928--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-balancing-paged-001-print.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test fragmentation for a nested multi-column container with column-span in paginated context</title>+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/column-balancing-paged-001-print-ref.html">+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">+ <link rel="help" href="https://drafts.csswg.org/css-break/#breaking-rules">++ <style>+ :root {+ print-color-adjust: exact;+ }+ .outer {+ column-count: 1;+ column-rule: 6px solid black;+ }+ .inner {+ column-count: 2;+ column-rule: 3px solid green;+ background-color: lightgreen;+ }+ .block1 {+ background-color: yellow;+ height: 3in;+ }+ .spanner {+ column-span: all;+ height: 2in;+ background-color: lightblue;+ }+ .block2 {+ background-color: pink;+ height: 3in+ }+ </style>++ <article class="outer">+ <article class="inner">+ <div class="block1">block1</div>+ <div class="spanner">spanner</div>+ <div class="block2">block2</div>+ </article>+ </article>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-balancing-with-floats-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-balancing-with-floats-001.htmlnew file mode 100644index 00000000000..697035e01c2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-balancing-with-floats-001.html@@ -0,0 +1,40 @@+<!DOCTYPE html>+<meta charset="UTF-8">+<title>CSS Multicol Test: A float in a deep subtree is placed in the second column after column balancing</title>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://drafts.csswg.org/css-multicol/#column-balancing">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2054166">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/column-balancing-with-floats-001-ref.html">+<link rel="stylesheet" href="../../fonts/ahem.css">++<style>+.multicol {+ width: 600px;+ column-count: 2;+ column-gap: 0;+ font: 25px/1 Ahem;+}+.nav {+ padding: 25px;+}+.float {+ float: right;+ width: 50px;+ height: 25px;+ background: green;+}+</style>++<div class="multicol">+ <div class="nav">First</div>+ <div>+ <div>+ <div class="nav">+ <div class="float"></div>+ Second+ </div>+ </div>+ </div>+</div>+diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-balancing-with-floats-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-balancing-with-floats-002.htmlnew file mode 100644index 00000000000..17423f1f19e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-balancing-with-floats-002.html@@ -0,0 +1,44 @@+<!DOCTYPE html>+<meta charset="UTF-8">+<title>CSS Multicol Test: A float in a deep subtree in a multicol flex item is placed after column balancing</title>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://drafts.csswg.org/css-multicol/#column-balancing">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2054166">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/column-balancing-with-floats-001-ref.html">+<link rel="stylesheet" href="../../fonts/ahem.css">++<style>+.flex {+ display: flex;+}+.multicol {+ width: 600px;+ column-count: 2;+ column-gap: 0;+ font: 25px/1 Ahem;+}+.nav {+ padding: 25px;+}+.float {+ float: right;+ width: 50px;+ height: 25px;+ background: green;+}+</style>++<div class="flex">+ <div class="multicol">+ <div class="nav">First</div>+ <div>+ <div>+ <div class="nav">+ <div class="float"></div>+ Second+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-height-011.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-height-011.htmlnew file mode 100644index 00000000000..3e8a838e687--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-height-011.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<title>column-wrap:auto - should not wrap</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-2/#ch">+<link rel="help" href="https://drafts.csswg.org/css-multicol-2/#cwr">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:1; column-fill:auto; width:50px; gap:0; height:100px; column-wrap:auto; background:red;">+ <div style="height:200px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-rule-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-rule-001.htmlnew file mode 100644index 00000000000..ccf782a65b3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-rule-001.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<html class="reftest-wait">+<title>Column rule in scrollable multicol container</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-gaps-and-rules">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/column-rule-001-ref.html">+<style>+ body {+ margin: 0;+ }+ .mc {+ columns: 2;+ column-gap: 110px;+ column-rule: 100px solid;+ height: 100px;+ overflow: hidden;+ }+</style>+<p>There should be <b>two</b> black squares below.</p>+<div id="elm" class="mc">+ <div style="height:600px;"></div>+</div>+<script>+ elm.scrollLeft = 200;+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ document.documentElement.classList.remove("reftest-wait");+ });+ });+</script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-wrap-no-constraints-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-wrap-no-constraints-001.htmlnew file mode 100644index 00000000000..188f99defdc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/column-wrap-no-constraints-001.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<title>Auto height, column balancing, and column-wrap:wrap</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-multicol-2/#cwr">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<!-- Rows are allowed to wrap, but the block-size of the multicol container is+ unconstrained, and there is no column-height specified, so there should be+ just one row. -->+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; gap:20px 0; column-wrap:wrap;">+ <div style="height:200px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/composited-under-clip-under-multicol.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/composited-under-clip-under-multicol.htmlnew file mode 100644index 00000000000..f15c160b99f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/composited-under-clip-under-multicol.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-multicol">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/composited-under-clip-under-multicol-ref.html">+<meta name="assert" content="Test that clip under multicol is correctly applied on composited child">+<style>+.columns {+ columns: 2;+ column-gap: 20px;+ width: 220px;+ height: 100px;+}+.clip {+ height: 100px;+ overflow: hidden;+}+.composited {+ will-change: transform;+ margin-top: -20px;+ margin-left: -20px;+ border: 20px solid red;+ width: 200px;+ height: 200px;+ background: green;+}+</style>+<div class="columns">+ <div class="clip">+ <div class="composited"></div>+ </div>+ <div class="clip"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/fixed-in-nested-multicol.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/fixed-in-nested-multicol.htmlnew file mode 100644index 00000000000..bd40cd5d625--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/fixed-in-nested-multicol.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<title>+ Nested fixedpos in a nested fragmentation context where the outer+ multicol is the containing block.+</title>+<link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<style>+ .multicol {+ column-count: 2;+ column-fill: auto;+ column-gap: 0px;+ }+ #outer {+ height: 100px;+ width: 100px;+ transform: translateX(0);+ }+ #inner {+ width: 50px;+ }+ .rel {+ position: relative;+ }+ .abs {+ position: absolute;+ }+ .fixed {+ position: fixed;+ height: 100px;+ width: 100px;+ top: -100px;+ background:green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="height: 100px; width: 100px; background: red;"></div>+<div class="multicol" id="outer">+ <div class="multicol" id="inner">+ <div class="rel">+ <div class="abs">+ <div class="fixed"></div>+ </div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/fixed-size-child-with-overflow.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/fixed-size-child-with-overflow.htmlnew file mode 100644index 00000000000..d7338c37c40--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/fixed-size-child-with-overflow.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#column-gaps-and-rules">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:4; column-fill:auto; column-gap:5px; column-rule:5px solid green; width:100px; height:100px; background:red;">+ <div style="height:50px;">+ <div style="height:400px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/float-with-line-after-spanner.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/float-with-line-after-spanner.htmlnew file mode 100644index 00000000000..69931b77c2e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/float-with-line-after-spanner.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/float-with-line-after-spanner-ref.html">+<p>The word 'PASS' should be seen below, inside a blue square.</p>+<div style="columns:1; font-size:50px; width:225px; line-height:60px; color:white; background:blue;">+ <div style="float:left; padding-top:165px;">PASS</div>+ <div style="height:65px;"></div>+ <div style="column-span:all;"></div>+ <div></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/increase-prev-sibling-height.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/increase-prev-sibling-height.htmlnew file mode 100644index 00000000000..3a64683f4ab--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/increase-prev-sibling-height.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<html class="reftest-wait">+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1066640">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/increase-prev-sibling-height-ref.html">+<p>The word "PASS" should be seen below.</p>+<div id="elm" style="background:black;"></div>+<div style="columns:2;">+ PASS+</div>+<script>+ requestAnimationFrame(()=>{+ requestAnimationFrame(()=>{+ elm.style.height = "2em";+ document.documentElement.classList.remove("reftest-wait");+ });+ });+</script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/move-with-text-after-paint.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/move-with-text-after-paint.htmlnew file mode 100644index 00000000000..9d8c1047449--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/move-with-text-after-paint.html@@ -0,0 +1,26 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/move-with-text-after-paint-ref.html">+ <div style="columns:3;">+ <div id="container" style="position:relative; top:0;">+ Short loin tri-tip pork belly, tail venison capicola turducken sausage+ pork. Turkey ribeye pork belly chicken chuck, speck shank tail short loin+ bacon tongue prosciutto. Tenderloin pastrami turkey, rump ball tip+ frankfurter ham hock pork chop sausage filet mignon beef hamburger pork+ sirloin speck. Meatball pig pork chop, short loin shankle pork loin flank+ ball tip capicola ham hock pork shank turkey pastrami. Corned beef+ capicola ribeye turkey bresaola, ground round fatback turducken.+ </div>+ </div>++ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ container.style.top = "100px";+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-005.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-005.xhtnew file mode 100644index 00000000000..612a39d3d36--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-005.xht@@ -0,0 +1,24 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>CSS Multi-column Layout Test: columns as column-count (basic)</title>+<link rel="author" title="Hakon Wium Lie" href="mailto:[email protected]"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/reference/multicol-basic-005-ref.xht"/>+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#columns"/>+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#cc"/>+<style type="text/css">+div {+ margin: 1em auto;+ background: yellow;+ border: thin solid black;+ width: 600px;+ columns: 3;+ column-gap: 0;+ column-rule: none;+}+</style>+</head>+<body>+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three columns with no gap or rule between them.</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-006.xhtnew file mode 100644index 00000000000..8f4f144f3b8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-006.xht@@ -0,0 +1,23 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>CSS Multi-column Layout Test: column-count (basic)</title>+<link rel="author" title="Hakon Wium Lie" href="mailto:[email protected]"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/reference/multicol-basic-005-ref.xht"/>+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#cc"/>+<style type="text/css">+div {+ margin: 1em auto;+ background: yellow;+ border: thin solid black;+ width: 600px;+ column-count: 3;+ column-gap: 0;+ column-rule: none;+}+</style>+</head>+<body>+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three columns with no gap or rule between them.</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-007.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-007.xhtnew file mode 100644index 00000000000..960f0db780f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-007.xht@@ -0,0 +1,24 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>CSS Multi-column Layout Test: columns as column-width (basic)</title>+<link rel="author" title="Hakon Wium Lie" href="mailto:[email protected]"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/reference/multicol-basic-005-ref.xht"/>+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#columns"/>+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#column-width"/>+<style type="text/css">+div {+ margin: 1em auto;+ background: yellow;+ border: thin solid black;+ width: 600px;+ columns: 200px;+ column-gap: 0;+ column-rule: none;+}+</style>+</head>+<body>+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three columns with no gap or rule between them.</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-008.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-008.xhtnew file mode 100644index 00000000000..b05b50988db--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-basic-008.xht@@ -0,0 +1,23 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>CSS Multi-column Layout Test: column-width (basic)</title>+<link rel="author" title="Hakon Wium Lie" href="mailto:[email protected]"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/reference/multicol-basic-005-ref.xht"/>+<link rel="help" href="https://www.w3.org/TR/css3-multicol/#column-width"/>+<style type="text/css">+div {+ margin: 1em auto;+ background: yellow;+ border: thin solid black;+ width: 600px;+ column-width: 200px;+ column-gap: 0;+ column-rule: none;+}+</style>+</head>+<body>+<div>This multicol element should have a width of 600 pixels and the content should be flowed into three columns with no gap or rule between them.</div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-block-no-clip-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-block-no-clip-001.xhtnew file mode 100644index 00000000000..e636e822d1e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-block-no-clip-001.xht@@ -0,0 +1,49 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: Overflowed content inside multicol element</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-block-no-clip-001-ref.xht"/>+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that content in the normal flow that extends into column gaps is not clipped in the middle of the column gap." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ border: gray solid 1em;+ font: 1.25em/1 Ahem;+ orphans: 1;+ widows: 1;+ width: 11em;++ column-count: 4;+ column-gap: 1em;+ }++ h4+ {+ background: black;+ color: black;+ font: inherit;+ margin: 0;+ }++ #first-column {color: blue;}++ #second-column {color: orange;}++ #third-column, #fourth-column {color: white;}+ ]]></style>+ </head>+ <body>+ <div>+ <span id="first-column"> ab cd ef gh </span>+ <h4>123</h4>+ <span id="second-column"> ij kl mn oq </span>+ <span id="third-column"> ab cd ef gh </span>+ <span id="fourth-column"> rs tu vw xy </span>+ </div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-block-no-clip-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-block-no-clip-002.xhtnew file mode 100644index 00000000000..cd1bd23896d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-block-no-clip-002.xht@@ -0,0 +1,51 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: Overflowed content inside and outside multicol element</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-block-no-clip-002-ref.xht"/>+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that content in the normal flow that extends into column gaps is not clipped in the middle of the column gap." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ border: gray solid 1em;+ font: 1.25em/1 Ahem;+ orphans: 1;+ widows: 1;+ width: 11em;++ column-count: 3;+ column-gap: 1em;+ }++ h4+ {+ background: black;+ color: black;+ font: inherit;+ margin: 0;+ }++ #first-column {color: blue;}++ #second-column {color: orange;}++ #third-column {color: pink;}++ #fourth-column {color: yellow;}+ ]]></style>+ </head>+ <body>+ <div>+ <span id="first-column"> ab cd ef gh </span>+ <h4>1234</h4>+ <span id="second-column"> ij kl mn oq </span>+ <span id="third-column"> ab cd ef gh </span>+ <span id="fourth-column"> rs tu vw xy </span>+ </div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-clip-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-clip-001.xhtnew file mode 100644index 00000000000..a922d31131c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-clip-001.xht@@ -0,0 +1,45 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: overflowed content inside and outside multicol element</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-24 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-clip-001-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that content in the normal flow can extend into column gap. In this test, the 'l' and 'c' glyphs are painted into the left half of the column gap; the 'l' and 'e' glyphs extend outside the last column box at the edge of the multi-column and are therefore rendered thanks to the default 'overflow: visible' declaration." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background: white;+ border: gray solid 1em;+ color: blue;+ font: 1.25em/1 Ahem;+ orphans: 1;+ widows: 1;+ width: 11em;++ column-count: 3;+ column-gap: 4em;+ }++ span {color: black;}+ ]]></style>+ </head>+ <body>++ <div>+ <span>+ bl ac+ bl ac+ </span>++ <span>+ bl ac+ </span>+ bl ue+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-clip-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-clip-002.xhtnew file mode 100644index 00000000000..850f7537c2a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-clip-002.xht@@ -0,0 +1,46 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: overflowed content inside and outside multicol element</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-25 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-clip-002-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that content in the normal flow can extend into column gap before it reaches its middle. In this test, the 'l' and 'c' glyphs are painted into the left half of the column gap; the 'l' and 'e' glyphs extend outside the last column box at the edges of the multi-column and are therefore hidden thanks to the 'overflow: hidden' declaration." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background: white;+ border: gray solid 1em;+ color: blue;+ font: 1.25em/1 Ahem;+ orphans: 1;+ overflow: hidden;+ widows: 1;+ width: 11em;++ column-count: 3;+ column-gap: 4em;+ }++ span {color: black;}+ ]]></style>+ </head>+ <body>++ <div>+ <span>+ bl ac+ bl ac+ </span>++ <span>+ bl ac+ </span>+ bl ue+ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-clip-scrolled-content-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-clip-scrolled-content-001.htmlnew file mode 100644index 00000000000..10abcadc9d3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-clip-scrolled-content-001.html@@ -0,0 +1,53 @@+<!DOCTYPE html>+<html>+<meta charset="utf-8">+<title>CSS Test: Multi-column element with scrolled content clipping</title>+<link rel="author" title="Vladimir Levin" href="mailto:[email protected]"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#columns"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/reference/multicol-clip-scrolled-content-001-ref.html"/>+<style>+#columns {+ column-width: 350px;+}+.spacer {+ height: 200px;+ width: 10px;+}+#outer {+ border: 1px solid black;+ overflow: scroll;+ height: 300px;+ width: 300px;+}+.inner {+ overflow: scroll;+}+.clipped_target {+ overflow: scroll;+ background: red;+ width: 50px;+ height: 50px;+}+</style>++<div class=spacer></div>+<div id=columns>+<div class=spacer></div>+<div id=outer>+ <div class=inner>+ <pre class=clipped_target>+ scrollable+ content+ goes+ here+ </pre>+ </div>+ <div class=spacer></div>+ <div class=spacer></div>+</div>+</div>++<script>+window.onload = () => { outer.scrollTop = 100; };+</script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-containing-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-containing-001.xhtnew file mode 100644index 00000000000..9cb8013f7b7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-containing-001.xht@@ -0,0 +1,50 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: a column box can not act as containing block for elements with 'position: absolute'</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-27 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-containing-001-ref.xht"/>+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that a column box does not establish containing block for elements with 'position: absolute'." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background-color: yellow;+ border: gray solid 1em;+ color: black;+ font: 1.25em/1 Ahem;+ orphans: 1;+ widows: 1;+ width: 12em;++ column-count: 3;+ column-gap: 0;+ }++ span+ {+ color: red;+ position: absolute;+ top: -1em;+ }++ /*+ In this test, the initial containing block establishes containing block+ for such red span. Therefore, the 2 short red stripes should be+ positioned out of view, just outside the top edge of viewport.+ */++ ]]></style>+ </head>+ <body>+ <div>+ bl ac+ <span>re dd</span>+ bl ac+ bl ac+ </div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-containing-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-containing-002.xhtnew file mode 100644index 00000000000..49b68de6280--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-containing-002.xht@@ -0,0 +1,39 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: a multi-column can act as containing block for elements with 'position: absolute'</title>+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-containing-002-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that a multi-column element can establish containing block for elements with 'position: absolute'." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background-color: white;+ color: green;+ font: 1.25em/1 Ahem;+ position: relative;+ width: 19em;++ column-count: 4;+ column-gap: 1em;+ }++ span {color: red;}++ img#white-overlapping+ {+ left: 11em;+ position: absolute;+ top: 1em;+ }+ ]]></style>+ </head>+ <body>++ <div>4444 1 1 1 1 4444 1 1 1 4444 1 1 1 1 4444 1 1 1 1 1 1 4444 1<span>RED</span> 1<span>RED</span> 4444 1 1 4444 4444 1 1 4444 1 1 4444 <img id="white-overlapping" src="support/swatch-white.png" width="60" height="40" alt="Image download support must be enabled" /></div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-containing-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-containing-003.htmlnew file mode 100644index 00000000000..2320f70f26a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-containing-003.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-multicol/#the-multi-column-model">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<style>+ #multicol {+ columns: 2;+ width: 100px;+ height: 100px;+ column-fill: auto;+ column-gap: 0px;+ }+ .rel {+ position: relative;+ }+ .abs {+ position: absolute;+ width: 100px;+ height: 100px;+ background: green;+ top: 0;+ left: 0;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div class="rel" id="multicol">+ <div style="height:200px; width: 50px; background: red;"></div>+ <div class="abs"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-count-computed-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-count-computed-003.xhtnew file mode 100644index 00000000000..8e36ea20fc9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-count-computed-003.xht@@ -0,0 +1,86 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: column-rule and overflow inside (complex test)</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-07-29 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of-columns" title="3. The number and width of columns" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-count-computed-003-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that if one of 2 adjacent column boxes (2nd and 3rd colum box in this test) does not have any content, then the column rule separating those should not be drawn. In this test, the 3rd colum box should have no inline content. This test also checks that inline content in the normal flow that extends into a column gap should not be clipped in the middle of the column gap. So, in this test, inline content in 1st column box should not be clipped and should overlappe partially the 1st column-rule." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background: yellow;+ border: gray solid 1em;+ color: black;+ font: 1.25em/1 Ahem;+ orphans: 1;+ widows: 1;+ width: 13em;++ column-count: 3;+ column-gap: 5em;+ column-rule-color: blue;+ column-rule-style: solid;+ column-rule-width: 1.5em;+ }++ /*+ (11) if (column-width = auto) and (column-count != auto) then+ (12) N := column-count;+ (13) W := max(0, (available-width - ((N - 1) * column-gap)) / N);+ (14) exit;++ So, the used column-count in this test is 3.++ W := max(0, (available-width - ((N - 1) * column-gap)) / N);+ W == max(0, (13em - ((3 - 1) * 5em)) / 3);+ W == max(0, (13em - (2 * 5em)) / 3);+ W == max(0, (13em - (10em)) / 3);+ W == max(0, (3em) / 3);+ W == max(0, 1em);+ W == 1em;++ So, the used column-width in this test is 1em.+ */++ #pink {color: pink;}+ #orange {color: orange;}+ #purple {color: purple;}+ #gray {color: gray;}++ /*+ Since+ "+ content that extends outside column boxes visibly overflows and is not clipped to the column box.+ "+ https://drafts.csswg.org/css-multicol-1/#overflow-inside-multicol-elements+ this causes the right-half (0.5em) of the 'K' glyph to+ overlap the right-half (0.75em) of the 1st blue column-rule.+ Same thing should happen to the 'N' glyph of 'ORAN'.++ Because no inline content should be rendered into the+ 3rd column box, this causes the 2nd column rule not+ been rendered because+ "+ Column rules are only drawn between two columns that+ both have content.+ "+ http://www.w3.org/TR/css3-multicol/#column-gaps-and-rules+ */+ ]]></style>+ </head>++ <body>++ <div>+ <span id="pink">PINK</span>+ <span id="orange">ORAN</span>+ <span id="purple">PURP</span>+ <span id="gray">GRAY</span>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-count-computed-005.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-count-computed-005.xhtnew file mode 100644index 00000000000..88aecf5eda1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-count-computed-005.xht@@ -0,0 +1,90 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: column-rule and overflow inside (complex test)</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-03 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of-columns" title="3. The number and width of columns" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-count-computed-003-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that if one of 2 adjacent column boxes (2nd and 3rd colum box in this test) does not have any content, then the column rule separating those should not be drawn. In this test, the 3rd colum box should have no inline content. This test also checks that inline content in the normal flow that extends into a column gap should not be clipped in the middle of the column gap. So, in this test, inline content in 1st column box should not be partially clipped and should overlap partially with the 1st column-rule." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background: yellow;+ border: gray solid 1em;+ color: black;+ font: 1.25em/1 Ahem;+ orphans: 1;+ widows: 1;+ width: 13em;++ column-gap: 5em;+ column-rule-color: blue;+ column-rule-style: solid;+ column-rule-width: 1.5em;+ column-width: 1em;+ }++ /*+ (15) if (column-width != auto) and (column-count = auto) then+ (16) N := max(1, floor((available-width + column-gap) / (column-width + column-gap)));+ (17) W := ((available-width + column-gap) / N) - column-gap;+ (18) exit;++ N := max(1, floor((available-width + column-gap) / (column-width + column-gap)));+ N == max(1, floor((13em + 5em) / (1em + 5em)));+ N == max(1, floor(18em / 6em));+ N == max(1, floor(3));+ N == 3;++ So, the used column-count in this test is 3.++ W := ((available-width + column-gap) / N) - column-gap;+ W == ((13em + 5em) / 3) - 5em;+ W == ((18em) / 3) - 5em;+ W == (6em) - 5em;+ W == 1em;++ So, the used column-width in this test is 1em.+ */++ #pink {color: pink;}+ #orange {color: orange;}+ #purple {color: purple;}+ #gray {color: gray;}++ /*+ Since+ "+ content that extends outside column boxes visibly overflows and is not clipped to the column box+ "+ http://www.w3.org/TR/css3-multicol/#overflow-inside-multicol-elements+ this causes the right-half (0.5em) of the 'K' glyph to+ overlap with the right-half (0.75em) of the 1st blue column-rule.+ Same thing should happen to the 'N' glyph of 'ORAN'.++ Because no inline content should be rendered into the+ 3rd column box, this causes the 2nd column rule not+ been rendered because+ "+ Column rules are only drawn between two columns that+ both have content.+ "+ http://www.w3.org/TR/css3-multicol/#column-gaps-and-rules+ */+ ]]></style>+ </head>++ <body>++ <div>+ <span id="pink">PINK</span>+ <span id="orange">ORAN</span>+ <span id="purple">PURP</span>+ <span id="gray">GRAY</span>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-001.htmlnew file mode 100644index 00000000000..bfc0b17f296--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-001.html@@ -0,0 +1,46 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Append a block to an empty inline element</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#cf">+ <link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#anonymous-block-level">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-dynamic-add-001-ref.html">+ <meta name="assert" content="This test checks that the block appended into an inline element should perform correct block-in-inline splitting, and balance the block's height into three columns.">++ <script>+ function runTest() {+ document.body.offsetHeight;++ /* Append a block to the inline element. */+ var block = document.createElement("div");+ var text = document.createTextNode("block");+ block.appendChild(text);++ var span = document.getElementById("span");+ span.appendChild(block);++ document.documentElement.removeAttribute("class");+ }+ </script>++ <style>+ #column {+ column-count: 3;+ column-rule: 6px solid;+ width: 400px;+ outline: 1px solid black;+ }+ div {+ height: 300px;+ background-color: yellow;+ }+ </style>++ <body onload="runTest();">+ <article id="column">+ <span id="span"><!-- block will be added here. --></span>+ </article>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-002.htmlnew file mode 100644index 00000000000..3c0ed77957c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-002.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<html class="reftest-wait">+<meta charset="utf-8">+<title>CSS Multi-column Layout Test: Change textContent on flex container in multi-column context</title>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="http://www.mozilla.org/">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1/">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1645714">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-dynamic-add-002-ref.html">+<meta name="assert" content="This test checks that dynamically changing textContent on a flex container in a multi-column context renders correctly.">++<script>+function runTest() {+ document.body.offsetHeight;++ a.textContent = "f";++ document.documentElement.removeAttribute("class");+}+</script>++<style>+:root { columns: 0px }+</style>++<body onload="runTest();">+<q id="a" style="display: flex">+<small>x</label>+<li>+</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-003.htmlnew file mode 100644index 00000000000..d1955d6492a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-003.html@@ -0,0 +1,51 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Append element to grid with pseudo-elements in multi-column context</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/">+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1645714">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-dynamic-add-003-ref.html">+ <meta name="assert" content="This test checks that dynamically appending an element to a grid container with ::before and ::after pseudo-elements in a multi-column context renders correctly.">++ <script>+ function runTest() {+ document.body.offsetHeight;++ var nav = document.createElement("nav");+ nav.append("text");++ var grid = document.getElementById("grid");+ grid.append(nav);++ document.documentElement.removeAttribute("class");+ }+ </script>++ <style>+ .columns {+ columns: 2;+ column-fill: auto;+ width: 100px;+ height: 10px;+ }+ #grid {+ display: grid;+ grid: 20px 20px / 40px 40px;+ }+ #grid::before, #grid::after {+ content: "";+ grid-row: 1 / 3;+ }+ nav {+ grid-row: 1 / 3;+ }+ </style>++ <body onload="runTest();">+ <div class="columns">+ <div id="grid"></div>+ </div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-004.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-004.htmlnew file mode 100644index 00000000000..21d087fe348--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-add-004.html@@ -0,0 +1,49 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Append float element to block with floating pseudo-elements in multi-column context</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/">+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1645714">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-dynamic-add-004-ref.html">+ <meta name="assert" content="This test checks that dynamically appending a float element to a block container with floating ::before and ::after pseudo-elements in a multi-column context renders correctly.">++ <script>+ function runTest() {+ document.body.offsetHeight;++ var nav = document.createElement("nav");+ nav.append("text");++ var container = document.getElementById("container");+ container.append(nav);++ document.documentElement.removeAttribute("class");+ }+ </script>++ <style>+ .columns {+ columns: 2;+ column-fill: auto;+ width: 100px;+ height: 10px;+ }+ #container::before, #container::after {+ float: left;+ content: "";+ width: 10px;+ height: 20px;+ }+ nav {+ float: left;+ }+ </style>++ <body onload="runTest();">+ <div class="columns">+ <div id="container"></div>+ </div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-change-inside-break-inside-avoid-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-change-inside-break-inside-avoid-001.htmlnew file mode 100644index 00000000000..48d72cf2843--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-dynamic-change-inside-break-inside-avoid-001.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<html class="tweak reftest-wait">+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://mozilla.org">+<link rel="help" href="https://drafts.csswg.org/css-break/#break-within">+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1721262">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-dynamic-change-inside-break-inside-avoid-001-ref.html">+<style>+ input { -moz-appearance: none; -webkit-appearance: none; appearance: none; }++ .tweak input {+ border: 3px solid red;+ }+</style>+<div style="column-count: 2">+ a<br>+ <input>++ <div style="page-break-inside: avoid; break-inside: avoid;">+ b+ <div><input id="editme" value="."></div>+ </div>+</div>+<script>+function paint() {+ return new Promise(resolve => {+ requestAnimationFrame(() => requestAnimationFrame(resolve));+ });+}++(async function() {+ await paint();++ document.documentElement.classList.remove("tweak");++ await paint();++ document.getElementById("editme").value = "Am I clipped?";+ document.documentElement.classList.remove("reftest-wait");+})();+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-auto-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-auto-002.xhtnew file mode 100644index 00000000000..90449ee7bd4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-auto-002.xht@@ -0,0 +1,50 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-fill-auto</title>+<meta name="assert" content="This test checks that columns are not balanced when 'column-fill: auto' is set"/>+<link rel="author" title="[email protected]" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#filling-columns"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-fill-auto-002-ref.xht"/>+<meta name="flags" content="ahem"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body>div {+ font-family: Ahem;+ font-size: 1.25em;+ line-height: 1em;+ color: green;+ height: 3em;+ width: 2em;+ orphans: 1;+ widows: 1;+ position: relative;+ margin: 1em;+}+div.col {+ column-count: 2;+ column-fill: auto;+ column-gap: 0;+}+div.red {+ background: red; position: absolute; z-index: -1;+}+]]></style>+</head>++<body>++<div class='col'>+<div class='red' style="top: 0; left: 0; height: 3em; width: 1em;"></div>+<div class='red' style="top: 0; left: 0; height: 1em; width: 2em;"></div>+o<br/>t<br/>+o<br/>t<br/>+</div>++<div class='ref'>+oo<br/>t<br/>o+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-auto-block-children-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-auto-block-children-002.xhtnew file mode 100644index 00000000000..7dfbb5806f1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-auto-block-children-002.xht@@ -0,0 +1,73 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: 'column-fill: auto' and 'column-span: all' (complex)</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-16 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-span" title="6.1. 'column-span'" />+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pagination-and-overflow-outside-multicol" title="8.2. Pagination and overflow outside multicol elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-fill-auto-block-children-002-ref.xht" />++ <meta name="assert" content="This test checks that if 'column-fill' is set to 'auto' and a multicolumn element content is solely made of block container boxes, then it should fill column boxes sequentially with such content and, in this test, it should overflow outside of it. This test relies on the idea that a 'column-span: all' element will occupy more space in a multi-column element than a 'column-span: none' element, therefore reducing available space for content in column boxes." />+ <style type="text/css"><![CDATA[+ html {background-color: white;}++ body+ {+ background-color: blue;+ height: 200px;+ margin: 8px;+ width: 60%;++ column-count: 3;+ column-fill: auto;+ column-gap: 10px;+ }++ h1+ {+ color: white;+ column-span: all;+ font-size: 2em;+ line-height: 1.25; /* or 1.21875 to achieve a 39px tall line box */+ margin: 21px 0em;+ /*+ 21px : margin-top of h1 element which must not collapse with body's margin-top+ 80px : content height: 2 line boxes required to render the "Test passes if ..." sentence+ 21px : margin-bottom of h1 element+ ====================================+ 122px : margin box height of h1 element+ */+ }++ h2+ {+ color: blue;+ font-size: 1.5em;+ line-height: 1;+ margin: 0 0 2.25em;+ /*+ 0px : margin-top of h2 element+ 24px : content height: 1 line box required to render all the nbsp; and PASS! word+ 54px : margin-bottom of h2 element+ ====================================+ 78px : margin box height of h2 element+ */+ }+ ]]></style>+ </head>++ <body>++ <h1>Test passes if "PASS!" is<br />on the right ↘</h1>++ <h2> </h2>++ <h2> </h2>++ <h2> </h2>++ <h2>PASS!</h2>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-auto-block-children-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-auto-block-children-003.htmlnew file mode 100644index 00000000000..67dc3929636--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-auto-block-children-003.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: 'column-fill: auto' and height constrained of a multi-column container</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol/#cf">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-fill-auto-block-children-003-ref.html">+ <meta name="assert" content="This test verifies that 'max-height' on multi-column container imposes constraint on column boxes' height.">++ <style>+ article {+ column-fill: auto;+ column-count: 2;+ width: 200px;+ /* Test max-height imposes constraint on column boxes' height. */+ max-height: 200px;+ }+ div {+ height: 400px;+ background-color: lightgreen;+ }+ </style>++ <p>This test passes if you see two green strips with equal height.</p>+ <article>+ <div></div>+ </article>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-001.xhtnew file mode 100644index 00000000000..3bdd54b2231--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-001.xht@@ -0,0 +1,49 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-fill</title>+<meta name="assert" content="This test checks that columns are properly balanced when 'column-fill: balance' is set"/>+<link rel="author" title="[email protected]" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#filling-columns"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-fill-balance-001-ref.xht"/>+<meta name="flags" content="ahem"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body>div {+ font-family: Ahem;+ font-size: 1.25em;+ line-height: 1em;+ color: green;+ height: 3em;+ width: 2em;+ orphans: 1;+ widows: 1;+ position: relative;+ margin: 1em;+}+div.col {+ column-count: 2;+ column-fill: balance;+ column-gap: 0;+}+div.red {+ background: red; position: absolute; z-index: -1;+}+]]></style>+</head>++<body>++<div class='col'>+<div class='red' style="top: 0; left: 0; height: 2em; width: 2em;"></div>+o<br/>t<br/>+o<br/>t<br/>+</div>++<div class='ref'>+oo<br/>tt+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-002.htmlnew file mode 100644index 00000000000..3f6d58407a6--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-002.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<title>CSS Multi-column Layout Test: Balancing with more forced breaks than columns</title>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#cf" title="7.1. column-fill">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square-only.html">+<meta name="assert" content="This multicol container will create overflowing columns, no matter what, due to forced break. Don't overstretch.">+<p>Test passes if there is a filled green square.</p>+<div style="columns:2; column-gap:0; width:100px; background:green;">+ <div style="height:100px;"></div>+ <div style="break-before:column; height:90px;"></div>+ <div style="break-before:column; height:10px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-006.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-006.htmlnew file mode 100644index 00000000000..1ca9c987fdc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-006.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#filling-columns">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square-only.html">+<p>Test passes if there is a filled green square.</p>+<div style="float:left; width:50px; height:100px; background:green;"></div>+<div style="float:left; width:50px; background:green;">+ <div style="columns:2; width:0;">+ <div style="height:200px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-018.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-018.htmlnew file mode 100644index 00000000000..2dc558bee68--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-018.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1285795">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div style="width:100px; height:100px; background:red;">+ <div style="columns:4; column-gap:0;">+ <div id="elm" style="display:none; height:200px; background:green;"></div>+ <div style="height:200px; background:green;"></div>+ </div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ elm.style.display = 'block';+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-024.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-024.htmlnew file mode 100644index 00000000000..548648c57a2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-024.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://www.w3.org/TR/css-multicol-1/#cf">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1336291">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <style>+ .hidden { display:none; }+ #mc > div { height:25px; contain:size; background:green;}+ </style>+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div id="mc" style="columns:2; gap:0; width:100px; background:red;">+ <div></div>+ <div></div>+ <div></div>+ <div></div>+ <div class="hidden"></div>+ <div class="hidden"></div>+ <div class="hidden"></div>+ <div class="hidden"></div>+ </div>+ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ for (let e of document.getElementsByClassName('hidden'))+ e.style.display = "block";+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-029.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-029.htmlnew file mode 100644index 00000000000..ae2ce9fad10--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-029.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="help" href="https://issues.chromium.org/issues/324314465">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="display: flex; width: 100px; height: 100px; background: red;">+ <div style="columns: 1; width: 50px; gap: 0;">+ <div style="break-inside: avoid; background: green; height: 100px;"></div>+ <div style="break-inside: avoid; background: green; height: 100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-031.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-031.htmlnew file mode 100644index 00000000000..7b9ae6167d0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-031.html@@ -0,0 +1,27 @@+<!DOCTYPE html>+<title>Column balancing and ruby</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/391504025">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="position:absolute; z-index:1; width:100px; height:100px; background:green;"></div>+<div style="columns:2; width:100px; orphans:1; widows:1; color:red; background:red;">+ <div style="margin-left:10px;">+ <ruby>+ <rt>x</rt>+ </ruby>+ FAIL+ </div>+ <div style="margin-left:10px;">+ <ruby>+ <rt>x</rt>+ </ruby>+ FAIL+ </div>+ <div style="margin-left:10px;">+ <ruby>+ <rt>x</rt>+ </ruby>+ X+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-032.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-032.htmlnew file mode 100644index 00000000000..24370df7b39--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-032.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<title>break-inside:avoid on float in inline formatting context</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/394900337">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:3;">+ <span></span>+ <div style="float:left; break-inside:avoid; width:100px; height:100px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-033.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-033.htmlnew file mode 100644index 00000000000..520bee944c0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-033.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<title>Monolithic float in block formatting context</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/394900337">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; background:green;">+ <div style="float:left; width:100%; contain:size; height:100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-034.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-034.htmlnew file mode 100644index 00000000000..2a9f393e3e1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-034.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<title>Monolithic float in inline formatting context</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/394900337">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; orphans:1; widows:1; background:green;">+ <span></span>+ <div style="float:left; width:100%; contain:size; height:100px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-035.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-035.htmlnew file mode 100644index 00000000000..6a4f65ddf80--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-035.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<title>Monolithic float with margins in inline formatting context</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/41481415">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; line-height:20px; orphans:1; widows:1; background:green;">+ <span>+ <div style="float:left; width:100%; contain:size; height:20px; margin:40px 0;"></div>+ </span>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-037.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-037.htmlnew file mode 100644index 00000000000..a3f29f0abb5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-fill-balance-037.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<title>Monolithic float with margins in block formatting context</title>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://issues.chromium.org/issues/41481415">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; line-height:20px; orphans:1; widows:1; background:green;">+ <div style="float:left; width:100%; contain:size; height:20px; margin:40px 0;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-height-002-print.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-height-002-print.xhtnew file mode 100644index 00000000000..eb4e2373173--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-height-002-print.xht@@ -0,0 +1,43 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Test: Percentage Computed Height on Multicol Child (Definite Multicol Height)</title>+ <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" />+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property"/>+ <meta name="assert" content="Percentage heights with a multi-column element are relative to the computed height of the multicolumn box, and this works even when the multi-column element is paginated." />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-height-002-print-ref.xht" />+ <style type="text/css"><![CDATA[+ html, body { height: 100%; }+ * { margin: 0; }+ div {+ border: double blue 12px;+ column-count:2;+ column-gap:0;+ column-fill: balance;+ height: 150%;+ }+ div > p {+ border-right: solid orange 12px;+ width: 0;+ margin: 0 auto;+ height: 200%;+ }+ blockquote {+ border: solid thick yellow;+ }+ ]]></style>+ </head>+ <body>+ <p>Test passes if even when printed:</p>+ <ul>+ <li>Two vertical orange stripes stretch exactly+ from the inner top edge to the inner bottom edge of the blue box below.</li>+ <li>There is a yellow stripe immediately below the blue box.</li>+ </ul>+ <div>+ <p></p>+ </div>+ <blockquote></blockquote>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-inherit-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-inherit-003.xhtnew file mode 100644index 00000000000..c6b4b751a64--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-inherit-003.xht@@ -0,0 +1,64 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | inheritance</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of-columns"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-inherit-3-ref.xht"/>+<meta name="flags" content="ahem"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ width: 75em;+}+body>div {+ height: 2em;+ column-width: 8em;+}+div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: yellow;+ orphans: 1;+ widows: 1;+}+div>div {+ margin: 0 1em 1em;+}+div+div {+ color: blue;+}+div+div+div {+ color: pink;+}+]]></style>+</head>++<body>++<div>+ <div>+ xx xx+ xx xx+ xx xx+ xx xx+ </div>+ <div>+ xx xx+ xx xx+ xx xx+ xx xx+ </div>+ <div>+ xx xx+ xx xx+ xx xx+ xx xx+ </div>+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-003.htmlnew file mode 100644index 00000000000..a18cfd4322e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-003.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-list-item-003-ref.html">+<div style="display:list-item; columns:3; column-gap:20px; width:490px; margin:50px;">+ <div style="height:150px;"></div>+ <div style="column-span:all; height:50px;"></div>+ ← Marker here+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-004.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-004.htmlnew file mode 100644index 00000000000..fe935d6a76c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-004.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-list-item-004-ref.html">+<div style="display:list-item; columns:3; column-gap:20px; width:490px; margin:50px;">+ <div style="height:150px;"></div>+ <div style="column-span:all; height:50px;">← Marker here</div>+ Marker NOT here+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-006.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-006.htmlnew file mode 100644index 00000000000..4c213cb77f9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-006.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-list-item-006-ref.html">+<div style="position:absolute; left:40px; top:30px;">↓ Marker here.</div>+<div style="display:list-item; columns:2; column-gap:20px; width:320px; margin:50px;">+ <div style="height:100px;"></div>+ <div style="column-span:all; height:50px;"></div>+ <div style="height:100px;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-007.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-007.htmlnew file mode 100644index 00000000000..9c15d47acf9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-list-item-007.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-list-item-007-ref.html">+<div style="columns:1; display:list-item; list-style-position:inside;">+ List item markes should render identically, regardless of multicol.+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-002.xhtnew file mode 100644index 00000000000..bd96437d140--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-002.xht@@ -0,0 +1,81 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: multicolumn and margin-bottom collapsing</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-11 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-nested-002-ref.xht" />+ <meta name="assert" content="This test checks that a block container element's margin-bottom can collapse with its multi-column parent's margin-bottom if no line boxes, no clearance, no padding and no border separate them." />+ <meta name="flags" content="ahem" />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body {margin: 0em;}++ body > div+ {+ font: 1.25em/1 Ahem;+ width: 32em;++ column-gap: 1em;+ column-width: 8em;+ }++ /*++ N == max(1, floor((available-width + column-gap) / (column-width + column-gap)));+ N == max(1, floor((32em + 1em) / (8em + 1em)));+ N == max(1, floor(33em / 9em));+ N == max(1, floor(3.6));+ N == max(1, 3);+ N == 3;++ W == ((available-width + column-gap) / N) - column-gap;+ W == ((32em + 1em) / 3) - 1em;+ W == (33em / 3) - 1em;+ W == (11em) - 1em;+ W == 10em;++ */++ div+ {+ background: yellow;+ color: black;+ orphans: 1;+ widows: 1;+ }++ div > div {margin: 0 1em 1em;}++ div + div {color: blue;}++ div + div + div {color: pink;}+ ]]></style>+ </head>++ <body>++ <div>+ <div>+ bl ac+ bl ac+ bl ac+ bl ac+ </div>+ <div>+ bl ue+ bl ue+ bl ue+ bl ue+ </div>+ <div>+ Pi nk+ Pi nk+ Pi nk+ Pi nk+ </div>+ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-005.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-005.xhtnew file mode 100644index 00000000000..6ba993df96a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-005.xht@@ -0,0 +1,107 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: nested multi-columns and constrained dimensions</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-nested-005-ref.xht" />+ <!--+ The original filename of this test was+ multicol-inherit-005.xht+ This test also serves as a conversion of+ multicol-nested-001.xht+ -->+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks how the height of column boxes conditions the height of nested column boxes." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body > div+ {+ column-gap: 1em;+ font: 1.25em/1 Ahem;+ width: 41em;+ }++ /*++ N == 3;++ W == max(0, (available-width - ((N - 1) * column-gap)) / N);+ W == max(0, (41em - ((3 - 1) * 1em)) / 3);+ W == max(0, (41em - (2 * 1em)) / 3);+ W == max(0, (41em - 2em) / 3);+ W == max(0, 39em / 3);+ W == max(0, 13em);+ W == 13em;++ The height of column rule depends on number of line boxes in+ each outer column box which depends on number of line boxes+ in each inner column box. So:++ 13em : width of each outer column box+ -+ 2em : horizontal margin of each div inside+ =======+ 11em : width of each inner multi-column elements++ N == 3;++ W == max(0, (available-width - ((N - 1) * column-gap)) / N);+ W == max(0, (11em - ((3 - 1) * 1em)) / 3);+ W == max(0, (11em - (2 * 1em)) / 3);+ W == max(0, (11em - 2em) / 3);+ W == max(0, 9em / 3);+ W == max(0, 3em);+ W == 3em;++ So, each duo of 'a', 'm' and 'x' should fill one and only 1 line+ box. There are 8 duos; therefore, the first 2 inner+ column boxes should use 3 line boxes and the 3rd inner+ column box should be using 2 line boxes.++ So, the height of the 2 blue column rules should be 60px.++ */++ div+ {+ background-color: yellow;+ color: black;+ font-size: 1em;+ margin: 1em;+ orphans: 1;+ widows: 1;++ column-count: 3;+ }++ div > div:first-child {margin-top: 0;}+ ]]></style>+ </head>++ <body>++ <div>+ <div>+ aa aa+ aa aa+ aa aa+ aa aa+ </div>+ <div>+ mm mm+ mm mm+ mm mm+ mm mm+ </div>+ <div>+ xx xx+ xx xx+ xx xx+ xx xx+ </div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-007.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-007.htmlnew file mode 100644index 00000000000..32139403e1a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-007.html@@ -0,0 +1,15 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; column-fill:auto; column-gap:0; height:160px; orphans:2; widows:2;">+ <div style="height:100px; background:green;"></div>+ <div style="columns:2; column-fill:auto; column-gap:0; height:100px;">+ <div style="display:inline-block; vertical-align:top; width:200%; height:50px; background:green;"></div><br>+ <div style="display:inline-block; vertical-align:top; width:200%; height:50px; background:green;"></div><br>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-008.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-008.htmlnew file mode 100644index 00000000000..3048a630634--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-008.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#break-within">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; column-fill:auto; column-gap:0; height:160px; orphans:2; widows:2;">+ <div style="height:100px; background:green;"></div>+ <div style="columns:2; column-fill:auto; column-gap:0; height:100px;">+ <div style="break-inside:avoid; width:200%; height:100px; background:green;"></div><br>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-009.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-009.htmlnew file mode 100644index 00000000000..f069bd45ec7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-009.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+<div style="columns:2; column-fill:auto; column-gap:0; height:120px;">+ <div style="height:100px; background:green;"></div>+ <div style="columns:2; column-fill:auto; column-gap:0; height:100px; background:red;">+ <div style="vertical-align:top; display:inline-block; width:200%; height:100px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-010.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-010.htmlnew file mode 100644index 00000000000..7c34f3fece5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-010.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+<div style="columns:2; column-fill:auto; column-gap:0; height:120px;">+ <div style="height:100px; background:green;"></div>+ <div style="columns:2; column-fill:auto; column-gap:0; height:100px; background:red;">+ <div style="contain:size; width:200%; height:100px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-011.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-011.htmlnew file mode 100644index 00000000000..09090f3d88a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-011.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+<div style="columns:2; column-fill:auto; column-gap:0; height:50px;">+ <div style="columns:2; column-fill:auto; column-gap:0; height:100px;">+ <div style="contain:size; width:400%; height:100px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-018.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-018.htmlnew file mode 100644index 00000000000..e9165361380--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-018.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<style>+ .mc {+ columns: 2;+ column-gap: 0;+ column-fill: auto;+ }+ .ib {+ display: inline-block;+ vertical-align: top;+ width: 200%;+ height: 50px;+ background: green;+ }+</style>+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div class="mc" style="height:190px; line-height:50px; orphans:2; widows:2;">+ <div style="height:100px; background:green;"></div>+ <div class="mc">+ <div class="ib"></div><br>+ <div class="ib"></div><br>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-022.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-022.htmlnew file mode 100644index 00000000000..234b086f627--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-022.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; column-fill:auto; column-gap:0; height:150px;">+ <div style="height:100px; background:green;"></div>+ <div style="columns:2; column-gap:0; column-fill:auto;">+ <div style="width:200%; height:100px; break-inside:avoid; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-023.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-023.htmlnew file mode 100644index 00000000000..1b2179ae00a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-023.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; column-fill:auto; column-gap:0; height:150px;">+ <div style="height:100px; background:green;"></div>+ <div style="columns:2; column-gap:0;">+ <div style="width:200%; height:100px; break-inside:avoid; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-025.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-025.htmlnew file mode 100644index 00000000000..3b318a438a0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-025.html@@ -0,0 +1,8 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1339963">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/nothing.html">+<p>There should be nothing below.</p>+<div style="columns:2; column-fill:auto; height:100px;">+ <div style="columns:2; column-fill:auto; background:red;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-027.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-027.htmlnew file mode 100644index 00000000000..9805427a9a1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-027.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1339963">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; gap:0; column-fill:auto; width:100px; height:100px; background:red;">+ <div style="columns:2; gap:0; column-fill:auto; min-height:75px; background:green;">+ <div style="height:50px;"></div>+ </div>+ <div style="height:25px; background:green;"></div>+ <div style="break-inside:avoid; height:100px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-029.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-029.htmlnew file mode 100644index 00000000000..7b27d877e3e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-029.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1396308">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-nested-029-ref.html">+<div style="columns:1; column-fill:auto; width:20em; height:10em; color:white; background:black;">+ <p>The word "PASS" should be seen below.</p>+ <div style="columns:2; line-height:0.8;">+ PASS+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-033.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-033.htmlnew file mode 100644index 00000000000..f17ac6af904--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-033.html@@ -0,0 +1,49 @@+<!DOCTYPE html>+<link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">+<link rel="help" href="https://drafts.csswg.org/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://drafts.csswg.org/css-position-3/#abspos-breaking">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-nested-033-ref.html">+<meta name="assert" content="Test that the nested multicol's column-gap is resolved against its content-box inline-size in the outer multicol's second column.">++<style>+.multicol {+ column-count: 2;+ column-fill: auto;+ column-gap: 0;+}+#outer {+ width: 100px;+ height: 100px;+}+#nested {+ width: 100%;+ height: 200px;+ /* column-gap should be resolved to 50px * 30% = 15px. */+ column-gap: 30%;+}+#abscb {+ position: relative;+ width: 100%;++ /* Use a height less than the outer column container's height 100px to trigger+ the bug. */+ height: 50px;+}+#abspos {+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ height: 400px;+ background: green;+}+</style>++<div id="outer" class="multicol">+ <div id="nested" class="multicol">+ <div id="abscb">+ <div id="abspos"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-column-rule-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-column-rule-001.xhtnew file mode 100644index 00000000000..13f8f7d3815--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-column-rule-001.xht@@ -0,0 +1,123 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <!--+ This test's original filename was multicol-inherit-004.xht+ and it has been modified and is now+ multicol-nested-column-rule-001.xht+ -->+ <title>CSS Multi-column Layout Test: nested multi-columns and column-rule position</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-09 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-nested-column-rule-001-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks how the height of column boxes conditions the height of column rule." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body > div+ {+ column-rule: blue solid 1em;+ font: 1.25em/1 Ahem;+ width: 26em;+ }++ /*++ N == 3;++ W == max(0, (available-width - ((N - 1) * column-gap)) / N);+ W == max(0, (26em - ((3 - 1) * 1em)) / 3);+ W == max(0, (26em - (2 * 1em)) / 3);+ W == max(0, (26em - 2em) / 3);+ W == max(0, 24em / 3);+ W == max(0, 8em);+ W == 8em;++ So, the first column-rule should be at:++ 1.0em : margin-left of outer div+ 8.0em : width of 1st column box+ 0.0em : (1.0em / 2) - (1.0em / 2) : left edge of 1st column-rule+ =========+ 9.0em++ The 2nd column-rule should be at:++ 1.0em : margin-left of outer div+ 8.0em : width of 1st column box+ 1.0em : first column-gap+ 8.0em : width of 2nd column box+ 0.0em : (1.0em / 2) - (1.0em / 2) : left edge of 2nd column-rule+ =========+ 18.0em++ The height of column rule depends on number of line boxes in+ each outer column box which depends on number of line boxes+ in each inner column box. So:++ 8em : width of each outer column box+ -+ 2em : horizontal margin of each div inside+ =======+ 6em : width of each inner multi-column elements++ N == 3;++ W == max(0, (available-width - ((N - 1) * -column-gap)) / N);+ W == max(0, (6em - ((3 - 1) * 1em)) / 3);+ W == max(0, (6em - (2 * 1em)) / 3);+ W == max(0, (6em - 2em) / 3);+ W == max(0, 4em / 3);+ W == max(0, 1.33333em);+ W == 1.33333em;++ So, each duo of 'a', 'm' and 'x' should fill one and only 1 line+ box. There are 8 duos; therefore, the first 2 inner+ column boxes should use 3 line boxes and the 3rd inner+ column box should be using 2 line boxes.++ So, the height of the 2 blue column rules should be 60px.++ */++ div+ {+ background-color: white;+ color: white;+ font-size: 1em;+ margin: 0em 1em;+ orphans: 1;+ widows: 1;++ column-count: 3;+ column-gap: 1em;+ }+ ]]></style>+ </head>++ <body>++ <div>+ <div>+ aa aa+ aa aa+ aa aa+ aa aa+ </div>+ <div>+ mm mm+ mm mm+ mm mm+ mm mm+ </div>+ <div>+ xx xx+ xx xx+ xx xx+ xx xx+ </div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-margin-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-margin-001.xhtnew file mode 100644index 00000000000..e66b9472c61--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-margin-001.xht@@ -0,0 +1,77 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: multicolumn and nested margins</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-11 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pagination-and-overflow-outside-multicol" title="8.2. Pagination and overflow outside multicol elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-nested-margin-001-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that non-zero vertical margins can be applied on a multi-column element while the vertical margins of its own block containers can be set to zero." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body {margin: 0em;}++ body > div+ {+ font: 1.25em/1 Ahem;+ width: 32em;++ column-count: 3;+ column-gap: 1em;+ }++ /*++ N == 3;++ W == ((available-width + column-gap) / N) - column-gap;+ W == ((32em + 1em) / 3) - 1em;+ W == (33em / 3) - 1em;+ W == (11em) - 1em;+ W == 10em;++ */++ div+ {+ background: yellow;+ color: black;+ margin: 1em;+ orphans: 1;+ widows: 1;+ }++ div > div {margin: 0em 1em;}++ div div:nth-child(2) {color: pink;}++ div div:nth-child(3) {color: blue;}+ ]]></style>+ </head>++ <body>++ <div>+ <div>+ bl ac+ bl ac+ bl ac+ bl ac+ </div>+ <div>+ Pi nk+ Pi nk+ Pi nk+ Pi nk+ </div>+ <div>+ bl ue+ bl ue+ bl ue+ bl ue+ </div>+ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-margin-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-margin-002.xhtnew file mode 100644index 00000000000..1f314413dca--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-margin-002.xht@@ -0,0 +1,114 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: nested multicolumns and vertical margin (complex)</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-nested-margin-002-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that when an inner nested multi-column element is preceded by a soft column break (caused by an unforced column-break), then the used margin-top of such inner nested multi-column element is '0'." />++ <!--+ More info:+ Re: [css3-multicol] vertical margins rendering in nested multi-columns+ http://lists.w3.org/Archives/Public/www-style/2013Aug/0146.html+ -->++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body {margin: 0;}++ body > div+ {+ background-color: yellow;+ font: 1.25em/1 Ahem;+ width: 41em;+ /*+ This test requires a viewport width of 820px+ */+ }++ div+ {+ color: yellow;+ font: inherit;+ orphans: 1;+ widows: 1;++ column-count: 3;+ column-gap: 1em;+ }++ div div {margin: 0em 1em;}++ div div:last-child+ {+ color: blue;+ margin: 1em;+ }++ /*++ N == 3;++ W == max(0, (available-width - ((N - 1) * column-gap)) / N);+ W == max(0, (41em - ((3 - 1) * 1em)) / 3);+ W == max(0, (41em - (2 * 1em)) / 3);+ W == max(0, (41em - 2em) / 3);+ W == max(0, 39em / 3);+ W == max(0, 13em);+ W == 13em;++ The height of column rule depends on number of line boxes in+ each outer column box which depends on number of line boxes+ in each inner column box. So:++ 13em : width of each outer column box+ -+ 2em : horizontal margin of each div inside+ =======+ 11em : width of each inner multi-column elements++ N == 3;++ W == max(0, (available-width - ((N - 1) * column-gap)) / N);+ W == max(0, (11em - ((3 - 1) * 1em)) / 3);+ W == max(0, (11em - (2 * 1em)) / 3);+ W == max(0, (11em - 2em) / 3);+ W == max(0, 9em / 3);+ W == max(0, 3em);+ W == 3em;++ So, each duo of 'a', 'm' and 'x' should fill one and only 1+ line box. There are 15 'a' duos and 15 'm' duos; therefore,+ the 3 inner column boxes of each first 2 inner+ multi-column elements should use 5 line boxes.++ The 1st column box of last inner multi-column+ (the blue one with 'x' duos) should have 'x1',+ 'x2' and 'x3' duos filling 3 line boxes.++ The 2nd column box of last inner multi-column should+ have 'x4', 'x5' and 'x6' duos filling 3 line boxes.++ The 3rd column box of the last inner multi-column should+ have 'x7' and 'x8' duos filling 2 line boxes.+ */++ ]]></style>+ </head>+ <body>++ <div>++ <div> a1 a2 a3 a4 a5 a6 a7 a8 a9 a0 a1 a2 a3 a4 a5 </div>++ <div> m1 m2 m3 m4 m5 m6 m7 m8 m9 m0 m1 m2 m3 m4 m5 </div>++ <div> x1 x2 x3 x4 x5 x6 x7 x8 </div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-margin-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-margin-003.xhtnew file mode 100644index 00000000000..8586f3295ce--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-nested-margin-003.xht@@ -0,0 +1,97 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: nested multicolumn and nested margin-top</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-14 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-nested-margin-003-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that a top margin set on the first child element of a nested multicol element will not collapse with the margins of the multicol element." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body > div+ {+ font: 1.25em/1 Ahem;+ margin: 1em;+ width: 41em;+ /*+ This test requires a viewport width of 860px+ */+ }++ div+ {+ background-color: yellow;+ color: black;+ margin: 1em 1em 0;+ orphans: 1;+ widows: 1;++ column-count: 3;+ column-gap: 1em;+ }++ /*++ N == 3;++ 43em - 2em (horizontal margins) == available-width++ W == max(0, (available-width - ((N - 1) * column-gap)) / N);+ W == max(0, (41em - ((3 - 1) * 1em)) / 3);+ W == max(0, (41em - (2 * 1em)) / 3);+ W == max(0, (41em - 2em) / 3);+ W == max(0, 39em / 3);+ W == max(0, 13em);+ W == 13em;++ 13em : width of each outer column box+ -+ 2em : horizontal margin of each div inside+ =======+ 11em : width of each inner multi-column elements++ N == 3;++ W == max(0, (available-width - ((N - 1) * column-gap)) / N);+ W == max(0, (11em - ((3 - 1) * 1em)) / 3);+ W == max(0, (11em - (2 * 1em)) / 3);+ W == max(0, (11em - 2em) / 3);+ W == max(0, 9em / 3);+ W == max(0, 3em);+ W == 3em;++ */++ div div:nth-child(2) {color: pink;}++ div div:nth-child(3) {color: blue;}+ ]]></style>+ </head>++ <body>++ <div>+ <div>+ bl ac+ bl ac+ bl ac+ bl ac+ </div>+ <div>+ Pi nk+ Pi nk+ Pi nk+ Pi nk+ </div>+ <div>+ bl ue+ bl ue+ bl ue+ bl ue+ </div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-oof-inline-cb-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-oof-inline-cb-001.htmlnew file mode 100644index 00000000000..4d76c2cbf80--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-oof-inline-cb-001.html@@ -0,0 +1,60 @@+<!DOCTYPE html>+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-oof-inline-cb-001-ref.html"/>+<meta name="assert" content="Out-of-flow in inline containing block across inline-block">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]" />+<style>+section {+ width: 300px;+ height: 100px;+ border: blue 1px solid;+}+.columns {+ column-width: 100px;+ column-fill: auto;+ height: 100px;+}+inline-block {+ display: inline-block;+}+.cb {+ position: relative;+}+abs {+ position: absolute;+ background: purple;+ width: 100px;+ height: 50px;+}+abs.p0 {+ top: 0; left: 0;+ background: blue;+}+</style>+<body>+ <!-- OOF with inline-CB across inline-block. -->+ <section>+ 123+ <span class="cb">+ 456<br>+ <inline-block>+ 7+ <abs></abs>+ <abs class="p0"></abs>+ </inline-block>+ </span>+ </section>++ <!-- Same in multicol. -->+ <section class="columns">+ 123+ <span class="cb">+ 456<br>+ <inline-block>+ 7+ <abs></abs>+ <abs class="p0"></abs>+ </inline-block>+ </span>+ </section>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-oof-inline-cb-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-oof-inline-cb-002.htmlnew file mode 100644index 00000000000..60f19a1d028--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-oof-inline-cb-002.html@@ -0,0 +1,57 @@+<!DOCTYPE html>+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-oof-inline-cb-001-ref.html"/>+<meta name="assert" content="Out-of-flow in inline containing block across block-in-inline">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]" />+<style>+section {+ width: 300px;+ height: 100px;+ border: blue 1px solid;+}+.columns {+ column-width: 100px;+ column-fill: auto;+ height: 100px;+}+.cb {+ position: relative;+}+abs {+ position: absolute;+ background: purple;+ width: 100px;+ height: 50px;+}+abs.p0 {+ top: 0; left: 0;+ background: blue;+}+</style>+<body>+ <!-- OOF with inline-CB across block-in-inline. -->+ <section>+ 123+ <span class="cb">+ 456<br>+ <div>+ 7+ <abs></abs>+ <abs class="p0"></abs>+ </div>+ </span>+ </section>++ <!-- Same in multicol. -->+ <section class="columns">+ 123+ <span class="cb">+ 456<br>+ <div>+ 7+ <abs></abs>+ <abs class="p0"></abs>+ </div>+ </span>+ </section>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-000.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-000.xhtnew file mode 100644index 00000000000..35d444a31ab--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-000.xht@@ -0,0 +1,50 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: multi-column with set height causing overflow outside (basic)</title>+ <link rel="author" title="Hakon Wium Lie" href="mailto:[email protected]" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pagination-and-overflow-outside-multicol" title="8.2. Pagination and overflow outside multicol elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-overflow-000-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that column gap appears between two columns." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div, table+ {+ background-color: yellow;+ color: lime;+ font: 1.25em/1 Ahem;+ margin: 1em 0;+ }++ div+ {+ columns: 2;+ column-fill: balance;+ column-gap: 0px;+ height: 2em;+ width: 20em;+ }++ table+ {+ border-right: lime solid 1em;+ border-spacing: 0px;+ table-layout: fixed;+ width: 21em;+ }++ td {padding: 0em;}+ ]]></style>+ </head>+ <body>++ <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>++ <div id="test">A<br />B<br />C<br />D<br />E<br />F</div>++ <table id="reference"><tr><td>G<br />H</td><td>I<br />J</td></tr></table>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-clip-auto-sized.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-clip-auto-sized.htmlnew file mode 100644index 00000000000..210b0a620b9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-clip-auto-sized.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<title>CSS Multi-column Layout Test: multicol with overflow-clipped content</title>+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="help" href="https://drafts.csswg.org/css-break/#possible-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-overflow-clip-auto-sized-ref.html">+<meta name="assert" content="Overflow clip sized to content should not clip even under multicol.">+<div style="columns: 2">+ <div>Column1</div>+ <div style="overflow: hidden; padding: 2px">Column2<br>Column2 line2</div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-clip-positioned.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-clip-positioned.htmlnew file mode 100644index 00000000000..a454ea48e13--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-clip-positioned.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<title>CSS Multi-column Layout Test: multicol with overflow-clipped positioned content</title>+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-overflow-clip-positioned-ref.html">+<meta name="assert" content="Overflow clip for positioned content should work under multicol.">+<div style="columns: 2">+ <div style="height: 200px; overflow: hidden">+ <div style="height: 800px; background: blue; position: relative"></div>+ </div>+ <div style="height: 200px"></div>+</div>+diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-clip.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-clip.htmlnew file mode 100644index 00000000000..322d113edef--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-overflow-clip.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<title>CSS Multi-column Layout Test: multicol with overflow-clipped content</title>+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-overflow-clip-ref.html">+<meta name="assert" content="Overflow clip should work under multicol.">+<style>+.multicol {+ column-count: 3;+}+.parent {+ background: green;+ height: 50px;+ overflow: hidden;+}+.child2 {+ margin-top: 50px;+ background: darkred;+ color: red;+ height: 100px;+}+</style>+<div class="multicol">+ <div class="parent">+ <div class="child2">This should be hidden.</div>+ </div>+ <div class="parent">+ <div class="child2">This should be hidden.</div>+ </div>+ <div class="parent">+ <div class="child2">This should be hidden.</div>+ </div>+</div>+diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-002.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-002.xhtnew file mode 100644index 00000000000..faf5251ee6d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-002.xht@@ -0,0 +1,64 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-rule</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-gaps-and-rules"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-rule-ref.xht"/>+<meta name="flags" content="ahem"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: yellow;+ margin: 1em;+ border: 1em solid gray;+ width: 15em;+ position: relative;+ orphans: 1;+ widows: 1;++ column-count: 4;+ column-gap: 1em;+}+span {+ background: blue;+ position: absolute;+ top: 0;+ left: 3em;+ height: 2em;+ width: 1em;+}+span+span {+ left: 7em;+}+span+span+span {+ left: 11em;+}+]]></style>+</head>++<body>++<div>+ xx xx+<span>+</span>+ xx xx+<span>+</span>+ xx xx+<span>+</span>+ xx xx+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-fraction-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-fraction-003.xhtnew file mode 100644index 00000000000..87eca246f17--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-fraction-003.xht@@ -0,0 +1,64 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-rule</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-gaps-and-rules"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-rule-fraction-3-ref.xht"/>+<meta name="flags" content="ahem"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: yellow;+ margin: 1em;+ border: 1em solid gray;+ width: 14em;+ position: relative;+ orphans: 1;+ widows: 1;++ column-count: 4;+ column-gap: 1em;+}+span {+ background: blue;+ position: absolute;+ top: 0;+ left: 2.4em;+ height: 2em;+ width: 1em;+}+span+span {+ left: 6.15em;+}+span+span+span {+ left: 9.9em;+}+]]></style>+</head>++<body>++<div>+ xx xx+<span>+</span>+ xx xx+<span>+</span>+ xx xx+<span>+</span>+ xx xx+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-nested-balancing-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-nested-balancing-001.htmlnew file mode 100644index 00000000000..b5f5cd33d5d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-nested-balancing-001.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test the column rules' block-size with nested balancing multicol container</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#cf">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-gaps-and-rules">+ <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/2309">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-rule-nested-balancing-001-ref.html">+ <meta name="assert" content="This test verifies that the column-rules are extended to the content block-end edges of their corresponding inner and outer multicol container.">++ <style>+ .outer {+ column-count: 2;+ column-rule: 6px solid black;+ width: 400px;+ height: 250px;+ }+ .inner {+ column-count: 2;+ column-rule: 3px solid gray;+ height: 200px;+ }+ .outer-block {+ background-color: lightgreen;+ height: 200px;+ }+ .inner-block {+ background-color: lightblue;+ height: 300px;+ }+ </style>++ <article class="outer">+ <div class="outer-block"></div>+ <article class="inner">+ <div class="inner-block"></div>+ </article>+ </article>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-nested-balancing-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-nested-balancing-002.htmlnew file mode 100644index 00000000000..10c97c95b10--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-nested-balancing-002.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test the column rules' block-size with nested balancing multicol container</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#cf">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-gaps-and-rules">+ <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/2309">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-rule-nested-balancing-002-ref.html">+ <meta name="assert" content="This test verifies that the column-rules are extended to the content block-end edges of their corresponding inner and outer multicol container, where the inner container has height: auto.">++ <style>+ .outer {+ column-count: 2;+ column-rule: 6px solid black;+ width: 400px;+ height: 250px;+ }+ .inner {+ column-count: 2;+ column-rule: 3px solid gray;+ height: auto;+ }+ .outer-block {+ background-color: lightgreen;+ height: 200px;+ }+ .inner-block {+ background-color: lightblue;+ height: 400px;+ }+ </style>++ <article class="outer">+ <div class="outer-block"></div>+ <article class="inner">+ <div class="inner-block"></div>+ </article>+ </article>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-px-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-px-001.xhtnew file mode 100644index 00000000000..efcf7e36632--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-px-001.xht@@ -0,0 +1,61 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-rule</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-gaps-and-rules"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-rule-ref.xht"/>+<meta name="flags" content="ahem"/>+<meta name="assert" content="Test checks that a column-rule-width value set in pixels is rendered correctly. The width of the rule should be 16px." />+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: yellow;+ margin: 1em;+ border: 1em solid gray;+ width: 15em;+ orphans: 1;+ widows: 1;++ column-count: 4;+ column-gap: 1em;+ column-rule-color: blue;+ column-rule-width: 16px;+ column-rule-style: solid;+}+span {+ background: blue;+ position: absolute;+ top: 0;+ left: 3em;+ height: 2em;+ width: 16px;+}+span+span {+ left: 7em;+}+span+span+span {+ left: 11em;+}+]]></style>+</head>++<body>++<div id="one">+ xx xx+ xx xx+ xx xx+ xx xx+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-shorthand-2.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-shorthand-2.xhtnew file mode 100644index 00000000000..b8c9a73587d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-shorthand-2.xht@@ -0,0 +1,47 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>CSS Multi-column Layout Test: 'column-rule' shorthand</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="help" href=""/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-rule-shorthand-2-ref.xht"/>+<meta name="assert" content="Tests that column rules are not displayed for invalid properties and values."/>+<meta name="flags" content="ahem invalid"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 1em;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: yellow;+ margin: 1em 0;+ border: 1em solid gray;+ width: 15em;++ column-count: 4;+ column-gap: 1em;+ column-rule: solid blue 1em;+ column-rule: normal red 1em; /* invalid: 'normal' is not a 'border-style' */+ column: normal red 1em; /* invalid: 'column' is not a valid property name; 'normal' can only apply to 'column-gap' */+}++]]></style>+</head>++<body>+<p>Pass if there is no red visible.</p>++<div>+ xx xx+ xx xx+ xx xx+ xx xx+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-stacking-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-stacking-001.xhtnew file mode 100644index 00000000000..602f29e5400--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-rule-stacking-001.xht@@ -0,0 +1,48 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-count, stacking</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-gaps-and-rules"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-rule-stacking-ref.xht"/>+<meta name="flags" content="ahem"/>+<meta name="assert" content="The test checks that the span element, which has a higher 'z-index' stacks on top of the other elements in the multicol container." />+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: blue;+ background: red;+ margin: 1em;+ border: 1em solid gray;+ width: 14em;++ column-count: 4;+ column-gap: 1em;+ column-rule: 28em solid blue;+}+span {+ color: black;+ position: relative;+ z-index: 1;+}+]]></style>+</head>++<body>++<div>+ xx xx+ xx xx+ <span>xx xx</span>+ xx xx+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-shorthand-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-shorthand-001.xhtnew file mode 100644index 00000000000..ff7ce611f2a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-shorthand-001.xht@@ -0,0 +1,61 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | invalid</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of-columns"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-rule-ref.xht"/>+<meta name="flags" content="ahem invalid"/>+<meta name="assert" content="Testing that invalid property names used as a shorthand do not result in column-rules being displayed." />+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: black;+ background: yellow;+ margin: 1em;+ border: 1em solid gray;+ width: 15em;+ orphans: 1;+ widows: 1;++ column-count: 4;+ column-gap: 1em;+ column-rule: solid blue 1em;+ column: normal red 1em; /* column is not a valid property */+ columns: normal red 1em; /* columns is a shorthand for colun-width and column-count */+}+span {+ background: blue;+ position: absolute;+ top: 0;+ left: 3em;+ height: 2em;+ width: 1em;+}+span+span {+ left: 7em;+}+span+span+span {+ left: 11em;+}+]]></style>+</head>++<body>++<div>+ xx xx+ xx xx+ xx xx+ xx xx+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-button-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-button-001.htmlnew file mode 100644index 00000000000..d87116aba65--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-button-001.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a multi-column container on button works with a column-span:all child</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-span-all-button-001-ref.html">+ <meta name="assert" content="This test checks the page is rendered correctly for a multi-column container on button with a column-span:all child.">++ <style>+ button {+ column-count: 3;+ column-rule: 6px solid;+ width: 400px;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ </style>++ <button>+ <div>block1</div><div>block2</div>+ <h3>spanner</h3>+ <div>block3</div><div>block4</div>+ </button>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-button-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-button-002.htmlnew file mode 100644index 00000000000..63b9349f666--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-button-002.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on button works with a column-span:all child and position:absolute boxes</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-span-all-button-002-ref.html">+ <meta name="assert" content="This test checks the page is rendered correctly for a overflow:hidden and position:absolute button multi-column container with a column-span:all child and position:absolute boxes.">++ <style>+ button {+ column-count: 3;+ column-rule: 6px solid;+ width: 400px;+ padding: 1em;+ overflow: hidden;+ position: absolute;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ a {+ position: absolute;+ width: 1em;+ height: 1em;+ background-color: blue;+ }+ </style>++ <button>+ <div>block1</div><div>block2</div><a></a>+ <h3>spanner<a></a></h3>+ <div>block3</div><div>block4</div><a></a>+ </button>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-button-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-button-003.htmlnew file mode 100644index 00000000000..eaf7c458890--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-button-003.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on button works with a column-span:all child and position:fixed boxes</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-span-all-button-003-ref.html">+ <meta name="assert" content="This test checks the page is rendered correctly for a overflow:hidden and position:absolute button multi-column container with a column-span:all child and position:absolute boxes.">++ <style>+ button {+ column-count: 3;+ column-rule: 6px solid;+ width: 400px;+ padding: 1em;+ overflow: hidden;+ position: absolute;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ a {+ position: fixed;+ width: 1em;+ height: 1em;+ background-color: blue;+ }+ </style>++ <button>+ <div>block1</div><div>block2</div><a></a>+ <h3>spanner<a></a></h3>+ <div>block3</div><div>block4</div><a></a>+ </button>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-fieldset-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-fieldset-001.htmlnew file mode 100644index 00000000000..ecce93bb16b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-fieldset-001.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a multi-column container on fieldset works with a column-span:all child</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-001-ref.html">+ <meta name="assert" content="This test checks the page is rendered correctly for a simple fieldset multi-column container with a column-span:all child.">++ <style>+ fieldset {+ column-count: 3;+ column-rule: 6px solid;+ width: 400px;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ </style>++ <fieldset>+ <legend>Legend</legend>+ <div>block1</div><div>block2</div>+ <h3>spanner</h3>+ <div>block3</div><div>block4</div>+ </fieldset>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-fieldset-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-fieldset-002.htmlnew file mode 100644index 00000000000..c4a8b2e1954--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-fieldset-002.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on fieldset works with a column-span:all child and position:absolute boxes</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-002-ref.html">+ <meta name="assert" content="This test checks the page is rendered correctly for a overflow:hidden and position:absolute fieldset multi-column container with a column-span:all child and position:absolute boxes.">++ <style>+ fieldset {+ column-count: 3;+ column-rule: 6px solid;+ width: 400px;+ overflow: hidden;+ position: absolute;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ a {+ position: absolute;+ width: 1em;+ height: 1em;+ background-color: blue;+ }+ </style>++ <fieldset>+ <legend>Legend<a></a></legend>+ <div>block1</div><div>block2</div><a></a>+ <h3>spanner<a></a></h3>+ <div>block3</div><div>block4</div><a></a>+ </fieldset>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-fieldset-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-fieldset-003.htmlnew file mode 100644index 00000000000..a4125df9f4d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-fieldset-003.html@@ -0,0 +1,37 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <title>CSS Multi-column Layout Test: Test a overflow:hidden and position:absolute multi-column container on fieldset works with a column-span:all child and position:fixed boxes</title>+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-span-all-fieldset-003-ref.html">+ <meta name="assert" content="This test checks the page is rendered correctly for a overflow:hidden and position:absolute fieldset multi-column container with a column-span:all child and position:absolute boxes.">++ <style>+ fieldset {+ column-count: 3;+ column-rule: 6px solid;+ width: 400px;+ overflow: hidden;+ position: absolute;+ }+ h3 {+ column-span: all;+ outline: 1px solid blue;+ }+ a {+ position: fixed;+ width: 1em;+ height: 1em;+ background-color: blue;+ }+ </style>++ <fieldset>+ <legend>Legend<a></a></legend>+ <div>block1</div><div>block2</div><a></a>+ <h3>spanner<a></a></h3>+ <div>block3</div><div>block4</div><a></a>+ </fieldset>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-margin-nested-firstchild-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-margin-nested-firstchild-001.xhtnew file mode 100644index 00000000000..89ce8b0c3e7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-all-margin-nested-firstchild-001.xht@@ -0,0 +1,80 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | column-span</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#spanning-columns"/>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-span-all-margin-nested-firstchild-ref.xht"/>+<meta name="flags" content="ahem"/>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+body {+ margin: 0;+}+body>div {+ font-family: Ahem;+ font-size: 1em;+ line-height: 1em;+ color: navy;+ background: yellow;+ margin: 1em;+ border: 1em solid gray;+ width: 8em;+ float: left;+ orphans: 1;+ widows: 1;+ overflow: hidden;++ column-count: 4;+ column-gap: 0;+}+span, h6 {+ font-family: Ahem;+ font-size: 1em;+ font-weight: normal;+ line-height: 1em;+ color: black;+ background: black;+ padding: 0;+ margin: 0;+ display: block;+}+h6 {+ margin: 1em 0;+ width: 11em;+ column-span: all;+}+span {+ color: pink;+ background: pink;+ margin: 2em 0;+}+h6~h6 {+ color: black;+ background: black;+ height: 1em;+}+h6~h6>span {+ background: pink;+ color: pink;+ margin: -2em 0 0;+}+]]></style>+</head>++<body>++<div>+ xx xx xx xx+ xx xx xx xx++ <h6><span>xxxxx</span></h6>+ <h6><span>xxxxx</span></h6>++ xx xx xx xx+ xx xx xx xx+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-float-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-float-001.xhtnew file mode 100644index 00000000000..09a110682b5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-span-float-001.xht@@ -0,0 +1,65 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: floating a column-spanning element</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-22 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-span" title="6.1. 'column-span'" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-span-float-001-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that 'column-span' does not apply to floating element." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background-color: yellow;+ border: gray solid 1em;+ color: navy;+ font: 1.25em/1 Ahem;+ margin-left: 5em;+ orphans: 1;+ widows: 1;+ width: 11em;++ column-count: 2;+ column-gap: 1em;++ /*++ N == 2;++ W == 5em;++ */+ }++ span+ {+ display: block;+ font: inherit;+ margin: 0;+ width: 11em;++ column-span: all;+ }++ span:first-child+ {+ background-color: pink;+ color: pink;+ float: right;+ }++ span + span {color: black;}+ ]]></style>+ </head>+ <body>++ <div>+ <span>Pinkk</span>+ <span>black</span>+ navyy navyy+ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-width-003.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-width-003.xhtnew file mode 100644index 00000000000..3f5b5bde987--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-width-003.xht@@ -0,0 +1,60 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: column-width (basic)</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->+ <link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model" title="The Multi-column Model" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-width-002-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="Test to check that the multicol container and not the column box becomes the containing box"/>+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#multi-column+ {+ background-color: yellow;+ border: gray solid 1em;+ color: black;+ font: 1.25em/1 Ahem;+ height: 2em;+ position: relative;+ width: 12em;+ column-width: 6em;+ column-gap: 0;+ }++ div > div+ {+ background-color: black;+ height: 2em;+ position: absolute;+ top: 0;+ width: 2em;+ }++ div#s2 {right: 7em;}++ div#s3+ {+ background-color: blue;+ right: 4em;+ }++ div#s4+ {+ background-color: blue;+ right: 1em;+ }+ ]]></style>+ </head>+ <body>+ <p>Test passes if there are two black bars and two blue bars with a yellow stripe to the right of each bar, matching reference.</p>+ <div id="multi-column">+ <div></div>+ <div id="s2"></div>+ <div id="s3"></div>+ <div id="s4"></div>+ </div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-width-small-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-width-small-001.xhtnew file mode 100644index 00000000000..c0a0added86--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/multicol-width-small-001.xht@@ -0,0 +1,58 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: narrow column-width</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-24 -->+ <link rel="help" href="https://www.w3.org/TR/css-multicol-1/#overflow-inside-multicol-elements" title="8.1. Overflow inside multicol elements" />+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw" title="3.1. 'column-width'" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/multicol-width-small-001-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that a set 'column-width' which is small with regards to width of multi-column element." />+ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body > div+ {+ background-color: yellow;+ border: gray solid 1em;+ color: black;+ font: 1.25em/1 Ahem;+ orphans: 1;+ widows: 1;+ width: 12em;++ column-gap: 0;+ column-width: 1em;+ }+ div > div { overflow: clip; }++ span {color: blue;}+ ]]></style>+ </head>+ <body>+ <p>This test passes is it is idential to the reference.</p>+ <div>+ <div>+ Bl ac+ <span>+ bl ue+ </span>+ <span>+ bl ue+ </span>+ Bl ac+ </div>+ </div>++ <!--++ Expected results++ *************************+ *B|a|b|u|b|u|B|a| | | | *+ *************************++ -->++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/named-page.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/named-page.htmlnew file mode 100644index 00000000000..daecb6faf4d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/named-page.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1100308">+<meta name="assert" content="The 'page' property should only have an effect if we're paginated, i.e. not inside multicol containers (unless we're also paginated)">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:1; column-fill:auto; width:100px; height:100px; background:red;">+ <div style="height:50px; background:green;"></div>+ <div style="page:bogus; height:50px; background:green;"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-at-outer-boundary-as-fieldset.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-at-outer-boundary-as-fieldset.htmlnew file mode 100644index 00000000000..3d1a7c1bd2e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-at-outer-boundary-as-fieldset.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="margin-left:-100px; columns:2; height:100px; width:200px; column-gap:0; column-fill:auto; background:red;">+ <div style="height:100px; background:white;"></div>+ <fieldset style="columns:2; column-gap:0; border:none; margin:0; padding:0; background:red;">+ <div style="height:200px; background:green;"></div>+ </fieldset>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-at-outer-boundary-as-legend.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-at-outer-boundary-as-legend.htmlnew file mode 100644index 00000000000..84c083a8cdc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-at-outer-boundary-as-legend.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="margin-left:-100px; columns:2; height:100px; width:200px; column-gap:0; column-fill:auto; background:red;">+ <div style="height:100px; background:white;"></div>+ <fieldset style="border:none; margin:0; padding:0; background:red;">+ <legend style="columns:2; column-gap:0; margin:0; padding:0; width:100%;">+ <div style="height:200px; background:green;"></div>+ </legend>+ </fieldset>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-oofs-in-relative-multicol.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-oofs-in-relative-multicol.htmlnew file mode 100644index 00000000000..c4eced2e084--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-oofs-in-relative-multicol.html@@ -0,0 +1,38 @@+<!DOCTYPE html>+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/reference/nested-oofs-in-relative-multicol-ref.html">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#propdef-column-count">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+.outer {+ position: relative;+ margin-left: 100px;+ width: 400px;+ height: 400px;+ column-count: 2;+ overflow: hidden;+ background: yellow;+}+.cb {+ position: absolute;+ top: 0;+ left: 0;+ width: 400px;+ height: 400px;+ background: red;+}+.img {+ position: absolute;+ top: 0;+ left: 0;+ width: 400px;+ height: 400px;+ background: green;+}+</style>+<body>+ <div class="outer">+ <div class="cb">+ <div class="img"></div>+ </div>+ </div>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-past-fragmentation-line.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-past-fragmentation-line.htmlnew file mode 100644index 00000000000..92b4bdb660e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-past-fragmentation-line.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<ling rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1287411">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-gap:0; column-fill:auto; width:100px; height:100px; background:red;">+ <div style="height:150px; contain:size;">+ <div style="height:100px; background:green;"></div>+ </div>+ <div style="columns:2; column-gap:0; column-fill:auto; border-top:5px solid green; height:95px;">+ <div style="height:190px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-with-padding-and-spanner.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-with-padding-and-spanner.htmlnew file mode 100644index 00000000000..615f7d185f2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-with-padding-and-spanner.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1006249">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-fill:auto; width:500px; height:500px; margin-top:-1px;">+ <div style="columns:2; column-fill:auto; height:400px; padding-top:1px;">+ <div></div>+ <div style="width:100px; column-span:all; background:red;">+ <div style="height:50px; break-inside:avoid; background:green;"></div>+ <div style="height:50px; break-inside:avoid; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-with-too-tall-line.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-with-too-tall-line.htmlnew file mode 100644index 00000000000..d1fd0f0bcf6--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/nested-with-too-tall-line.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model">+<link rel="help" href="https://drafts.csswg.org/css-break/#unforced-breaks">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/nested-with-too-tall-line-ref.html">+<style>+ .multicol { columns:2; column-fill:auto; }+</style>+<p>The word "PASS" should be seen below, and there should be no red.</p>+<div class="multicol" style="width:100px; height:100px; line-height:200px;">+ <div class="multicol" style="height:200px; column-rule:solid red;">+ PASS+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/no-balancing-after-column-span.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/no-balancing-after-column-span.htmlnew file mode 100644index 00000000000..178627d7186--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/no-balancing-after-column-span.html@@ -0,0 +1,33 @@+<!DOCTYPE html>+<html>+ <meta charset="utf-8">+ <link rel="author" title="Ting-Yu Lin" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="http://www.mozilla.org/">+ <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">+ <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/4689">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <meta name="assert" content="This test verifies columns are not balancing after a column-spanning element in a fixed height and column-fill:auto column container.">++ <style>+ .columns {+ column-fill: auto;+ column-count: 2;+ column-gap: 0;+ width: 200px;+ height: 100px;+ }+ .colspan {+ column-span: all;+ }+ .content {+ height: 100px;+ background: green;+ }+ </style>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div class="columns">+ <div class="colspan"></div>+ <div class="content"></div>+ </div>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/non-adjacent-spanners-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/non-adjacent-spanners-001.htmlnew file mode 100644index 00000000000..04deaab1c3a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/non-adjacent-spanners-001.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-gap:0; width:100px; background:red;">+ <div style="height:200px; background:green;">+ <div style="column-span:all;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/oof-nested-in-single-column.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/oof-nested-in-single-column.htmlnew file mode 100644index 00000000000..f51f3a580fd--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/oof-nested-in-single-column.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1329877">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1329424">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="column-count:1; column-fill:auto;">+ <div style="width:100px; height:50px; background:green;"></div>+ <div>+ <div style="position:relative; width:100px; height:50px; background:red;">+ <div style="width:100px; height:50px; position:absolute; background:green;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/orthogonal-writing-mode-shrink-to-fit.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/orthogonal-writing-mode-shrink-to-fit.htmlnew file mode 100644index 00000000000..3f8b504d732--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/orthogonal-writing-mode-shrink-to-fit.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<title>Orthogonal writing mode root inside shrink-to-fit multicol container</title>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<link rel="help" href="https://www.w3.org/TR/css-sizing-3/#intrinsic-sizes" title="4.1. Intrinsic Sizes">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="float:left; columns:1; column-gap:0; height:100px; background:green;">+ <div style="writing-mode:vertical-rl;">+ <div style="width:100px; height:100px;"></div>+ </div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/orthogonal-writing-mode-spanner.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/orthogonal-writing-mode-spanner.htmlnew file mode 100644index 00000000000..c0e65cf230c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/orthogonal-writing-mode-spanner.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:4; column-gap:0;">+ <div style="writing-mode:vertical-rl; column-span:all; background:green;">+ <div style="width:100px; height:50px;"></div>+ </div>+ <div style="height:200px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/page-property-ignored.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/page-property-ignored.htmlnew file mode 100644index 00000000000..70219df8cbf--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/page-property-ignored.html@@ -0,0 +1,13 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-page-3/#using-named-pages">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<meta name="assert" content="The 'page' property affects breaking, but only for pagination, and not for multicol. Test that it has no effect inside multicol.">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; background:red;">+ <div style="columns:3; column-fill:auto; gap:0; width:300px; height:100px;">+ <div style="height:50px; background:green;"></div>+ <div style="page:foo; height:25px; background:green;"></div>+ <div style="page:bar; height:25px; background:green;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/relative-child-overflowing-column-gap.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/relative-child-overflowing-column-gap.htmlnew file mode 100644index 00000000000..f83d282f1c5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/relative-child-overflowing-column-gap.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<title>Relative child can overflow onto the column gap area</title>+<link rel="help" href="https://drafts.csswg.org/css-multicol/">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/relative-child-overflowing-column-gap-ref.html">++<style>+body {+ margin: 0px;+}++.multicol {+ width: 200px;+ column-count: 2;+ column-gap: 50px;+}++.relative-layer {+ position: relative;+}++.child {+ width: 100px;+ height: 100px;+ background: green;+}+</style>+<div class="multicol">+ <div class="relative-layer">+ <div class="child"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/remove-child-in-strict-containment-also-spanner.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/remove-child-in-strict-containment-also-spanner.htmlnew file mode 100644index 00000000000..b2cf59cc824--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/remove-child-in-strict-containment-also-spanner.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1279078">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="columns:2; column-gap:0; width:100px; background:red;">+ <div style="column-span:all; height:20px; background:green;"></div>+ <div style="contain:strict; height:80px; background:green;">+ <div id="elm" style="height:80px; background:red;"></div>+ </div>+ <div style="contain:strict; height:80px; background:green;"></div>+</div>+<script>+ document.body.offsetTop;+ elm.style.display = "none";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/remove-inline-with-block-beside-spanners.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/remove-inline-with-block-beside-spanners.htmlnew file mode 100644index 00000000000..f7bbea980a7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/remove-inline-with-block-beside-spanners.html@@ -0,0 +1,24 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#column-span">+<meta name="assert" content="Margins of two adjacent spanners will collapse with each other">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square-only.html">+<style>+ #spanner1 {+ column-span: all;+ margin-bottom: 100px;+ }+ #spanner2 {+ column-span: all;+ margin-top: 100px;+ }+</style>+<p>Test passes if there is a filled green square.</p>+<div style="columns:3; width:100px; background:green;">+ <div id="spanner1"></div>+ <span id="inlineWithBlock"><div></div></span><div id="spanner2"></div>+</div>+<script>+ document.body.offsetTop;+ inlineWithBlock.style.display = "none";+</script>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/replaced-content-spanner-auto-width.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/replaced-content-spanner-auto-width.htmlnew file mode 100644index 00000000000..39e71cf39b8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/replaced-content-spanner-auto-width.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">+<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#block-replaced-width">+<link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+<div style="width:100px; height:100px; background:red;">+ <div style="columns:2; column-gap:0; width:50px;">+ <canvas style="display:block; column-span:all; background:green;" width="100" height="100"></canvas>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/resize-multicol-with-fixed-size-children-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/resize-multicol-with-fixed-size-children-002.htmlnew file mode 100644index 00000000000..20deb0cc610--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/resize-multicol-with-fixed-size-children-002.html@@ -0,0 +1,27 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://www.w3.org/TR/css-multicol-1/#columns">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div style="width:100px; height:100px; background:red;">+ <div id="multicol" style="columns:2; gap:0; column-fill:auto; width:60px; height:100px;">+ <div style="width:50px;">+ <div>+ <div>+ <div style="height:200px; background:green;"></div>+ </div>+ </div>+ </div>+ </div>+ </div>++ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ multicol.style.width = "100px";+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/resize-multicol-with-fixed-size-children.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/resize-multicol-with-fixed-size-children.htmlnew file mode 100644index 00000000000..4af061163db--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/resize-multicol-with-fixed-size-children.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1336180">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/../reference/ref-filled-green-100px-square.xht">+ <style>+ div.item {+ width:50px;+ height:50px;+ background:green;+ }+ </style>+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>+ <div id="container" style="columns:2; gap:0; column-fill:auto; width:200px; height:100px; background:red;">+ <div class="item"></div>+ <div class="item"></div>+ <div class="item"></div>+ <div class="item"></div>+ </div>++ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ container.style.width = "100px";+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/resize-with-text-after-paint.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/resize-with-text-after-paint.htmlnew file mode 100644index 00000000000..68f98e177fc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/resize-with-text-after-paint.html@@ -0,0 +1,35 @@+<!DOCTYPE html>+<html class="reftest-wait">+ <link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">+ <link rel="help" href="https://www.w3.org/TR/css-multicol-1/">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/resize-with-text-after-paint-ref.html">+ <p id="first" style="columns:3; width:50%; column-rule:solid;">+ Short loin tri-tip pork belly, tail venison capicola turducken sausage+ pork. Turkey ribeye pork belly chicken chuck, speck shank tail short loin+ bacon tongue prosciutto. Tenderloin pastrami turkey, rump ball tip+ frankfurter ham hock pork chop sausage filet mignon beef hamburger pork+ sirloin speck. Meatball pig pork chop, short loin shankle pork loin flank+ ball tip capicola ham hock pork shank turkey pastrami. Corned beef capicola+ ribeye turkey bresaola, ground round fatback turducken.+ </p>+ <p id="second" style="columns:3; width:200%; column-rule:solid;">+ Tenderloin ham boudin tongue sausage venison short ribs sirloin, kielbasa+ beef ribs. Strip steak shank bresaola salami spare ribs kielbasa fatback,+ cow t-bone flank leberkas sirloin. Jowl pork belly ribeye, corned beef+ sirloin chicken salami tail. Rump swine ham shank corned beef short loin,+ speck turkey pancetta shankle frankfurter. Pancetta tail fatback, ground+ round brisket biltong frankfurter turkey. Ham hock chicken strip steak,+ salami short ribs beef ribs pork sirloin pastrami pork loin turducken rump+ brisket andouille.+ </p>++ <script>+ requestAnimationFrame(()=> {+ requestAnimationFrame(()=> {+ first.style.width = "auto";+ second.style.width = "auto";+ document.documentElement.classList.remove("reftest-wait");+ });+ });+ </script>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/subpixel-column-rule-width.tentative.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/subpixel-column-rule-width.tentative.htmlnew file mode 100644index 00000000000..2d2ac07a17c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/subpixel-column-rule-width.tentative.html@@ -0,0 +1,94 @@+<!DOCTYPE html>+<html>+<head>+ <title>+ CSS Column-Rule: width computed value+ </title>++ <link rel="author" title="Traian Captan" href="mailto:[email protected]">+ <link rel="help" href="https://www.w3.org/TR/css-multicol-1/#crw">+ <link rel="match" href="../../../../expected/wpt-import/css/css-multicol/reference/subpixel-column-rule-width-ref.tentative.html">++ <meta name="assert" content="column-rule-width computed value after rounding.">++ <style>+ .columns {+ column-count: 2;+ column-rule: solid gray;+ width: 420px;+ height: 50px;+ }+ </style>+</head>++<body>+ <h1>+ Test passes if column rule widths are rounded up+ when they are greater than 0 and less than 1,+ and rounded down when they are greater than 1.+ </h1>++ <div class="columns" style="column-rule-width: 0.3px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 0.5px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 0.9px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 1.3px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 1.5px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 1.9px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 3.3px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 3.5px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>++ <div class="columns" style="column-rule-width: 3.9px;">+ Lorem ipsum dolor sit amet,+ consectetur adipisicing elit,+ sed do eiusmod tempor incididunt+ ut labore et dolore magna aliqua.+ </div>+</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/support/swatch-white.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/support/swatch-white.pngnew file mode 100644index 00000000000..1a7d4323d77Binary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/support/swatch-white.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/multicol-table-cell-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/multicol-table-cell-001.xhtnew file mode 100644index 00000000000..c1d9808d377--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/multicol-table-cell-001.xht@@ -0,0 +1,32 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: column-count and table-cell (basic)</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of-columns" title="3. The number and width of columns" />+ <link rel="match" href="../../../../../expected/wpt-import/css/css-multicol/table/multicol-table-cell-001-ref.xht"/>+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that 'column-count' applies to elements with 'display' set to 'table-cell'." />+ <link rel="stylesheet" type="text/css" href="../../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background-color: red;+ color: black;+ display: table-cell;+ font: 1.25em/1 Ahem;+ orphans: 1;+ widows: 1;++ column-count: 6;+ column-gap: 0em;+ }+ ]]></style>+ </head>+ <body>++ <div>P<br />A<br />S<br />S<br />E<br />D</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/multicol-table-cell-height-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/multicol-table-cell-height-001.xhtnew file mode 100644index 00000000000..d46d748daab--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/multicol-table-cell-height-001.xht@@ -0,0 +1,47 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <title>CSS Multi-column Layout Test: column-count and height of table-cell (basic)</title>+ <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />+ <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-23 -->+ <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of-columns" title="3. The number and width of columns" />+ <link rel="match" href="../../../../../expected/wpt-import/css/css-multicol/table/multicol-table-cell-height-001-ref.xht" />+ <meta name="flags" content="ahem" />+ <meta name="assert" content="This test checks that 'column-count' applies to elements with 'display' set to 'table-cell' which can be constrained with a set height." />+ <link rel="stylesheet" type="text/css" href="../../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background-color: yellow;+ color: black;+ display: table-cell;+ font: 1.25em/1 Ahem;+ height: 18em;+ orphans: 1;+ widows: 1;+ width: 15em;++ column-count: 2;+ column-gap: 2em;++ /*++ N == 2;++ W == 6.5em;++ */+ }+ ]]></style>+ </head>+ <body>++ <div>+ 111 222 333 444 555 666 777 888 999+ 111 222 333 444 555 666 777 888 999+ 111 222 333 444 555 666 777 888 999+ 111 222 333 444 555 666 777 888 999+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/multicol-table-cell-vertical-align-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/multicol-table-cell-vertical-align-001.xhtnew file mode 100644index 00000000000..fa674317fc8--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/multicol-table-cell-vertical-align-001.xht@@ -0,0 +1,37 @@+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">+<html xmlns="http://www.w3.org/1999/xhtml">+<head>+<title>multicolumn | table-cell, vertical-align</title>+<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>+<link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model"/>+<link rel="match" href="../../../../../expected/wpt-import/css/css-multicol/table/multicol-table-cell-vertical-align-ref.xht"/>+<meta name="flags" content="ahem"/>+<meta name="assert" content="This test checks that 'column-count' applies to elements with 'display' set to 'table-cell' which also use 'vertical-align: middle'. The 'vertical-align' property should still apply." />+<link rel="stylesheet" type="text/css" href="../../../fonts/ahem.css" />+<style type="text/css"><![CDATA[+div {+ font-family: Ahem;+ font-size: 20px;+ line-height: 1em;+ vertical-align: middle;+ color: white;+ background: #3366CC;+ width: 6em;+ height: 20em;+ display: table-cell;++ column-count: 2;+ column-gap: 0;+}+]]></style>+</head>++<body>++<div>+aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa+</div>++</body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/table-cell-as-multicol.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/table-cell-as-multicol.htmlnew file mode 100644index 00000000000..3f78c1f748a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-multicol/table/table-cell-as-multicol.html@@ -0,0 +1,12 @@+<!DOCTYPE html>+<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#propdef-column-count">+<link rel="match" href="../../../../../expected/wpt-import/css/css-multicol/table/table-cell-as-multicol-ref.html">+<p>You should see the word 'PASS' below.</p>+<div style="font-family:monospace;">+ <div style="display:table-cell; width:1em;">P</div>+ <div style="display:table-cell; width:3em; column-count:3; column-gap:0; orphans:1; widows:1;">+ A<br>+ S<br>+ S<br>+ </div>+</div>diff --git a/Tests/LibWeb/TestConfig.ini b/Tests/LibWeb/TestConfig.iniindex 2f1726c1303..ca491d1a415 100644--- a/Tests/LibWeb/TestConfig.ini+++ b/Tests/LibWeb/TestConfig.ini@@ -658,7 +658,7 @@ Text/input/HTML/ImageBitmap-retains-dimensions-when-serialized-or-transferred.ht[Skipped]; Needs vertical-rl inline geometry fidelity beyond the binary transposeRef/input/wpt-import/css/css-position/position-absolute-in-inline-006.html-; Need multicol fragmentation+; Need absolutely positioned boxes fragmented across columnsRef/input/wpt-import/css/css-position/position-absolute-in-inline-010.htmlRef/input/wpt-import/css/css-position/position-absolute-in-inline-011.html; Needs static-position invalidation when a relative ancestor moves