<?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>15573</bug_id>
          
          <creation_ts>2012-01-15 17:00:38 +0000</creation_ts>
          <short_desc>Box model for inlines in bidi paints margin/padding/border on wrong side</short_desc>
          <delta_ts>2012-12-04 00:54:45 +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>CSS Level 2</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Anton P">antonsforums</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62744</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-15 17:00:38 +0000</bug_when>
    <thetext>Reported by fantasai

8.6 (The box model for inline elements in bidirectional context) says:

  # When the element&apos;s &apos;direction&apos; property is &apos;ltr&apos;, the left-most
  # generated box of the first line box in which the element appears
  # has the left margin, left border and left padding, and the right-
  # most generated box of the last line box in which the element
  # appears has the right padding, right border and right margin.
  #
  # When the element&apos;s &apos;direction&apos; property is &apos;rtl&apos;, the right-most
  # generated box of the first line box in which the element appears
  # has the right padding, right border and right margin, and the
  # left-most generated box of the last line box in which the element
  # appears has the left margin, left border and left padding.

The presentational results of this are unexpected.  When all of the following text is ltr:

   |Here is some text  [AND HERE IS MY QUOTE|
   |THAT CONTINUES ON THE LINE]  and my text|
   |continues.                              |

When the quote is of opposite-direction text:

   |Here is some text ETOUQ YM SI EREH DNA] |
   | [ENIL EHT NO SEUNITNOC TAHT and my text|
   |continues.                              |

The borders ought to be on the other sides; instead of deciding on which side
of the first/last box to draw the start/end decorations based on the element&apos;s
&apos;direction&apos; property, we should use the element&apos;s /parent&apos;s/ direction
property.

Conversation begins:
Bug description:
http://lists.w3.org/Archives/Public/www-style/2011May/0186.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>