summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-rhythm/block-step-size-none-does-not-establish-indepdendent-formatting-context.html
blob: 678428e381be5cd2cdb05054cf67ed416d655d44 (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
<!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.xht">
<meta name="assert" content="block-step-size none should not establish an independent formatting context for the box">
<style>
div {
    width: 100px;
    height: 100px;
    background-color: green;
}
.floating {
    position: relative;
    z-index: -1;
    float: left;
    background-color: red;
}
.block-step-size {
    block-step-size: none;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="floating"></div>
<div class="block-step-size"></div>
</body>
</html>