W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: [css3-text-layout] New editor's draft - margin-before/after/start/end etc.

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>
Message-ID: <20100529140339.71a2d030@moxana.local>
"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

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>ה ?

Received on Saturday, 29 May 2010 21:04:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:35 UTC