W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: An error pseudoselector for media

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Fri, 3 Feb 2012 17:50:57 +0100
Message-Id: <3C42D6D4-FD28-48B4-A111-9BE54E8A9826@crissov.de>
To: "www-style@w3.org list" <www-style@w3.org>
I wonder whether authors would want to be able to specify some generic fallback mechanism in CSS, like so:

  img[src^="file:"]:wont-load
    {content: url(path file attr(src), protocol "http", server "foo.example");}

  img[src$=".svg"]:wont-render
    {content: url(path name attr(src), extension "png");}

  file = name + (‘.’ + extension)?
  resource = path + (‘/’ + file)? + (‘?’ + query)? + (‘#’ + fragment)?
  …
Received on Friday, 3 February 2012 16:51:38 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:50 GMT