Re: [css3-exclusions] issue with shape-outside: url() (ISSUE-296)

On 03/12/12 16:26, Daniel Glazman wrote:

> I have recently discovered that we may miss something for
> outside shapes defined from an image's alpha channel: we
> say nothing about the "position" and size of that alpha channel
> inside the content box of the element carrying the property...
> Of course, we don't have this problem with shape-based
> values of shape-outside since the shapes are coordinate-based.

A proposal to solve this issue is to tweak the definition of
the shape-outside and shape-inside properties as follows.

Current definitions:

   shape-outside: auto | <shape> | <uri>
   shape-inside:  outside-shape | auto | <shape> | <uri>

Proposed definitions

   shape-outside: auto
                  | <shape>
                  | <uri> [ <position> [ , <position> ]* ]?
                          [ / <bg-size> ]?
   shape-inside:  outside-shape
                  | auto
                  | <shape>
                  | <uri> [ <position> [ , <position> ]* ]?
                          [ / <bg-size> ]?

where <position> and <bg-size> are taken from css3-background
[1] and [2]. Initial position is 0% 0% and initial size is
auto.

We probably want to "position" the shape relatively to the
content box of the element and we don't want to repeat, at
least for the time being.

[1] http://www.w3.org/TR/css3-background/#the-background-position
[2] http://www.w3.org/TR/css3-background/#the-background-size

</Daniel>

Received on Tuesday, 4 December 2012 11:59:59 UTC