зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1309119 part 0: Add reftest (variant of existing reftest webkit-box-anon-flex-items-1.html, with "overflow:hidden"). r=mats
This reftest currently has a "fails" annotation, which will be removed by a later patch in this series (the final part of the fix). MozReview-Commit-ID: 9s11bdd7sFc --HG-- rename : layout/reftests/webkit-box/webkit-box-anon-flex-items-1.html => layout/reftests/webkit-box/webkit-box-anon-flex-items-1a.html rename : layout/reftests/webkit-box/webkit-box-anon-flex-items-1.html => layout/reftests/webkit-box/webkit-box-anon-flex-items-1b.html
This commit is contained in:
Родитель
ef9b4e1f0a
Коммит
2aea3c42d5
|
@ -7,7 +7,8 @@ default-preferences pref(layout.css.prefixes.webkit,true)
|
||||||
# WebKit/Blink on them. (The reference case represents the WebKit/Blink
|
# WebKit/Blink on them. (The reference case represents the WebKit/Blink
|
||||||
# rendering.) We could probably make them pass by implementing some quirks, if
|
# rendering.) We could probably make them pass by implementing some quirks, if
|
||||||
# it turns out that the web depends on WebKit/Blink's behavior in these cases.
|
# it turns out that the web depends on WebKit/Blink's behavior in these cases.
|
||||||
== webkit-box-anon-flex-items-1.html webkit-box-anon-flex-items-1-ref.html
|
== webkit-box-anon-flex-items-1a.html webkit-box-anon-flex-items-1-ref.html
|
||||||
|
fails == webkit-box-anon-flex-items-1b.html webkit-box-anon-flex-items-1-ref.html # bug 1309119
|
||||||
fails == webkit-box-anon-flex-items-2.html webkit-box-anon-flex-items-2-ref.html
|
fails == webkit-box-anon-flex-items-2.html webkit-box-anon-flex-items-2-ref.html
|
||||||
fails == webkit-box-anon-flex-items-3.html webkit-box-anon-flex-items-3-ref.html
|
fails == webkit-box-anon-flex-items-3.html webkit-box-anon-flex-items-3-ref.html
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,83 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>
|
||||||
|
Test for contiguous inline content getting wrapped in a single block,
|
||||||
|
inside of -webkit-box with "overflow:hidden".
|
||||||
|
</title>
|
||||||
|
<style>
|
||||||
|
.container {
|
||||||
|
display: -webkit-box;
|
||||||
|
overflow: hidden;
|
||||||
|
-webkit-box-pack: justify;
|
||||||
|
width: 300px;
|
||||||
|
border: 1px solid black;
|
||||||
|
font: 10px sans-serif;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.container > * {
|
||||||
|
background: lightgray;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- The following containers each have a bunch of contiguous inline-level
|
||||||
|
content. In each case, all of the inline content ("a" through "z") should
|
||||||
|
get wrapped into a single anonymous block. -->
|
||||||
|
<div class="container">
|
||||||
|
a
|
||||||
|
<i>i</i><img src="bogus"><img src="bogus" alt="alt">
|
||||||
|
<canvas height="5" width="5"></canvas>
|
||||||
|
<video height="5" width="5"></video>
|
||||||
|
<div style="display:inline-block">ib</div>
|
||||||
|
<div style="display:inline-table">it</div>
|
||||||
|
z
|
||||||
|
<div>block</div>
|
||||||
|
<div>block</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div>block</div>
|
||||||
|
a
|
||||||
|
<i>i</i><img src="bogus"><img src="bogus" alt="alt">
|
||||||
|
<canvas height="5" width="5"></canvas>
|
||||||
|
<video height="5" width="5"></video>
|
||||||
|
<div style="display:inline-block">ib</div>
|
||||||
|
<div style="display:inline-table">it</div>
|
||||||
|
z
|
||||||
|
<div>block</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div>block</div>
|
||||||
|
<div>block</div>
|
||||||
|
a
|
||||||
|
<i>i</i><img src="bogus"><img src="bogus" alt="alt">
|
||||||
|
<canvas height="5" width="5"></canvas>
|
||||||
|
<video height="5" width="5"></video>
|
||||||
|
<div style="display:inline-block">ib</div>
|
||||||
|
<div style="display:inline-table">it</div>
|
||||||
|
z
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- This container tests how flex items are formed when table parts are placed
|
||||||
|
directly inside of a -webkit-box, alongside inline-level content.
|
||||||
|
(Table-fixup should produce an anonymous table around each contiguous run
|
||||||
|
of table-parts, and we should get an anonymous block around each piece of
|
||||||
|
raw text.) -->
|
||||||
|
<div class="container">
|
||||||
|
a
|
||||||
|
<div style="display: table-cell">tc</div>
|
||||||
|
<div style="display: table-cell">tc</div>
|
||||||
|
b
|
||||||
|
<div style="display: table-row">tr</div>
|
||||||
|
<div style="display: table-cell">tc</div>
|
||||||
|
c
|
||||||
|
<div style="display: table-row">tr</div>
|
||||||
|
<div style="display: table-row-group">trg</div>
|
||||||
|
d
|
||||||
|
<table><tbody><tr><td>t</td></tr></tbody></table>
|
||||||
|
e
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Загрузка…
Ссылка в новой задаче