- From: Cameron McCormack <cam@mcc.id.au>
- Date: Wed, 31 Dec 2014 12:13:47 +1100
- 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:
<style>
div { direction: rtl; margin-right: 10px; }
</style>
<div></div>
<script>
var cs = getComputedStyle(document.querySelector("div"));
alert(cs.getPropertyValue("margin-inline-start")); // "10px"
</script>
Received on Wednesday, 31 December 2014 01:14:26 UTC