View Single Post
Old 06-21-2009, 12:45 PM   #50
Tuna
Zealot
Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.Tuna has a complete set of Star Wars action figures.
 
Posts: 114
Karma: 325
Join Date: May 2009
Device: Cool-ER
Quote:
Originally Posted by kovidgoyal View Post
Actually, now that I think some more about it, how will knowing the parent tree be enough to support absolute positioning. For example suppose that you use absolute positioning to position a semitransparent box in the upper left corner of the document as a sort of overlay. Also suppose that the <div> representing this box i sthe last element in the document tree. Now when you are rendering the first page, how will you know that the upper left corner needs a box overlay unless you've parsed the rest of the tree?
I think you're searching for cases - but nothing you've come up with yet invalidates the value of indexing. If you think a little more you'll realise that absolute positioning can be handled very well by pre-indexing the document and would dramatically improve rendering performance.
Tuna is offline   Reply With Quote