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

Side by Side Diff: LayoutTests/imported/csswg-test/css-writing-modes-3/baseline-inline-replaced-002.xht

Issue 1161223002: Import csswg-test/css-writing-modes-3/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments updated Created 5 years, 6 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 Writing Modes Test: baseline-alignment of inline replaced element a nd 'vertical-rl'</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/css-writing-modes-3/#replaced-base lines" title="4.3 Atomic Inline Baselines" />
11 <link rel="match" href="baseline-inline-replaced-002-ref.xht" />
12
13 <meta content="ahem image" name="flags" />
14 <meta content="This test checks that the baseline-alignment of an image in the line box of a block with 'writing-mode' set to 'vertical-rl' is 'central' and n ot 'alphabetic'." name="assert" />
15
16 <style type="text/css"><![CDATA[
17 div
18 {
19 background-color: red;
20 font: 6em/1 Ahem; /* computes to 96px/96px */
21 height: 99px; /* the height of the cat image */
22 -webkit-writing-mode: vertical-rl;
23 }
24
25 img
26 {
27 vertical-align: baseline;
28 }
29 /* In vertical writing mode, the central baseline is used as the dominant base line;
30 here, the central baseline is assumed to be halfway between the under and over
31 logical margin edges of the inline replaced element box. */
32
33 /* cat.png has an intrinsic height of 99px and an intrinsic width of 98px */
34 ]]></style>
35 </head>
36
37 <body>
38
39 <p>Test passes if there is a cat and <strong>no red</strong>.</p>
40
41 <div><img src="support/cat.png" alt="Image download support must be enabled" / ></div>
42
43 </body>
44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698