<?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>10820</bug_id>
          
          <creation_ts>2010-09-29 12:57:50 +0000</creation_ts>
          <short_desc>i18n comment 16 : option element should support text-align CSS property and be displayed accordingly both in the dropdown and after being chosen</short_desc>
          <delta_ts>2010-10-18 18:43:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="i18n bidi group">public-i18n-bidi</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>aharon.lists.lanin</cc>
    
    <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-i18n-bidi</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39950</commentid>
    <comment_count>0</comment_count>
    <who name="i18n bidi group">public-i18n-bidi</who>
    <bug_when>2010-09-29 12:57:50 +0000</bug_when>
    <thetext>Comment from the i18n review of:
http://dev.w3.org/html5/spec/

Comment 16
At http://www.w3.org/International/reviews/html5-bidi/
Editorial/substantive: S
Tracked by: AL

Location in reviewed document:
undefined [http://dev.w3.org/html5/spec/spec.html#contents]

Comment:This is a part of the proposals made by the &quot;Additional Requirements for Bidi in HTML&quot; W3C First Public Working Draft. For a full description of the use cases, please see 
http://www.w3.org/International/docs/html-bidi-requirements/#option [http://www.w3.org/International/docs/html-bidi-requirements/#option]
. Here is the proposal made there:

The HTML specification should explicitly state that the &lt;option&gt; element&apos;s alignment via CSS or the align attribute will affect its display accordingly in both the dropdown and after being chosen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40795</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-07 19:44:43 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40796</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-10-07 19:45:23 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5589.
Check-in comment: Add a note about keeping the alignment right for &lt;select&gt;
http://html5.org/tools/web-apps-tracker?from=5588&amp;to=5589</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40799</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-07 19:47:46 +0000</bug_when>
    <thetext>*** Bug 10819 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41269</commentid>
    <comment_count>4</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2010-10-13 22:20:22 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Checked in as WHATWG revision r5589.
&gt; Check-in comment: Add a note about keeping the alignment right for &lt;select&gt;
&gt; http://html5.org/tools/web-apps-tracker?from=5588&amp;to=5589

The revision is problematic. It adds:

&lt;p&gt;User agents are expected to consistently render the labels in a &lt;code&gt;select&lt;/code&gt;, in particular ensuring that any left-to-right or right-to-left alignment is consistent whether the label is being displayed as part of the page or in a menu control.&lt;/p&gt;

There are several problems:

1. Alignment values include &quot;left&quot; and &quot;right&quot;, but not &quot;left-to-right&quot; or &quot;right-to-left&quot;. Those (&quot;ltr&quot; and &quot;rtl&quot;) are direction values.

2. The meaning is unclear. &quot;User agents are expected to consistently render the labels in a &lt;code&gt;select&lt;/code&gt;&quot; can be easily misunderstood to mean that some aspect(s) of rendering, e.g. direction, should be consistent across all the labels in a select, i.e. all the labels should be aligned according to the select&apos;s alignment value. That was *not* the bug&apos;s intent. The consistency that this bug and bug 10819 demand is in the way a label is displayed before and after being selected. That is, if a label was displayed in the ltr direction (e.g. &quot;hello!&quot;, not &quot;!hello&quot;) before being selected (in the drop-down), it should still be ltr after being selected - even though the &lt;select&gt; may be rtl (that&apos;s bug 10819). This is currently not always the case in Firefox or Chrome. And if a label was displayed left-aligned before being selected, it should still be displayed left-aligned after being selected (that&apos;s this bug). This is currently not always the case in Firefox. It is possible that the revision was in fact trying for the consistency we hand in mind when it said &quot;whether the label is being displayed as part of the page or in a menu control&quot;, but I am not sure what &quot;part of the page&quot; and &quot;menu control&quot; mean here.

Now, the bug was also demanding one more thing: that the option element should support the text-align CSS property. I now see that this demand is inappropriate for two reasons:

- It is a CSS issue, not HTML.
- It would result in options with different direction in having different alignment by default. This is neither what most users want nor what browsers (with the single exception of Firefox) do.

I therefore want to drop that demand. The HTML spec revision that I would therefore want is:

&lt;p&gt;User agents are expected to render a label in a &lt;code&gt;select&lt;/code&gt; with the same direction and alignment it had before being chosen after it has been chosen.&lt;/p&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41344</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-14 10:07:25 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: see diff given below
Rationale:

&quot;part of the page&quot; means in the browser rendering area, like any other content on the page.
&quot;in a menu control&quot; means in a drop-down or pop-up widget or any other similar construct.

This seems clear to me.

I&apos;ve tried to clarify the rest of the text.

I&apos;ll leave the direction stuff for bug 10819.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41345</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-10-14 10:07:55 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5632.
Check-in comment: word-smithing
http://html5.org/tools/web-apps-tracker?from=5631&amp;to=5632</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>