summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/grid-model/grid-margins-no-collapse-002-ref.html
blob: ce56a5664565796e16f82f71ed1dc6b5a51db7ed (plain)
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<link rel="stylesheet" href="/css/support/grid.css">

<div>This test checks that grid item's margins do not collapse with its content's margins (single margin in the first row and double between subsequent).</div>

<div style="float: left">
  <div><p>XXXXX</p></div>
  <div style="float:left; margin:20px 0px;">XXXXX</div>
  <div><p style="float:left; clear:both;">XXXXX</p></div>
</div>