- From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
- Date: Mon, 03 Dec 2012 16:26:46 +0100
- 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 UTC