multicol-span-all-002

'column-span' element - large margin-left and 'overflow: hidden'

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem

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: 'column-span' element - large margin-left and 'overflow: hidden'</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-08-16 -->
 7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-span" title="6.1. 'column-span'">
 8   <link rel="match" href="reference/multicol-span-all-002-ref.htm">
 9   <meta name="flags" content="ahem">
10   <style type="text/css">
11   div
12   {
13   background-color: yellow;
14   border: gray solid 1em;
15   color: navy;
16   font: 1.25em/1 Ahem;
17   orphans: 1;
18   overflow: hidden;
19   widows: 1;
20   width: 8em;
21 
22   column-count: 4;
23   column-gap: 0em;
24 
25   /*
26 
27   N == 4;
28 
29   W == 2em;
30 
31   */
32 
33   }
34 
35   span {color: blue;}
36 
37   span + span {color: pink;}
38 
39   h4
40   {
41   background-color: black;
42   color: black;
43   font: inherit;
44   margin: 1em 0 1em 8em;
45 
46   column-span: all;
47   /*
48   Since there is not sufficient space for the
49   spanning element, UA may treat the element as
50   'column-span: none'; in which case,
51   'overflow: hidden' will take care of
52   overflowed content out of multi-column box.
53   */
54   }
55   </style>
56  </head>
57 
58  <body>
59 
60   <div>
61     <span id="top-first-and-second-columns"> bl ue bl ue </span>
62     <span id="top-third-and-fourth-columns"> Pi nk Pi nk </span>
63     <h4> sPana </h4>
64     ab cd ef gh
65     ij kl mn oq
66   </div>
67 
68  </body>
69 </html>