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

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

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Mon, 03 Dec 2012 16:26:46 +0100
Message-ID: <50BCC4B6.4010406@disruptive-innovations.com>
To: www-style <www-style@w3.org>
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.

Several options:

1. we say the image-based shape is positioned at the
    start corner of the element or why not at the center.

2. we want better than that and we then need positioning
    and potentially sizing just like backgrounds...

The former is simple to define but will never handle a trivial
case like the following one:

   <img id="foo" src="...">
   <style>
     #foo {
       float: right;
       width: 500px; /* arbitrary and != #foo's intrinsic width*/
       height: auto;
       shape-outside: attr(src url); /* ooops can't match new size... */
     }
   </style>

The latter is more complex to specify but seems to me the
right way to go.

Opinions?

</Daniel>
Received on Monday, 3 December 2012 15:27:09 GMT

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