display-contents-writing-mode-1.html (756B)
1 <!DOCTYPE html> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <html> 7 <head><meta charset="UTF-8"> 8 <title>CSS Test: display:contents with orthogonal writing-mode</title> 9 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1258147"> 10 <link rel="help" href="http://dev.w3.org/csswg/css-display"> 11 <link rel="match" href="display-contents-writing-mode-1-ref.html"> 12 <style type="text/css"> 13 14 body { 15 writing-mode: horizontal-tb; 16 } 17 18 div { 19 display: contents; 20 writing-mode: vertical-lr; 21 } 22 23 span { 24 width: 0; 25 border: 1px solid; 26 } 27 28 </style> 29 </head> 30 <body> 31 <div><span style="writing-mode:horizontal-tb">a b c</span></div> 32 </body> 33 </html>