blob: bc76caa5474259820d5a8a63a606fccab3b8c270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Multi-column Layout Test: 'column-fill: auto' and height constrained of a multi-column container</title>
<!--
See also
Bug 1348839: 'column-fill: auto' does not fill as expected, content ends up in one column
https://bugzilla.mozilla.org/show_bug.cgi?id=1348839
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<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.xht">
<meta content="This test verifies how content is distributed among columns when the height of a multi-column container is constrained and when 'column-fill' is set to 'auto'. In this test, the line box height is exactly 25px. So, content should fill 4 lines of the first column and should only fill up the first column. Since column rules are only drawn between two columns that both have content and since the test expects only 1 column filled with content, therefore the column rule should not be painted, thus the 'no red' test success condition." name="assert">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div
{
color: green;
column-count: 2;
column-fill: auto; /* fill columns sequentially */
column-gap: 4em; /* computes to 100px */
column-rule: red solid 4em;
font-family: Ahem;
/*
To download Ahem font:
http://www.w3.org/Style/CSS/Test/Fonts/Ahem/
*/
font-size: 25px;
line-height: 1;
max-height: 100px;
width: 300px;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.
<div>Abcd efgh ijkl mno.</div>
|