| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 | 2 |
| 3 <html xmlns="http://www.w3.org/1999/xhtml"> | 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | 4 |
| 5 <head> | 5 <head> |
| 6 | 6 |
| 7 <title>CSS Writing Modes Test: padding percentage and 'vertical-rl'</title> | 7 <title>CSS Writing Modes Test: padding percentage and 'vertical-rl'</title> |
| 8 | 8 |
| 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> | 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/#dimension-map
ping" title="7.2 Dimensional Mapping" /> | 10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#dimension-map
ping" title="7.2 Dimensional Mapping" /> |
| 11 <link rel="match" href="margin-vrl-002-ref.xht" /> | 11 <link rel="match" href="margin-vrl-002-ref.xht" /> |
| 12 | 12 |
| 13 <meta content="image" name="flags" /> | 13 <meta content="image" name="flags" /> |
| 14 <meta content="This test checks that percentages on the padding are calculated
with respect to the height of the containing block if the 'writing-mode' of suc
h containing block is 'vertical-rl'." name="assert" /> | 14 <meta content="This test checks that percentages on the padding are calculated
with respect to the height (inline-size) of the containing block if the 'writin
g-mode' of such containing block is 'vertical-rl'." name="assert" /> |
| 15 | 15 |
| 16 <style type="text/css"><![CDATA[ | 16 <style type="text/css"><![CDATA[ |
| 17 div.outer | 17 div.outer |
| 18 { | 18 { |
| 19 background-color: blue; | 19 background-color: blue; |
| 20 border-top: blue solid 3px; | 20 border-top: blue solid 3px; |
| 21 border-right: blue solid 3px; | 21 border-right: blue solid 3px; |
| 22 border-bottom: blue solid 2px; | 22 border-bottom: blue solid 2px; |
| 23 border-left: blue solid 3px; | 23 border-left: blue solid 3px; |
| 24 height: 160px; | 24 height: 160px; |
| 25 -webkit-writing-mode: vertical-rl; | 25 -webkit-writing-mode: vertical-rl; |
| 26 } | 26 } |
| 27 | 27 |
| 28 div.inner | 28 div.inner |
| 29 { | 29 { |
| 30 background-color: transparent; | 30 background-color: transparent; |
| 31 height: 50px; /* necessary, otherwise div.inner blocks must grow as tall a
s the height of viewport */ | 31 height: 50px; |
| 32 } | |
| 33 | |
| 34 img | |
| 35 { | |
| 36 vertical-align: bottom; | |
| 37 /* | |
| 38 Not necessary but because Chrome 40 does not centrally baseline-align | |
| 39 inline replaced element in vertical writing-mode with 'text-orientation: m
ixed' | |
| 40 or with 'text-orientation: upright', we do this to avoid a false negative. | |
| 41 */ | |
| 42 } | 32 } |
| 43 | 33 |
| 44 div.foo | 34 div.foo |
| 45 { | 35 { |
| 46 padding-bottom: 0%; /* 0px */ | 36 padding-bottom: 0%; /* 0px */ |
| 47 padding-left: 0%; /* 0px */ | 37 padding-left: 0%; /* 0px */ |
| 48 padding-right: 31.25%; /* 31.25% mult by 160px == 50px */ | 38 padding-right: 31.25%; /* 31.25% mult by 160px == 50px */ |
| 49 padding-top: 12.5%; /* 12.5% mult by 160px == 20px */ | 39 padding-top: 12.5%; /* 12.5% mult by 160px == 20px */ |
| 50 } | 40 } |
| 51 | 41 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 70 | 60 |
| 71 <div class="outer"> | 61 <div class="outer"> |
| 72 <div class="inner foo"><img src="support/swatch-yellow.png" width="50" heigh
t="50" alt="Image download support must be enabled" /></div> | 62 <div class="inner foo"><img src="support/swatch-yellow.png" width="50" heigh
t="50" alt="Image download support must be enabled" /></div> |
| 73 <div class="inner bar"><img src="support/swatch-yellow.png" width="50" heigh
t="50" alt="Image download support must be enabled" /></div> | 63 <div class="inner bar"><img src="support/swatch-yellow.png" width="50" heigh
t="50" alt="Image download support must be enabled" /></div> |
| 74 </div> | 64 </div> |
| 75 | 65 |
| 76 <div id="reference"><img src="support/blue-yellow-206w-165h.png" width="206" h
eight="165" alt="Image download support must be enabled" /></div> | 66 <div id="reference"><img src="support/blue-yellow-206w-165h.png" width="206" h
eight="165" alt="Image download support must be enabled" /></div> |
| 77 | 67 |
| 78 </body> | 68 </body> |
| 79 </html> | 69 </html> |
| OLD | NEW |