This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15573 - Box model for inlines in bidi paints margin/padding/border on wrong side
Summary: Box model for inlines in bidi paints margin/padding/border on wrong side
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSS Level 2 (show other bugs)
Version: unspecified
Hardware: All Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Bert Bos
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-15 17:00 UTC by Anton P
Modified: 2012-12-04 00:54 UTC (History)
0 users

See Also:


Attachments

Description Anton P 2012-01-15 17:00:38 UTC
Reported by fantasai

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

  # When the element's 'direction' property is 'ltr', 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's 'direction' property is 'rtl', 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's
'direction' property, we should use the element's /parent's/ direction
property.

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