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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-009.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.1 plus MathML 2.0 plus SVG 1.1//EN" " http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6
7 <title>CSS Test: CSS Test: height of inline-block replaced element with no int rinsic height and no intrinsic ratio</title>
8
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB ugsSection/css21testsuite/" />
10 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced -height" />
11 <link rel="match" href="../positioning/absolute-replaced-width-003b-ref.xht" / >
12
13 <meta name="flags" content="nonHTML svg" />
14 <meta name="assert" content="If an inline-block replaced element (like the svg element in this test) has no intrinsic height and no intrinsic ratio, then the used value of 'height' becomes 150px." />
15
16 <style type="text/css"><![CDATA[
17 div
18 {
19 height: 300px;
20 width: 300px;
21 }
22
23 svg#overlapped-red
24 {
25 display: inline-block;
26 vertical-align: top;
27 }
28
29 div#overlapping-green
30 {
31 background-color: green;
32 bottom: 150px;
33 height: 150px;
34 position: relative;
35 width: 150px;
36 }
37 ]]></style>
38
39 </head>
40
41 <body>
42
43 <p>Test passes if there is a filled green square and <strong>no red</strong>.< /p>
44
45 <div>
46 <svg:svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg" baseProfile= "full" id="overlapped-red" width="150">
47 <svg:rect x="0" y="0" width="600" height="300" fill="red" />
48 </svg:svg>
49
50 <div id="overlapping-green"></div>
51 </div>
52
53 </body>
54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698