multicol-count-computed-004

both 'column-width' and 'column-count' are 'auto'

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem
Assertion
This test checks that if 'column-width' is 'auto' and if 'column-count' is 'auto', then such element will not behave like a multi-column element and column-gap and column-rule declarations will be ignored.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Multi-column Layout Test: both 'column-width' and 'column-count' are 'auto'</title>
 5   <link rel="author" title="Opera Software ASA" href="http://www.opera.com/">
 6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">  <!-- 2013-07-29 -->
 7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm">
 8   <link rel="match" href="reference/multicol-count-computed-004-ref.htm">
 9   <meta name="flags" content="ahem">
10   <meta name="assert" content="This test checks that if 'column-width' is 'auto' and if 'column-count' is 'auto', then such element will not behave like a multi-column element and column-gap and column-rule declarations will be ignored.">
11   <style type="text/css">
12   div
13   {
14   background: yellow;
15   border: gray solid 1em;
16   color: black;
17   font: 1.25em/1 Ahem;
18   orphans: 1;
19   widows: 1;
20   width: 12em;
21 
22   column-count: auto;
23   column-gap: 7em;
24   column-rule-color: red;
25   column-rule-width: 1.5em;
26   column-rule-style: solid;
27   }
28 
29   #pink {color: pink;}
30   #orange {color: orange;}
31   #purple {color: purple;}
32   #gray {color: gray;}
33   </style>
34  </head>
35 
36  <body>
37 
38   <div>
39 	<span id="pink">Pink</span>
40 	<span id="orange">oran</span>
41 	<span id="purple">PurP</span>
42 	<span id="gray">gray</span>
43   </div>
44 
45  </body>
46 </html>