Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!-- |
michael@0 | 2 | Any copyright is dedicated to the Public Domain. |
michael@0 | 3 | http://creativecommons.org/licenses/publicdomain/ |
michael@0 | 4 | --> |
michael@0 | 5 | <!DOCTYPE html> |
michael@0 | 6 | <html lang="en-US"> |
michael@0 | 7 | <head> |
michael@0 | 8 | <title>Testing nested balancing column sets</title> |
michael@0 | 9 | <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=822053"> |
michael@0 | 10 | <style type="text/css"> |
michael@0 | 11 | html,body { |
michael@0 | 12 | color:black; background-color:white; font-size:16px; padding:0; margin:0; |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | .colset { |
michael@0 | 16 | -moz-column-count: 2; |
michael@0 | 17 | -moz-column-gap: 1px; |
michael@0 | 18 | -moz-column-rule: 1px solid black; |
michael@0 | 19 | border: solid silver; |
michael@0 | 20 | margin-bottom:1em; |
michael@0 | 21 | width:30ch; |
michael@0 | 22 | } |
michael@0 | 23 | p { margin: 0; } |
michael@0 | 24 | |
michael@0 | 25 | /* balancing column sets deeper than level 2 should only use 1 column */ |
michael@0 | 26 | .colset .colset .colset, |
michael@0 | 27 | .colset .colset .colset .colset { |
michael@0 | 28 | -moz-column-count: 1; |
michael@0 | 29 | } |
michael@0 | 30 | </style> |
michael@0 | 31 | </head> |
michael@0 | 32 | <body> |
michael@0 | 33 | <div class="colset"> |
michael@0 | 34 | <p>one one one one one</p> |
michael@0 | 35 | <div class="colset"> |
michael@0 | 36 | <p>two two two two two</p> |
michael@0 | 37 | </div> |
michael@0 | 38 | </div> |
michael@0 | 39 | <div class="colset"> |
michael@0 | 40 | <p>one one one one one</p> |
michael@0 | 41 | <div class="colset"> |
michael@0 | 42 | <p>two two two two two</p> |
michael@0 | 43 | <div class="colset"> |
michael@0 | 44 | <p>three three three three three</p> |
michael@0 | 45 | </div> |
michael@0 | 46 | </div> |
michael@0 | 47 | </div> |
michael@0 | 48 | <div class="colset"> |
michael@0 | 49 | <p>one one one one one</p> |
michael@0 | 50 | <div class="colset"> |
michael@0 | 51 | <p>two two two two two</p> |
michael@0 | 52 | <div class="colset"> |
michael@0 | 53 | <p>three three</p> |
michael@0 | 54 | <div class="colset"> |
michael@0 | 55 | <p>four four four four four</p> |
michael@0 | 56 | </div> |
michael@0 | 57 | </div> |
michael@0 | 58 | </div> |
michael@0 | 59 | </div> |
michael@0 | 60 | </body> |
michael@0 | 61 | </html> |