- From: Thaddee Tyl <thaddee.tyl@gmail.com>
- Date: Tue, 22 May 2012 22:50:36 -0700
- To: www-style <www-style@w3.org>
On Tue, May 22, 2012 at 9:41 PM, Glenn Adams <glenn@skynav.com> wrote:
> while the intent of your proposal seems good, the details would need
> tweaking, and general buy-in and implementation support would need to occur
> before adopting; a couple of quick comments:
>
> creating a new type ScrollPosition may be over-design, when a simpler
> signature may suffice
I didn't see any WebIDL way to do that, and it seems that this is how all specs
do it. There is no requirement to map that to a type.
> using top and left as ScrollPosition values is western writing system
> centric, and may need to be relativized to handle rl-tb and tb writing modes
That is very true. I actually thought about that, and made it so that
we wouldn't
need to use {right:0} or such (indeed, {left:1} does that).
Maybe something like that would be better:
dictionary ScrollPosition {
float vertical = 0.5;
float horizontal = 0.0;
boolean notIfViewed = true;
};
with the `horizontal` field being relative to the left in ltr and
relative to the right in rtl.
Received on Wednesday, 23 May 2012 05:51:26 UTC