- From: Vadim Plessky <lucy-ples@mtu-net.ru>
- Date: Tue, 8 Jan 2002 22:55:27 +0000
- To: RUST Randal <RRust@COVANSYS.com>, "Css (E-mail)" <www-style@w3.org>
On Tuesday 08 January 2002 13:27, RUST Randal wrote: | From the CSS2 Specification: | | "if an element in the document tree has a value of 'none' for the | 'display' property, that element will generate nothing in the formatting | structure" | | Isn't it correct that the User Agent generates the document tree BEFORE | rendering the page on the screen? Do not mix DOM Tree (original HTML/XML document) and Render Tree. Setting {display: none} takes element (and all its children) *off* from the Render Tree, but element is still present in original DOM Tree. When you set display back to, say, 'block' - this element is re-added to Render Tree. Hope this helps. When element has "visibility: hidden", it's present in Render Tree as well - but just is not visible. Do you see the difference here? | | -----Original Message----- | From: Rowland Shaw [mailto:Rowland.Shaw@crystaldecisions.com] | Sent: Tuesday, January 08, 2002 8:08 AM | To: 'RUST Randal' | Subject: RE: Rendering question | | | I believe the browser should skip the entire <dvi> and all it contains. | It may have been a different case had it been visibility: hidden none of those elements are skipped in browser (as otherwise you wil have to do re-parsing) They just placed in different Trees, that's it. | | -----Original Message----- | From: RUST Randal [mailto:RRust@COVANSYS.com] | Sent: 08 January 2002 13:04 | To: RUST Randal; Css (E-mail) | Subject: RE: Rendering question | | | Sorry, what I meant to say was if I had an IMAGE inside of a DIV, with | the display property of the DIV set to NONE, does the UA render the image. | -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/
Received on Tuesday, 8 January 2002 14:56:57 UTC