W3C home > Mailing lists > Public > www-style@w3.org > December 2012

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

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Tue, 04 Dec 2012 12:59:46 +0100
Message-ID: <50BDE5B2.7090101@disruptive-innovations.com>
To: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:03 GMT