- From: Zack Weinberg <zweinberg@mozilla.com>
- Date: Sat, 29 May 2010 14:03:39 -0700
- To: "Andrew Fedoniouk" <news@terrainformatica.com>
- Cc: HåkonWium Lie <howcome@opera.com>, <www-style@w3.org>
"Andrew Fedoniouk" <news@terrainformatica.com> wrote: > > Correct, "dir" is a DOM attribute here. > > Precise algorithm of determination of :ltr,:rtl and :ttb values is > this: Start from the element itself and walk through child-parent > chain until you will find DOM element with defined "dir" attribute. > If value of the "dir" is "rtl" then set :rtl to true and reset all > other directionality pseudo-classes like :ltr and :ttb. Consider the complete HTML5 document <!doctype html> <p>This text is mostly in English, but contains a Hebrew quotation: <q>אבגabcדה</q>. There is an English word embedded in the quotation.</p> What, if anything, would be matched by :ltr here? :rtl? Why, or why not? Does your answer change if the Unicode explicit directional codes (U+202A through U+202E) appear anywhere in the document, either as HTML entities or as literal characters? Does your answer change if the right-to-left characters are not well-nested relative to element boundaries, e.g. <q>אבגabcד</q>ה ? zw
Received on Saturday, 29 May 2010 21:04:13 UTC