<?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>21990</bug_id>
          
          <creation_ts>2013-05-09 22:37:07 +0000</creation_ts>
          <short_desc>Certain HTML attributes should use flow-relative directional mappings to CSS</short_desc>
          <delta_ts>2014-09-26 21:14:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#maps-to-the-dimension-property</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Needs Impl Interest</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>fantasai.bugs</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87519</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-05-09 22:37:07 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html
Multipage: http://www.whatwg.org/C#maps-to-the-dimension-property
Complete: http://www.whatwg.org/c#maps-to-the-dimension-property
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Certain HTML attributes should use flow-relative directional mappings to CSS

Posted from: 76.14.87.229
User agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87522</commentid>
    <comment_count>1</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2013-05-09 22:38:01 +0000</bug_when>
    <thetext>*** Bug 21991 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87523</commentid>
    <comment_count>2</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2013-05-09 22:44:24 +0000</bug_when>
    <thetext>Presentational attributes for elements whose layout transforms between horizontal and vertical writing modes should also transform. E.g. &apos;width&apos; on a table should always refer to the logical width. (However, &apos;width&apos; on an image should always refer to its physical width, since images stay upright.)

Here&apos;s some text that was commented out of an earlier Writing Modes editor&apos;s draft for reference:

&lt;h3 id=&quot;html-attributes&quot;&gt;HTML Attributes&lt;/h3&gt;

  &lt;p&gt;This section defines the mapping of HTML presentational attributes
    in CSS. This section is normative for user agents supporting HTML
    in addition to the &apos;writing-mode&apos; property. [[!HTML40]] [[!HTML5]]

  &lt;h4 id=&quot;width-height-attributes&quot;&gt;The &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;height&lt;/code&gt; attributes&lt;/h4&gt;

  &lt;p&gt;The HTML &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;height&lt;/code&gt; attributes refer
    to the physical width and height for elements that that are replaced,
    i.e.
    &lt;code&gt;&amp;lt;applet&amp;gt;&lt;/code&gt;,
    &lt;code&gt;&amp;lt;embed&amp;gt;&lt;/code&gt;,
    &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt;,
    &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;,
    &lt;code&gt;&amp;lt;object&amp;gt;&lt;/code&gt;,
    &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt;,
    and
    &lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt;

  &lt;p&gt;Form elements elements contain text, therefore their contents should be
    affected by writing mode, in which case these attributes refer to the
    &lt;em&gt;logical&lt;/em&gt; width and height. The UA may, however, choose not
    to rotate nor flip these elements in vertical writing modes if it is not
    capable, and in that case, these attributes remain physical.&lt;/p&gt;
    &lt;p class=&quot;issue&quot;&gt;When not rotating form elements/MathML,
      should we treat them as images (always upright)
      or force writing-mode to always calculate to horizontal-tb?&lt;/p&gt;

  &lt;p&gt;On table-related elements (&lt;code&gt;&amp;lt;table&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;colgroup&amp;gt;&lt;/code&gt;,
    &lt;code&gt;&amp;lt;col&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;tr&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;th&amp;gt;&lt;/code&gt;,
    &lt;code&gt;&amp;lt;td&amp;gt;&lt;/code&gt;) the &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;height&lt;/code&gt;
    attributes are always logical.

  &lt;p&gt;The &lt;code&gt;size&lt;/code&gt; attribute of the &lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt; element
    is also logical (refers to the logical height).

  &lt;h4 id=&quot;alignment-attributes&quot;&gt;Alignment, Float and Clear Attributes&lt;/h4&gt;

  &lt;p&gt;The following attributes behave the same way as their corresponding
    CSS properties:&lt;/p&gt;

  &lt;ul&gt;
    &lt;li&gt;&lt;code&gt;align&lt;/code&gt; as &apos;float&apos; or &apos;text-align&apos;&lt;/li&gt;
    &lt;li&gt;&lt;code&gt;clear&lt;/code&gt; as &apos;clear&apos;&lt;/li&gt;
    &lt;li&gt;&lt;code&gt;valign&lt;/code&gt; as &apos;vertical-align&apos;&lt;/li&gt;
  &lt;/ul&gt;

  &lt;h4 id=&quot;spacing-attributes&quot;&gt;Spacing Attributes&lt;/h4&gt;

  &lt;p&gt;The following attributes are logical and, as margins, are logical
    with respect to the writing mode of the &lt;em&gt;parent&lt;/em&gt; element.&lt;/p&gt;

  &lt;ul&gt;
    &lt;li&gt;&lt;code&gt;hspace&lt;/code&gt; as inline-start and inline-end margins&lt;/li&gt;
    &lt;li&gt;&lt;code&gt;vspace&lt;/code&gt; as block-start and block-end margins&lt;/li&gt;
    &lt;li&gt;marginwidth&lt;/li&gt;
    &lt;li&gt;marginheight&lt;/li&gt;
  &lt;/ul&gt;

If the CSSWG ever agrees to write a spec for logical properties,
  http://lists.w3.org/Archives/Public/www-style/2013May/0224.html
this will be much simpler to explain. Figured I&apos;d at least file the issue against HTML for now, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89322</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-14 18:18:20 +0000</bug_when>
    <thetext>Do any browsers actually treat them logically? Most if not all of these are obsolete in HTML now, so if browsers don&apos;t already do it, I don&apos;t see much point in adding complexity to their legacy document handling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112311</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-26 21:14:27 +0000</bug_when>
    <thetext>Since these are all obsolete anyway, I&apos;m punting on this. If there&apos;s a compat need to do this, please let me know. Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>