2013-06-07 11:49, Philippe Wittenbergh wrote:

Hmm, you're missing something: in both your examples the whole rule
block will be ignored (being invalid, e.a. Whereas in my example, the
other parameters (position/size/color/repeat/...) are applied and
remembered.

The examples referred to different cases. Your example uses url(#) in place of a background image in the background shorthand and becomes overridden by a background-image declaration. The rule was meant to stand as is, and as I wrote, in that case the best approach is to omit url(#) - so the shorthand will set background image to none.

Another case is the use of url(#) as a placeholder to be later replaced by the real URL. In that case, its being a formally valid URL is a problem.

So, depending on case, url(#) is either useless or worse.

And of course, the whole issue should be avoided by arranging
things so that such "placeholders" are not needed.

Think of something like this: skins for a forum or a web app. The
main stylesheet has all the structure, and most parameters for
background(-images). A second stylesheet (loaded based on user
preferences, stored in a DB or via cookies) then loads the colours
and background images. The background-images are stored in a sprite
that only varies in colours (to match or contrast fore- and
background-colors) per skin/theme.

Yes, and? There is no need for url(#) here. Is that what you mean? It would be more interesting to see a case where someone thinks that url(#) is needed for some reason.

Yucca

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to