multicol-span-all-margin-001

'column-span: all' element and width exceeding available multi-colum width (complex)

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem, may
Assertion
This test checks that when 'overflow' is set to 'hidden' on a multi-column element, then any spanning ('column-span: all') element exceeding the available width of the multi-column should be clipped accordingly.

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: all' element and width exceeding available multi-colum width (complex)</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-18 -->
 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-margin-001-ref.htm">
 9   <meta name="flags" content="ahem may">
10   <meta name="assert" content="This test checks that when 'overflow' is set to 'hidden' on a multi-column element, then any spanning ('column-span: all') element exceeding the available width of the multi-column should be clipped accordingly.">
11   <style type="text/css">
12   div
13   {
14   background-color: yellow;
15   border: gray solid 1em;
16   color: navy;
17   font: 1.25em/1 Ahem;
18   orphans: 1;
19   overflow: hidden;
20   widows: 1;
21   width: 8em;
22 
23   column-count: 4;
24   column-gap: 0em;
25 
26   /*
27 
28   N == 4;
29 
30   W == 2;
31 
32   */
33   }
34 
35   h4
36   {
37   background: black;
38   color: black;
39   font: inherit;
40   margin: 1em 0;
41   width: 11em;
42 
43   column-span: all;
44 
45   /*
46   This is the target of the test: the spanning element's
47   width (11em) exceeds the available width of the
48   multi-column element. The 3em exceeding such
49   width is first clipped at column box boundary.
50   */
51   }
52 
53   span {color: blue;}
54 
55   span + span {color: pink;}
56   </style>
57  </head>
58 
59  <body>
60 
61   <div>
62     <span> bl ue bl ue </span>
63     <span> Pi nk Pi nk </span>
64     <h4> black </h4>
65     <h4> black </h4>
66     na vy na vy
67     na vy na vy
68   </div>
69 
70  </body>
71 </html>