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

Re: Idea: background-image-frame attribute

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 29 Dec 2005 19:27:34 -0500
To: www-style@w3.org
Message-ID: <20051230002734.GA16345@ridley.dbaron.org>
On Thursday 2005-12-29 14:22 -0800, Andrew Fedoniouk wrote:
>     background-image: url(nextpage.png);
>     background-image-frame: 0px 0px 10px 10px;

This has already been proposed for replaced elements:
and a more general solution that solves both problems at once (like the
one proposed in [1]) would be vastly preferable to adding a new property
for each property that accepts image values.  For example:

  background-image: image-rect(nextpage.png, 0px, 0px, 10px, 10px);

This value could then be used everywhere images can be used: 'content',
'list-style-image', etc.

Putting multiple images into a single raster image file is a common
technique in user-interface design and would improve the page loading


[1] https://bugzilla.mozilla.org/show_bug.cgi?id=113577#c3

L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Received on Friday, 30 December 2005 00:27:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:22 UTC