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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/positioning/absolute-non-replaced-max-height-001.xht

Issue 2824603002: Import css21/positioning 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 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>CSS Test: Max-height on absolutely positioned, non-replaced eleme nts, static position of fixed element</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-r eplaced-height" />
7 <meta name="flags" content="" />
8 <meta name="assert" content="The calculation of static position is based on initial containing block when there is a fixed positioned element." />
9 <style type="text/css">
10 html, body, p
11 {
12 margin: 0;
13 padding: 0;
14 }
15 #div1
16 {
17 border: solid black;
18 height: 2in;
19 position: absolute;
20 width: 2in;
21 }
22 div div
23 {
24 background: blue;
25 height: 1in;
26 max-height: 0.5in;
27 position: fixed;
28 width: 1in;
29 }
30 </style>
31 </head>
32 <body>
33 <p>Test passes a blue rectangle is in the upper-left corner of a hollow black square.</p>
34 <div id="div1">
35 <div></div>
36 </div>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698