зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1910475 [wpt PR 47341] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=252358, a=testonly
Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=252358 (#47341) Block level boxes with block-step-size other than none should establish an independent formatting context. -- wpt-commits: 5f77df35944f3a06eaca520b8cc3752840cf47b4 wpt-pr: 47341
This commit is contained in:
Родитель
6fe75068cc
Коммит
7d1d275dc3
|
@ -0,0 +1,29 @@
|
|||
<!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 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>
|
|
@ -0,0 +1,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 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>
|
|
@ -0,0 +1,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 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>
|
Загрузка…
Ссылка в новой задаче