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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-003.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 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg ">
3 <head>
4 <title>CSS Test: Block replaced elements and 'auto' specified for 'margi n-left', 'margin-right' and 'height'</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#block-rep laced-width" />
7 <meta name="flags" content="nonHTML svg" />
8 <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on block replaced elements becomes a used value of '0'. The 'wi dth' is (used height) * (intrinsic ratio) if there is no intrinsic width but the re is intrinsic height and ratio." />
9 <style type="text/css">
10 #div1
11 {
12 border: solid black;
13 height: 3in;
14 width: 3in;
15 }
16 svg
17 {
18 display: block;
19 height: 100px;
20 margin-left: auto;
21 margin-right: auto;
22 }
23 div div
24 {
25 background: orange;
26 height: 100px;
27 width: 200px;
28 }
29 </style>
30 </head>
31 <body>
32 <p>Test passes if the blue and orange boxes below are the same width, an d the blue box is in the upper-left corner of the black box.</p>
33 <div id="div1">
34 <svg:svg version="1.1" height="50" baseProfile="full">
35 <svg:rect x="0" y="0" width="200" height="100" fill="blue" />
36 </svg:svg>
37 <div></div>
38 </div>
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698