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

[css-shapes][css-masking] Not specified basic shape

From: Dirk Schulze <dschulze@adobe.com>
Date: Sun, 22 Dec 2013 20:38:02 +0000
To: www-style list <www-style@w3.org>
Message-ID: <DEA9314F-D034-40D4-B6D7-67EDD453EF5C@adobe.com>

CSS Shapes has the following syntax for the ’shape-outside’ property[1]:

	auto | [<basic-shape> || <box>] | <image>

This basically allows the following valid example:

	shape-outside: margin-box;

No shape is specified. What is the shape used for this property?

I think there are two useful possibilities:

1) The property is treated as if ‘auto’ was specified
2) An implicit inset() shape is specified matching the size of the specified box.

The first one might be the simplest, but the second option seems to make sense as well. I would actually think option 2 is preferable.

The ‘clip-path’ property has the same problem [2]:

	<clip-source> | [ <basic-shape> || <box> | bounding-box ] | none


1) The property is treated as if ‘none’ was specified
2) The element is clipped to the specified box by an implicit use of inset().

I think Option 2 is preferable as well as some kind of shortcut.

However, none of both specifications do specify the behavior yet. For my part, I want 'clip-path' behave the same as 'shape-outside'.


[1] http://dev.w3.org/csswg/css-shapes/#shape-outside-property
[2] http://dev.w3.org/fxtf/masking/#the-clip-path
Received on Sunday, 22 December 2013 20:38:45 UTC

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