Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1181)

Side by Side Diff: LayoutTests/fast/regions/auto-size/autoheight-maxheight-mixed-break.html

Issue 159933010: Remove everything region-specific from LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <style>
4 article {
5 -webkit-flow-into: main;
6 }
7
8 article > p, #rparent {
9 margin: 0;
10 font-family: "Ahem";
11 font-size: 10px;
12 }
13
14 section > div {
15 -webkit-flow-from: main;
16 margin: 0px;
17 min-height: 0px;
18 max-height: 35px;
19 }
20
21 #rparent {
22 border: 5px solid green;
23 width: 700px;
24 }
25
26 .fixed {
27 height: 25px;
28 }
29 </style>
30 <script src="../../../resources/check-layout.js"></script>
31 </head>
32 <body onload="checkLayout('#rparent')">
33 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=102099"> Co ntent flows incorrectly in autoheight regions with min/max-height set</a>.</p>
34 <p>There are two paragraphs in the flow, the first having a forced break . The auto-height regions are interleaved with fixed height regions. The layout algorithm should fill the regions optimally by taking into account the min-heigh t, max-height and height properties of the regions:
35 <ul>
36 <li> if there's enough content to fill an auto-height region up to max-height, the region must have that height and the content must have an unf orced break if it doesn't fit exactly;</li>
37 <li> if an autoheight region has min-height and there's not enou gh content / there's a forced break before min-height, the region must still be min-height tall;</li>
38 <li> if a region has a fixed height, that value must be used;</l i>
39 <li> if an auto-height region has a forced break before max-heig ht is reached, the region must end at that point.</li>
40 </ul>
41 </p>
42 <p>On success, you should see a PASS at the end of the document.</p>
43 <article>
44 <p style="-webkit-region-break-after: always;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet dolor at felis euismod te mpus nec eget lacus. Aliquam tortor orci, accumsan id rutrum quis, venenatis id enim. Cras a quam ligula. Aliquam hendrerit augue ut metus adipiscing sit amet i aculis purus hendrerit. Phasellus at facilisis lorem. Vestibulum gravida tortor vitae odio accumsan id fringilla ante mattis. Morbi lorem mi, convallis quis gra vida dictum, imperdiet quis erat. Sed quam quam, gravida id tincidunt in, tempus id felis. In elementum sem eget enim rutrum tempus scelerisque risus auctor. Du is sollicitudin urna quis ante adipiscing volutpat.</p>
45 <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Don ec sit amet dolor at felis euismod tempus nec eget lacus. Aliquam tortor orci, a ccumsan id rutrum quis, venenatis id enim. Cras a quam ligula. Aliquam hendrerit augue ut metus adipiscing sit amet iaculis purus hendrerit. Phasellus at facili sis lorem. Vestibulum gravida tortor vitae odio accumsan id fringilla ante matti s. Morbi lorem mi, convallis quis gravida dictum, imperdiet quis erat. Sed quam quam, gravida id tincidunt in, tempus id felis.</p>
46 </article>
47 <section id="rparent" data-expected-height=270>
48 <div></div>
49 <div class="fixed"></div>
50 <div></div>
51 <div class="fixed"></div>
52 <div></div>
53 <div class="fixed"></div>
54 <div></div>
55 <div class="fixed"></div>
56 <div></div>
57 <div class="fixed"></div>
58 <div></div>
59 </section>
60 </body>
61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698