W3C home > Mailing lists > Public > www-style@w3.org > December 2014

[css-logical-props] logical property values on computed style objects

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 31 Dec 2014 12:13:47 +1100
Message-ID: <54A34DCB.8040506@mcc.id.au>
To: www-style list <www-style@w3.org>
The spec should talk about how logical properties are exposed on 
computed style objects.  I think it would make sense to expose their 
logical values based on the direction/text-orientation/writing-mode 
values, for example:

     div { direction: rtl; margin-right: 10px; }
     var cs = getComputedStyle(document.querySelector("div"));
     alert(cs.getPropertyValue("margin-inline-start"));  // "10px"
Received on Wednesday, 31 December 2014 01:14:26 UTC

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