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

CSS2.1 'content', 404 Not Found, and audio files

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 04 Aug 2004 13:08:12 +0200
Message-ID: <4110C39C.2010007@inkedblade.net>
To: www-style@w3.org

Mark Schenk pointed this out to me:

http://www.w3.org/TR/CSS21/generate.html#content
  # The value is a URI that designates an external resource.
  # If a user agent cannot support the resource because of
  # the media types it supports, it must ignore the resource.

The question is, what if the user agent supports the resource
but cannot load it (not found, file corrupted, etc.)?

Also, it seems we haven't defined fallbacks very well here.
If the resource at the URL cannot be loaded as a replaced
element, the content value should fail and fall back, not
load half-baked strings.

   content: "Welcome to " url(welcome.png) "!";

Claudio also wants to know what happens if one embeds an audio
file in a visual display.

   body:before { content: url(welcome-fanfare.mid); }

~fantasai

-- 
http://fantasai.inkedblade.net/contact
Received on Wednesday, 4 August 2004 07:09:02 GMT

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