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

On Wed, Dec 14, 2011 at 11:06 PM, 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?

I support this. Outward rounding makes sense to me.

Cheers,
Silvia.

Received on Friday, 16 December 2011 03:28:55 UTC