<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>65917</bug_id>
          
          <creation_ts>2011-08-09 06:44:24 -0700</creation_ts>
          <short_desc>Applying writing-mode:vertical-rl to td does not make the table cell vertical</short_desc>
          <delta_ts>2025-11-30 21:53:52 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>46123</blocked>
    
    <blocked>168162</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Koji Ishii">kojii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ayagawap</cc>
    
    <cc>browserbugs2</cc>
    
    <cc>cbiesinger</cc>
    
    <cc>eoconnor</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>itshustletime</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>phiw2</cc>
    
    <cc>rasamassen</cc>
    
    <cc>tlock.chijin</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>448559</commentid>
    <comment_count>0</comment_count>
      <attachid>103355</attachid>
    <who name="Koji Ishii">kojii</who>
    <bug_when>2011-08-09 06:44:24 -0700</bug_when>
    <thetext>Created attachment 103355
Table cell with writing-mode:vertical-rl applied

Applying writing-mode:vertical-rl to td does not seem to be working. I have attached a sample HTML file that reproduce the issue with the Nightly build.

I then tried to put &lt;p&gt; inside td and applied writing-mode:vertical-rl, which made the text vertical but its position isn&apos;t correct.

Both rows renders as I expect in IE9.

I tried this on Safari and Nightly build on Lion, and also on Safari and Chrome on Windows. All resulted the same.

This is my first try to put a bug in webkit, so please excuse me if I made something incorrect, and I apologize in advance for any troubles I may have caused. I tried to look for dup bugs, 46997 may be related but I couldn&apos;t figure out if this is dup of the bug or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>527914</commentid>
    <comment_count>1</comment_count>
    <who name="">rasamassen</who>
    <bug_when>2011-12-29 06:50:04 -0800</bug_when>
    <thetext>&lt;td&gt; with writing-mode:vertical-rl fails in Windows on Chrome 16 as well.

&lt;td&gt; with writing-mode (old IE lingo) works in IE9, but renders the &lt;td&gt; with the wrong height (if the &lt;tr&gt; is taller than the writing-mode cell needs, it shortens the cell - easily revealed by putting a border on cells and making a tall &lt;td&gt;); please make sure the &lt;td&gt; maintains the same row height as other cells when writing mode is changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>531709</commentid>
    <comment_count>2</comment_count>
      <attachid>121566</attachid>
    <who name="">rasamassen</who>
    <bug_when>2012-01-07 20:47:10 -0800</bug_when>
    <thetext>Created attachment 121566
writing-mode:vertical-rl test on td and th tags.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>531710</commentid>
    <comment_count>3</comment_count>
    <who name="">rasamassen</who>
    <bug_when>2012-01-07 20:58:00 -0800</bug_when>
    <thetext>writing-mode should work on &lt;th&gt; and &lt;td&gt; elements, per http://www.w3.org/TR/css3-writing-modes/#writing-mode and http://dev.w3.org/csswg/css3-writing-modes/#writing-mode (working draft and editors draft), which excludes table row groups, table column groups, table rows, and table columns, but not table header cells or table data cells.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>789816</commentid>
    <comment_count>4</comment_count>
    <who name="">rasamassen</who>
    <bug_when>2012-12-12 12:53:24 -0800</bug_when>
    <thetext>Blocks 46123</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>863827</commentid>
    <comment_count>5</comment_count>
    <who name="Christian Biesinger">cbiesinger</who>
    <bug_when>2013-03-26 10:45:37 -0700</bug_when>
    <thetext>*** Bug 113325 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>863992</commentid>
    <comment_count>6</comment_count>
    <who name="Christian Biesinger">cbiesinger</who>
    <bug_when>2013-03-26 14:14:12 -0700</bug_when>
    <thetext>Note, IE supports this. http://jsbin.com/ayeyag/4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1191332</commentid>
    <comment_count>7</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2016-05-09 15:20:30 -0700</bug_when>
    <thetext>2 additional reduced and self-explanatory tests:

http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/orthogonal-vrl-table-cells-001.html

http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/orthogonal-vrl-table-cells-002.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1365780</commentid>
    <comment_count>8</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2017-10-28 19:15:04 -0700</bug_when>
    <thetext>2 additional tests (testing a table with realistical tabular data; both border-collapse models tested):


http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/s73-orthogonal-vrl-table-cells-004.xht


http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/s73-orthogonal-vrl-table-cells-006.xht


The tester must have &quot;Liberation Sans&quot; font or Arial font installed on his/her system.

Note that Firefox fails to render &apos;text-align: left&apos; correctly for cells in orthogonal flow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781903</commentid>
    <comment_count>9</comment_count>
    <who name="Theresa O&apos;Connor">eoconnor</who>
    <bug_when>2021-08-04 09:38:55 -0700</bug_when>
    <thetext>This is being tracked at W3C in a JLREQ issue: https://github.com/w3c/jlreq/issues/171

Note that this has been fixed in Blink recently (June 2021).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781904</commentid>
    <comment_count>10</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-04 09:39:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/81518948&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781999</commentid>
    <comment_count>11</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2021-08-04 12:27:07 -0700</bug_when>
    <thetext>More tests:

http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/s73-orthogonal-table-cell-003.xht

http://test.csswg.org/harness/test/css-writing-modes-3_dev/single/orthogonal-parent-shrink-to-fit-001/

is 24 sub-tests on shrink-to-fit inline-blocks, floats, table-cells, block boxes with an orthogonal child.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885329</commentid>
    <comment_count>12</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2022-07-20 01:18:41 -0700</bug_when>
    <thetext>*** Bug 201096 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885332</commentid>
    <comment_count>13</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2022-07-20 01:18:51 -0700</bug_when>
    <thetext>*** Bug 240418 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967360</commentid>
    <comment_count>14</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2023-07-19 09:12:33 -0700</bug_when>
    <thetext>This is important for klreq. See https://w3c.github.io/klreq/gap-analysis/#issue52_vertical_text</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002277</commentid>
    <comment_count>15</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-29 22:35:01 -0800</bug_when>
    <thetext>@Alan - Will this be fixed by?

https://github.com/WebKit/WebKit/commit/0d695812f5b0daef531a9760903457364d2265ff</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002300</commentid>
    <comment_count>16</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-12-30 06:07:38 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #15)
&gt; @Alan - Will this be fixed by?
&gt; 
&gt; https://github.com/WebKit/WebKit/commit/
&gt; 0d695812f5b0daef531a9760903457364d2265ff
Sadly no. this looks like a mess now. Will look into it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2121772</commentid>
    <comment_count>17</comment_count>
      <attachid>475483</attachid>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-06-04 13:13:30 -0700</bug_when>
    <thetext>Created attachment 475483
testcase with variations and visual reference</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2162092</commentid>
    <comment_count>18</comment_count>
    <who name="">ayagawap</who>
    <bug_when>2025-11-30 21:53:52 -0800</bug_when>
    <thetext>I can confirm that this issue is still reproducible in the latest version of Safari.
Chrome renders the layout correctly according to the specification, so this is clearly an Interop issue.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>103355</attachid>
            <date>2011-08-09 06:44:24 -0700</date>
            <delta_ts>2011-08-09 06:44:24 -0700</delta_ts>
            <desc>Table cell with writing-mode:vertical-rl applied</desc>
            <filename>vert-table.htm</filename>
            <type>text/html</type>
            <size>495</size>
            <attacher name="Koji Ishii">kojii</attacher>
            
              <data encoding="base64">77u/PCFET0NUWVBFIGh0bWw+DQo8aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94
aHRtbCIgPg0KPGhlYWQ+DQogICAgPHRpdGxlPlVudGl0bGVkIFBhZ2U8L3RpdGxlPg0KICAgIDxz
dHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQogICAgICAgIC52IHsgd3JpdGluZy1tb2RlOnRiLXJsOyAt
d2Via2l0LXdyaXRpbmctbW9kZTp2ZXJ0aWNhbC1ybDsgaGVpZ2h0OjFlbTsgfQ0KICAgICAgICB0
ZCB7IGJvcmRlcjoxcHggc29saWQgYmxhY2s7IH0NCiAgICA8L3N0eWxlPg0KPC9oZWFkPg0KPGJv
ZHk+DQo8dGFibGU+DQogIDx0cj48dGQ+QTwvdGQ+PHRkIGNsYXNzPSJ2Ij5BPC90ZD48dGQ+QXBw
bHkgd3JpdGluZy1tb2RlIHRvIHRkPC90ZD48L3RyPg0KICA8dHI+PHRkPkE8L3RkPjx0ZD48cCBj
bGFzcz0idiI+QTwvcD48L3RkPjx0ZD5BcHBseSB3cml0aW5nLW1vZGUgdG8gcCBpbnNpZGUgdGQ8
L3RkPjwvdHI+DQo8L3RhYmxlPg0KPC9ib2R5Pg0KPC9odG1sPg0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>121566</attachid>
            <date>2012-01-07 20:47:10 -0800</date>
            <delta_ts>2012-01-07 20:47:10 -0800</delta_ts>
            <desc>writing-mode:vertical-rl test on td and th tags.</desc>
            <filename>td-vertical-test.html</filename>
            <type>text/html</type>
            <size>1226</size>
            <attacher>rasamassen</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+DQo8aHRtbD48aGVhZD4NCjx0aXRsZT53cml0aW5nLW1vZGUgdGVzdDwv
dGl0bGU+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KdGFibGUgeyBib3JkZXItY29sbGFwc2U6
IGNvbGxhcHNlOyBib3JkZXItc3BhY2luZzogMDsgfQ0KLnZlcnRpY2FsLXRleHQgeyAtd2Via2l0
LXdyaXRpbmctbW9kZTp2ZXJ0aWNhbC1ybDsgd3JpdGluZy1tb2RlOiB2ZXJ0aWNhbC1ybDsgfQ0K
dGQsIHRoIHsgYm9yZGVyOiAx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vdGQ+PHRkPmE8L3Rk
Pjx0ZD5mb29iYXI8L3RkPjwvdHI+DQo8L3RhYmxlPg0KPHA+VGhlIGJlbG93IHRleHQgaXMgaW4g
YSBwYXJhZ3JhcGggdGFnLCBwcm92aW5nIHdyaXRpbmctbW9kZSB3b3JrcyBvbiBwYXJhZ3JhcGgg
dGFncyBpbiB3ZWJraXQuPC9wPg0KPHAgY2xhc3M9InZlcnRpY2FsLXRleHQiPlZlcnRpY2FsIHRl
eHQgc2FtcGxlPC9wPg0KPC9ib2R5PjwvaHRtbD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>475483</attachid>
            <date>2025-06-04 13:13:30 -0700</date>
            <delta_ts>2025-06-04 13:13:30 -0700</delta_ts>
            <desc>testcase with variations and visual reference</desc>
            <filename>table-cell-writing-mode.html</filename>
            <type>text/html</type>
            <size>390</size>
            <attacher name="fantasai">fantasai.bugs</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cjx0aXRsZT53cml0aW5nLW1vZGUgb24gdGFibGUgY2VsbHM8L3RpdGxl
PgoKPHA+QWxsIHRocmVlIGJveGVzIHNob3VsZCByZW5kZXIgdGhlIHNhbWUuPC9wPgoKPHRhYmxl
IGJvcmRlcj4KCTx0cj48dGQgc3R5bGU9IndyaXRpbmctbW9kZTogdmVydGljYWwtcmwiPlRoaXMg
aXMgYSB0ZXN0Lgo8L3RhYmxlPgoKPHRhYmxlIGJvcmRlcj4KCTx0cj48dGQ+PGRpdiBzdHlsZT0i
d3JpdGluZy1tb2RlOiB2ZXJ0aWNhbC1ybCI+VGhpcyBpcyBhIHRlc3QuPC9kaXY+CjwvdGFibGU+
Cgo8dGFibGUgYm9yZGVyIHN0eWxlPSJ0cmFuc2Zvcm0tb3JpZ2luOiBib3R0b20gbGVmdDsgcm90
YXRlOiA5MGRlZyIgPgoJPHRyPjx0ZD5UaGlzIGlzIGEgdGVzdC4KPC90YWJsZT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>