W3C home > Mailing lists > Public > www-style@w3.org > October 2001

RE: The "display" property

From: Rowland Shaw <Rowland.Shaw@crystaldecisions.com>
Date: Mon, 1 Oct 2001 01:08:30 -0700
Message-ID: <81E198609B9DD311BE0A00508B5E2984C9912E@ipsent02.camelot.seagatesoftware.com>
To: "'Daniel BODEA'" <dali@dali-designs.com>
Cc: www-style@w3.org
> > > Given an <img style="display: none">, is the navigator required to
> > > download the image and cache it or not? Moreover, is this a standard
> > > or should each navigator implement its behaviour the way it sees
> > > fit? After some experimentation, it seems IE 5.5 does download and
> > > cache the images though Netscape still doesn't work.
>
> > There's no need to download the image with display: none; so it probably
> > isn't under Gecko based browsers, of which Netscape 6 is one.
>
> My question still is... is this behaviour (display: none <=> download)
> clearly defined in any spec or not?

From reading the relevant section of the CSS2 spec [
http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-display ] it merely
states the element will create no boxes in the formatting structure. I'd
expect the guys at Netscape will argue their case of saving downloads of
content "not required".

My personal thought on this is if we're not going to display this visual
element, we don't need to download it (just yet). However, I would expect
the user agent to hold on to the image data if it's display property changes
to a visual state (in this case, inline), even if it goes non visual again.
Received on Monday, 1 October 2001 04:09:04 GMT

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