mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision c26470dac73f2df9d4822a0d3482f7eb1ebf57d9
This commit is contained in:
parent
7de87c487b
commit
4d3c932c47
648 changed files with 9014 additions and 4821 deletions
|
@ -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="mstensho@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/css3-multicol/" 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>
|
|
@ -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="mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#cf" title="7.1. column-fill">
|
||||
<link rel="match" href="../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>
|
Loading…
Add table
Add a link
Reference in a new issue