summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-rhythm/block-step-size-establishes-independent-formatting-context.html
blob: f87e22d3193a8b53d0f9e280e3bd84700d3cfb25 (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
<!DOCTYPE html>
<html>
<head>
<link rel="author" href="mailto:sammy.gill@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-rhythm/#block-step-size">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="block-step-size values other than none on block level elements cause the box to establish an independent formatting context">
<style>
div {
    width: 50px;
    height: 100px;
    background-color: green;
}
.floating {
    float: left;
}
.block-step-size {
    block-step-size: 1px;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<div class="floating"></div>
<div class="block-step-size"></div>
</body>
</html>