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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15943</bug_id>
          
          <creation_ts>2012-02-09 17:29:22 +0000</creation_ts>
          <short_desc>Should transform-style behave specially for tables (as it seems to in WebKit)?</short_desc>
          <delta_ts>2012-03-07 19:26:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Transforms</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Simon Fraser">smfr</assigned_to>
          <cc>ayg</cc>
    
    <cc>cmarrin</cc>
    
    <cc>dino</cc>
    
    <cc>dschulze</cc>
    
    <cc>eoconnor</cc>
    
    <cc>roc</cc>
    
    <cc>smfr</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63930</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-02-09 17:29:22 +0000</bug_when>
    <thetext>Consider these two test-cases:

data:text/html,&lt;!doctype html&gt;
&lt;div style=&quot;transform: rotatex(90deg); transform-style: preserve-3d&quot;&gt;
&lt;div style=&quot;display: table-cell; transform: rotatex(90deg)&quot;&gt;Some text&lt;/div&gt;
&lt;/div&gt;

data:text/html,&lt;!doctype html&gt;
&lt;div style=&quot;transform: rotatex(90deg); transform-style: preserve-3d&quot;&gt;
&lt;table&gt;&lt;tr&gt;
&lt;td style=&quot;transform: rotatex(90deg)&quot;&gt;Some text
&lt;/table&gt;
&lt;/div&gt;

In Gecko, the text vanishes in both test-cases.  In Chrome 18 dev, the text is made upside-down in both test-cases.  Taken literally, the specification would seem to say that the text should be rotated in the first case (since every element has preserve-3d), and vanish in the second case (since there are intervening elements that don&apos;t have preserve-3d).

It seems Chrome (WebKit?) works something like this: any element with any of the table display types (table, inline-table, table-*) will be part of its parent&apos;s 3D rendering context, if any, even if transform-style: flat is specified.  Is this how WebKit actually works?  What should the specification require?

Related Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=722777</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64866</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-03-01 21:34:07 +0000</bug_when>
    <thetext>I&apos;m not sure if there&apos;s anything sensible to say that&apos;s different from the current spec, although I suspect the current spec might be hard to implement.  It means implementations have to distinguish between CSS boxes created by actual HTML elements and ones created implicitly because every table-cell is in a table-row, etc.  I don&apos;t know if they currently have to do this for other purposes.  I&apos;m CCing roc because of &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=722777#c8&gt;, although I think he&apos;s away for a couple of weeks.

If no one has any alternative suggestions, I guess I&apos;ll close this WONTFIX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65077</commentid>
    <comment_count>2</comment_count>
    <who name="Robert O&apos;Callahan (Mozilla)">roc</who>
    <bug_when>2012-03-06 23:10:36 +0000</bug_when>
    <thetext>I think we could probably make Gecko follow the current spec quite easily. Just set -moz-transform-style:inherit for the anonymous table pseudo-elements. So I think we should leave the spec as-is and just implement it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65115</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-03-07 18:24:15 +0000</bug_when>
    <thetext>There have been no objections and one endorsement, so I&apos;ll resolve WONTFIX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65120</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-03-07 19:26:52 +0000</bug_when>
    <thetext>Gecko bug to implement the spec: https://bugzilla.mozilla.org/show_bug.cgi?id=733849</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>