Re: getComputedStyle - Why window member function?
Neil Deakin <[email protected]> Fri, 11 Feb 2011 07:51:09 -0500
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 11/02/11 5:37 AM, Axel Dahmen wrote: > Because styles are not a window's property but a document's property. It > wouldn't come up my mind to search in the cupboard for motor oil, > either. That's why. I think the original intent was that a document might be presented in multiple ways. For instance, Firefox used to (theoretically) support displaying the same document in both regular and print preview mode at the same time. One document, but different styles used for each mode. Some implementation might also want to replicate that, which is why getComputedStyle is defined on a 'view' rather than on a document. _______________________________________________ dev-tech-dom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-dom