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

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

From: (unknown charset) Zack Weinberg <zweinberg@mozilla.com>
Date: Sat, 29 May 2010 18:33:36 -0700
To: (unknown charset) "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: (unknown charset) HĂ„konWiumLie <howcome@opera.com>, <www-style@w3.org>
Message-ID: <20100529183336.7d5ca401@moxana.local>
"Andrew Fedoniouk" <news@terrainformatica.com> wrote:
> >
> > Yeah, that's the answer to the question I was asking.  Your proposal
> > completely ignores what the Unicode bidi algorithm computes, and
> > looks only at explicit attributes on HTML elements.
> 
> It does not.  @dir has nothing with bidi algorithm per se.

Ok.  Then, based on what Murata-san says in
http://lists.w3.org/Archives/Public/www-style/2010May/0668.html
I am convinced that your proposal does not solve the problem.
Specifically, style sheets must cope with _on the fly user override_ of
writing direction; thus any approach depending on document annotations
cannot do the right thing in all cases.  We need a way for style sheets
to control formatting based on the way individual runs of text are
actually being drawn, regardless of why they are being drawn that way.

The HTML authoring guidelines are moot for the same reason.

> > ::ltr p ::first-line { padding-left: 2em }
> > ::rtl p ::first-line { padding-right: 2em }
> 
> I am not sure I understand the purpose of your declaration above.
> You want to make some paragraphs to use different paddings in the
> same section of a document?

This would make the first-line of a paragraph be indented from the
_left_ margin if it is left-to-right text, and from the _right_ margin
if it is right-to-left text.  In practice of course one would use
text-indent to get that effect; it is only an example.

zw
Received on Sunday, 30 May 2010 01:34:22 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:27 GMT