зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1207157 patch 1 - Add reftest. r=jfkthame
--HG-- extra : commitid : GiLfGyiuizo
This commit is contained in:
Родитель
88fd572171
Коммит
f65fb08529
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Test of block formatting context displacement by floats</title>
|
||||
<style>
|
||||
|
||||
.contain {
|
||||
border: medium solid;
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
.float {
|
||||
float: left;
|
||||
height: 20px;
|
||||
background: blue;
|
||||
}
|
||||
|
||||
.bfc {
|
||||
float: left;
|
||||
width: 200px;
|
||||
height: 15px;
|
||||
background: fuchsia;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<div class="contain">
|
||||
<div class="float" style="width: 200px"></div>
|
||||
<div class="bfc"></div>
|
||||
</div>
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Test of block formatting context displacement by floats</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#floats">
|
||||
<meta name="assert" content="The border box of a table, a block-level replaced element, or an element in the normal flow that establishes a new block formatting context (such as an element with 'overflow' other than 'visible') must not overlap the margin box of any floats in the same block formatting context as the element itself.">
|
||||
<style>
|
||||
|
||||
.contain {
|
||||
border: medium solid;
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
.float {
|
||||
float: left;
|
||||
clear: left;
|
||||
height: 20px;
|
||||
background: blue;
|
||||
}
|
||||
|
||||
.bfc {
|
||||
overflow: hidden;
|
||||
width: 200px;
|
||||
margin-right: 100px; /* ignored */
|
||||
height: 15px;
|
||||
background: fuchsia;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<div class="contain">
|
||||
<div class="float" style="width: 200px"></div>
|
||||
<div class="bfc"></div>
|
||||
</div>
|
|
@ -43,6 +43,7 @@ fails == 345369-2.html 345369-2-ref.html
|
|||
== bfc-displace-2b.html bfc-displace-2b-ref.html
|
||||
== bfc-displace-3a.html bfc-displace-3a-ref.html
|
||||
== bfc-displace-3b.html bfc-displace-3b-ref.html
|
||||
fails == bfc-displace-4.html bfc-displace-4-ref.html # bug 1207157
|
||||
== bfc-shrink-1.html bfc-shrink-1-ref.html
|
||||
|
||||
# Testcases that involve vertical writing mode.
|
||||
|
|
Загрузка…
Ссылка в новой задаче