Re: Rounding with #xywh=percent:25,25,50,50

On Wed, 06 Apr 2011 14:59:35 +0200, Philip Jägenstedt <philipj@opera.com>  
wrote:

> http://www.w3.org/Bugs/Public/show_bug.cgi?id=12427#c7
>
> What should we do about this? The spec onyl says "If percent is used, x  
> and width are interpreted as a percentage of the width of the original  
> media, and y and height are interpreted as a percentage of the original  
> height."
>

It seems to me that we never actually resolved this issue, I don't  
remember if anything was decided in a teleconference about this (or if I  
was present).

AFAICT from the archives of this thread the solution that was least  
disliked was rounding outwards:

x' = floor(x)
y' = floor(y)
w' = ceil(x+w) - floor(x)
h' = ceil(y+h) - floor(y)

Can we amend the spec to define this before going to REC?

-- 
Philip Jägenstedt
Core Developer
Opera Software

Received on Wednesday, 14 December 2011 12:06:50 UTC