W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: [cssom] CSS Value API

From: Eli Morris-Heft <eli.morris.heft@gmail.com>
Date: Wed, 7 Apr 2010 15:02:31 -0500
Message-ID: <q2waa439c921004071302oaef67c09t8699c8f49f09e2f2@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>, www-style list <www-style@w3.org>
2010/4/7 Anne van Kesteren <annevk@opera.com>

> For some definition of logical that is certainly an interesting idea. It
> would however completely break the getter/setter symmetry of "px". I
> personally value that a little higher.
>

That is actually what I would have expected to happen. Maybe I missed
something in your proposal, but:

<div id="x" style="margin-top: 15%">
<script>
    var m = document.getElementById("x").style.margin.l[0].px;
    // what is the value of m here?
</script>

Eli Morris-Heft
Received on Wednesday, 7 April 2010 20:03:26 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT