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

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

From: Koji Ishii <kojiishi@gmail.com>
Date: Thu, 17 Sep 2015 22:15:07 +0900
Message-ID: <CAN9ydbVcJ=2mU3r9j-hwKgcTjchsTyE5-G_7P0yEgYLdJH4kqw@mail.gmail.com>
To: "www-style@w3.org" <www-style@w3.org>
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.

The same question applies to 'text-orientation: sideways' which is
equivalent to 'sideways-right'.

[1] https://drafts.csswg.org/css-writing-modes-3/#svg-writing-mode
[2]
https://drafts.csswg.org/css-writing-modes-3/#valdef-text-orientation-sideways

/koji
Received on Thursday, 17 September 2015 13:16:03 UTC

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