W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Re: CSS Textures

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Wed, 12 May 2004 20:37:55 +1000
Message-ID: <40A1FE83.1040706@iinet.net.au>
To: ernestcline@mindspring.com
Cc: www-style@w3.org

Ernest Cline wrote:
> The problem is that any useful texture proposal would be no easier than
> using images from either the POV of the user or the computer and would
> add nothing that images don't already add. So there is no reason to
> add textures to CSS.  Textures are already there as a use case of images.

   True, but it would be nice to be able to add some kind of texture to 
text (whether it be a gradient, pattern or image), rather than just 
backgrounds.

   Using image replacement for this purpose can be somewhat limited, 
especially when you want to apply texture to multiple headings, or other 
blocks of text.  Also, if multiple text blocks needed the same texture, 
you wouldn't need seperate images and style rules for each one.

for example:
p {
     background: url("/images/background");
     foreground: url("/images/foreground");
}

   Would render the background as usual, but it would paint the text 
with the texture from the foreground image.

-- 
Lachlan Hunt
Received on Wednesday, 12 May 2004 06:42:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:29 GMT