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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-max-width-001.xht

Issue 2818243002: Import css21/normal-flow W3C CSS Test Suite (Closed)
Patch Set: git rebase-update Created 3 years, 8 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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6
7 <title>CSS Test: max-height and max-width - float and overflow</title>
8
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB ugsSection/css21testsuite/" />
10 <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" />
11 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights " />
12 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" />
13 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" />
14
15 <meta content="ahem" name="flags" />
16 <meta content="Space taken up by the horizontal and vertical scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars. In this test, assuming that the width of ve rtical scrollbar is 19px and assuming that the height of horizontal scrollbar is 19px, then the dimensions of the painted green area should be 181px by 181px. T he height of horizontal scrollbar and the width of vertical scrollbar are entire ly user-settable in most graphical user agents." name="assert" />
17
18 <style type="text/css"><![CDATA[
19 div
20 {
21 color: blue;
22 float: left;
23 font: 200px/1 Ahem;
24 max-height: 200px;
25 max-width: 200px;
26 overflow: scroll;
27 }
28 ]]></style>
29
30 </head>
31
32 <body>
33
34 <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mecha nism. If it does not, then this test case does not apply to this user agent.</p>
35
36 <p>Test passes if there is a blue square with scrollbars.</p>
37
38 <div>X</div>
39
40 </body>
41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698