summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/multicol/single-line.html
blob: 055ff788056939121b0d0efb45090a9b2d64d650 (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
46
47
48
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>CSS3 Multi-column Layout: Single line test</title>
    <style type="text/css">
      .multicol {
        -webkit-columns: 4;
        -webkit-column-gap: 0;
        background-color: #eee;
        width: 600px;
      }
      p, div {
        margin-top: 1em;
        margin-bottom: 1em;
      }
      .large {
        font-size: 30px;
      }
    </style>
  </head>
  <body>
    <p>
      This test checks if CSS3 multi-column layout properly works
      when the multi-column block contains only one line of text.
    </p>
    <p>
      Test successful if the following text is readable
      (i.e. not split into two different columns).
    </p>
    <p class="multicol">
      Short text.
    </p>
    <p class="multicol">
      <span class="large">Bigger text.</span>
    </p>
    <p class="multicol">
      Partially <span class="large">big</span> text.
    </p>
    <div class="multicol">
      <p>&nbsp;Nested block.</p>
    </div>
    <div>
      <p class="multicol">&nbsp;Nested block #2.</p>
    </div>
  </body>
</html>