W3C home > Mailing lists > Public > www-style@w3.org > September 2015

Re: [css-writing-modes] What are the serialized value when it is "treated as"

From: Jonathan Kew <jfkthame@gmail.com>
Date: Thu, 17 Sep 2015 18:26:55 +0100
To: Koji Ishii <kojiishi@gmail.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <55FAF7DF.4000405@gmail.com>
On 17/9/15 14:15, Koji Ishii wrote:
> The spec defines SVG 1.1 values "treat as" CSS values[1].
> When these values are serialized, are they supposed to keep its original
> string, or are they supposed to be CSS?
> For example, what would we expect to see:
>    <div id=test style="writing-mode: tb-rl"></div>
> and
>    console.log(getComputedStyle(test).style.writingMode);
> ?
> I recall there were some discussions about this for value aliases, but I
> don't remember the conclusion.

I'd like us to specify that they compute to the corresponding CSS 
values, so your example would print "vertical-rl".

This allows the UA to treat them as aliases early in the parsing 
process, rather than having to maintain separate values throughout, and 
reinforces the fact that they behave exactly the same rather than 
perhaps having some subtle (even unintentional) difference.

Received on Thursday, 17 September 2015 17:27:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:57 UTC