diff --git a/index.html b/index.html index 7c2c8f1b..e62a51de 100644 --- a/index.html +++ b/index.html @@ -1645,48 +1645,36 @@

ltr
- left-to-right text. + Left-to-right text.
rtl
- right-to-left text. + Right-to-left text.
auto
- - programmatically determined from the value of the member. + No explicit directionality.
-

+

When displaying the directionality-capable members to an - end-user, the user agent MUST use the base direction to - compute directional runs and layout or position text correctly in - text containing mixed-direction sequences [[!BIDI]]. When the base - direction is "auto" the - user agent MUST run the steps to programmatically determine the - directionality of a member - and use the resulting - text-direction value to assist in displaying the value of the - member. -

-

- The steps to programmatically determine the directionality of a - member are as follows. The algorithm takes the value - of a member. + end-user, if the base direction is ltr or rtl:

    -
  1. Find the first character (in logical order) of the - value that is of bidirectional character type L, AL, or R - [[!BIDI]]. -
  2. -
  3. If such a character is found and it is of bidirectional character - type AL or R, return "rtl". -
  4. -
  5. Otherwise, return "ltr". +
  6. If the member is being + displayed in a paragraph by itself, the user agent MUST override Rule + P3 of [[!BIDI]], setting the paragraph embedding level to 0 if the + base direction is ltr, or 1 if the base + direction is rtl. +
  7. +
  8. Otherwise, the user agent MUST + behave as if the member is in a left-to-right embedding [[!BIDI]] if + the base direction is ltr, or a right-to-left embedding + if the base direction is rtl.