Re: Transformed Pointer Coordinates?

On Tue, Feb 12, 2013 at 2:40 PM, Boris Zbarsky <> wrote:

> On 2/11/13 7:56 PM, Robert O'Callahan wrote:
>> [Constructor(float x, float y)]
>> interface DOMPoint {
>>    attribute float x;
>>    attribute float y;
>> }
> Should those perhaps be unrestricted?

I'd prefer not to since I think unrestricted floats would be hard for Web
developers to handle.

>  partial interface Node {
>>    DOMPoint convertPointFromNode(Node from, DOMPoint pt);
> And if not, what should happen when overflow to Infinity happens here?

Probably just set to zero, like I suggested for singular results.

Oh, I forgot one more edge case:
7) If either 'from' or the destination node has no CSS box, return 0,0.

I suppose we could bite the bullet, make the floats unrestricted, and make
edge cases 6 and 7 return NaNs (and overflowing cases return infinities).
Anyone have an opinion on that?

Wrfhf pnyyrq gurz gbtrgure naq fnvq, “Lbh xabj gung gur ehyref bs gur
Tragvyrf ybeq vg bire gurz, naq gurve uvtu bssvpvnyf rkrepvfr nhgubevgl
bire gurz. Abg fb jvgu lbh. Vafgrnq, jubrire jnagf gb orpbzr terng nzbat
lbh zhfg or lbhe freinag, naq jubrire jnagf gb or svefg zhfg or lbhe fynir
— whfg nf gur Fba bs Zna qvq abg pbzr gb or freirq, ohg gb freir, naq gb
tvir uvf yvsr nf n enafbz sbe znal.” [Znggurj 20:25-28]

Received on Tuesday, 12 February 2013 02:43:11 UTC