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

Side by Side Diff: LayoutTests/imported/csswg-test/css-writing-modes-3/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html

Issue 1157103007: update-w3c-deps import using blink b712b6ce0eb599d90d890aa609f596c7852fb824 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Skip swfsoures 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 HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd">
2
3 <html>
4
5 <head>
6
7 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
8
9 <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-021 in 'writing -mode: vertical-rl'</title>
10
11 <!--
12 position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' ar e not 'auto' with 'direction: rtl' in initial containing block
13 -->
14
15 <style type="text/css">
16 html
17 {
18 direction: rtl;
19 }
20
21 div
22 {
23 background-color: green;
24 border-left: green solid 35px;
25 border-right: green solid 15px;
26 height: 100px;
27 left: auto;
28 position: absolute;
29 right: 80%;
30 top: 0px;
31 width: 50px;
32 -webkit-writing-mode: vertical-lr;
33 }
34
35 /*
36 "
37 4. [If] 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for ' left'
38 "
39 10.3.7 Absolutely positioned, non-replaced elements
40 http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
41
42 So:
43
44 auto : left
45 +
46 0px : margin-left
47 +
48 35px : border-left-width
49 +
50 0px : padding-left
51 +
52 50px : width
53 +
54 0px : padding-right
55 +
56 15px : border-right-width
57 +
58 0px : margin-right
59 +
60 80% : right
61 ====================
62 500px : width of containing block (width of Initial Containing Block)
63
64 becomes
65
66 (solve) : left
67 +
68 0px : margin-left
69 +
70 35px : border-left-width
71 +
72 0px : padding-left
73 +
74 50px : width
75 +
76 0px : padding-right
77 +
78 15px : border-right-width
79 +
80 0px : margin-right
81 +
82 400px : right (80% of 500px == 400px)
83 ====================
84 500px : width of containing block (width of Initial Containing Block)
85
86 so used left offset value must be 0px .
87
88 */
89 </style>
90 </head>
91
92 <body>
93
94 <div></div>
95
96 </body>
97 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698