- From: Behnam Esfahbod ZWNJ <behnam@zwnj.org>
- Date: Tue, 19 Jul 2011 01:56:19 -0400
- To: Brian Manthos <brianman@microsoft.com>
- Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Brad Kemper <brad.kemper@gmail.com>, WWW-Style <www-style@w3.org>
On Mon, Jul 18, 2011 at 6:50 PM, Brian Manthos <brianman@microsoft.com> wrote: > From: Tab Atkins Jr. [mailto:jackalmage@gmail.com] >> I'm still strongly of the opinion that doing anything magical here is a bad idea > > That's also a great argument for making the corner gradients no doing their existing magic, but instead just snap to the corner. Yes, snapping is easier to explain, but it works only for cases that there's a point exactly at 50% of the gradient line. The square-box-and-fill model works better with the "object-fit" property and it's "fill" value. In fact, having a solution based on the object-fit property, there is the possibility to support yet a few more methods, like "cover", which is also impossible to implement using the current features. Also, note that "object-fit: contain" is equivalent to "45deg" or "135deg". -Behnam -- ' بهنام اسفهبد ' Behnam Esfahbod ' * .. http://behnam.esfahbod.info * ` * http://zwnj.org * o * 3E7F B4B6 6F4C A8AB 9BB9 7520 5701 CA40 259E 0F8B
Received on Tuesday, 19 July 2011 05:57:05 UTC