W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: [css3-exclusions] shape offsets should be relative to box-sizing property

From: Alan Stearns <stearns@adobe.com>
Date: Tue, 29 Jan 2013 14:57:49 -0800
To: Bear Travis <betravis@adobe.com>, www-style list <www-style@w3.org>
Message-ID: <CD2D92AD.1AF72%stearns@adobe.com>
On 1/29/13 12:54 PM, "Bear Travis" <betravis@adobe.com> wrote:

>Hi All,
>Looking over the Exclusions and Shapes specification, I couldn't find a
>reference to what shape x and y offsets are relative to in a CSS property
>value like:
>shape-inside: rectangle(10px, 10px, 80px, 80px);
>I had originally assumed these offsets were relative to the content box
>[1], but as percentages are now resolved based on the box-sizing property
>[2], I think it would make sense to make a shape's x and y offsets
>relative to the same box.

The spec has this text:

When using the SVG syntax or referencing SVG elements
to define shapes, the relevant box is determined by
the computed value of the 'box-sizing' property.
All the lengths expressed in percentages are resolved
from the relevant box. The coordinate system for the
shape has its origin on the top-left corner of the
relevant box with the x-axis running to the right and
the y-axis running downwards.

So the offsets use a coordinate system based on the value of 'box-sizing'

>As one additional question, are shape-outside and shape-inside positioned
>and sized based on the same box? I think this would make the most sense,
>but that would make shape-outside positioned based on the content box by

Yes, it's the same box for both.


Received on Tuesday, 29 January 2013 22:58:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:25 UTC