<?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>14850</bug_id>
          
          <creation_ts>2011-11-17 09:55:51 +0000</creation_ts>
          <short_desc>make unicode-bidi:isolate default for flow elements with a dir attribute too</short_desc>
          <delta_ts>2012-05-14 19:42:12 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</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="Aharon Lanin">aharon.lists.lanin</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>aharon.lists.lanin</cc>
    
    <cc>duerst</cc>
    
    <cc>fantasai.bugs</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>60092</commentid>
    <comment_count>0</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2011-11-17 09:55:51 +0000</bug_when>
    <thetext>The default stylesheet was changed in HTML5 (see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10815) to specify unicode-bidi:isolate for what used to be known as block elements (http://dev.w3.org/html5/spec/Overview.html#flow-content-1, http://dev.w3.org/html5/spec/Overview.html#sections-and-headings, http://dev.w3.org/html5/spec/Overview.html#lists, http://dev.w3.org/html5/spec/Overview.html#tables), instead of unicode-bidi:embed. That&apos;s fine.

On the other hand, the default stylesheet rules dealing with the dir attribute (http://dev.w3.org/html5/spec/Overview.html#bidirectional-text) specify
  [dir] { unicode-bidi: embed; }

This is fine for what used to be known as inline elements. However, as Simon Montagu recently pointed out to me, this has greater specificity than the rules for flow elements, and thus a &quot;block&quot; element with dir=ltr|rtl will get unicode-bidi:embed by default. This was not the intent; &quot;block&quot; elements should default to unicode-bidi:isolate whether they have a dir attribute or not.

One way to fix that would be to add rules explicitly covering the &quot;block&quot; elements with a dir attribute to the four sections listed at the top of this bug. For example, instead of having

  address, blockquote, center, div, figure, figcaption, footer, form,
      header, hr, legend, listing, p, plaintext, pre, summary, xmp {
    display: block; unicode-bidi: isolate;
  }

one could have

  address, address[dir], blockquote, blockquote[dir], center, center[dir],
      div, div[dir], figure, figure[dir], figcaption, figcaption[dir],
      footer, footer[dir], form, form[dir], header, header[dir], hr, hr[dir],
      legend, legend[dir], listing, listing[dir], p, p[dir],
      plaintext, plaintext[dir], pre, pre[dir], summary, summary[dir],
      xmp, xmp[dir] {
    display: block; unicode-bidi: isolate;
  }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61140</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-12-07 22:52:36 +0000</bug_when>
    <thetext>The problem affects more than just those elements. I should move the unicode-bidi rules all into this section to make it clearer, and then add [dir] rules to everything with &apos;isolate&apos; and less specificity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63382</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-01-31 01:10:05 +0000</bug_when>
    <thetext>I did it a different way in the end, but in any case the problem should be fixed now.

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>63383</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-01-31 01:11:45 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6942.
Check-in comment: The &apos;bidi-override:embed&apos; rule for [dir] shouldn&apos;t take effect for block-level elements (since it overrides their &apos;isolate&apos; rule).
http://html5.org/tools/web-apps-tracker?from=6941&amp;to=6942</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63394</commentid>
    <comment_count>4</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2012-01-31 09:45:32 +0000</bug_when>
    <thetext>Thanks, that&apos;s great!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>