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

Re: [css-shapes] "box" value for shape-inside

From: Alan Stearns <stearns@adobe.com>
Date: Fri, 14 Jun 2013 10:05:49 -0700
To: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <CDE09A6B.2C194%stearns@adobe.com>
On 6/14/13 8:59 AM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

>I know shape-inside has been punted to level 2, so consider this a
>suggestion for that level.
>
>I'm watching Lea give a talk about border-radius right now, and she's
>demonstrating the use of shape-inside to make text in an element
>conform to the border-radius.  She points out how awkward it is,
>because you have to duplicate the element's size and border-radius in
>the rectangle() function.
>
>I suggest we add a "box" keyword to shape-inside, which is nothing
>more than the shape of the box.
>
>~TJ

This could be useful on shape-outside as well, so it could be considered
for level 1.

I've been thinking of other keywords that could be added to shape-inside
and shape-outside. One might be 'image' which, if the element is an img
element would use the image referenced by the src attribute with whatever
positioning, sizing, clipping etc. is applied. This would avoid having to
repeat the URL in your HTML and CSS, and make sure that the shape aligns
with the displayed image it comes from.

Thanks,

Alan
Received on Friday, 14 June 2013 17:06:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC