Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Block level boxes with block-step-size other than none should establish an independent formatting context.
  • Loading branch information
sammygill authored Jul 29, 2024
1 parent c89bf05 commit 5f77df3
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" href="mailto:[email protected]">
<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 a block box causes it to establish a block formatting context">
<style>
div {
width: 50px;
height: 100px;
background-color: green;
}
.floating {
float: left;
}
.block-step-size {
display: list-item;
list-style: none;
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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" href="mailto:[email protected]">
<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 a block box causes it to establish a block 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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" href="mailto:[email protected]">
<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 a block formatting context for the block 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>

0 comments on commit 5f77df3

Please sign in to comment.