W3C home > Mailing lists > Public > public-svg-wg@w3.org > January to March 2012

Re: SVG-ISSUE-2433 (text-direction): consider adding dir="" attribute for specifying base text direction [SVG 2]

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 31 Jan 2012 12:41:37 -0800
Message-ID: <CAAWBYDD9LadqF0mh01WH9DceXkXuXVRqBAw0B7KAdRvLXLLqpw@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: Chris Lilley <chris@w3.org>, public-svg-wg@w3.org
On Tue, Jan 31, 2012 at 12:18 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> Chris Lilley:
>> So there would be a presentation attribute for the CSS property, and
>> also an HTML-like attribute, and these would not be the same and
>> might have different values?
> I don't claim to have fully thought this through. :-)  HTML of course has
> the direction property as well, but I don't know how it and dir="" interact.

HTML doesn't have a direction property, it only has @dir. On the
layout level, @dir maps to the 'direction' property for display

Adding 'direction' to CSS in the first place was a mistake - we did it
to let arbitrary XML languages declare bidirectional content, since
XML didn't have a native @dir attribute.  HTML content should never
use 'direction' at all, and it would be ideal for SVG to define a
native direction property as well.

Just change the current @direction attribute into a semantic
attribute, rather than a display one.

Received on Tuesday, 31 January 2012 20:42:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:14 UTC