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

This just popped up through Silvia's reply. I also +1 Philip's suggestion.

On Wed, Dec 14, 2011 at 13:06, Philip Jägenstedt <philipj@opera.com> wrote:
> 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
>



-- 
Thomas Steiner, Research Scientist, Google Inc.
http://blog.tomayac.com, http://twitter.com/tomayac

Received on Friday, 16 December 2011 10:53:25 UTC