L. David Baron wrote: > 1) text nodes always have the same style data as their parent element. > In terms of the internal GetStyleData() API, you can get the relevant > style data from either. In terms of the public/frozen GetComputedStyle > API, you can get it only from the parent element node. But it's the > same either way.
Er, to be a little more precise, that's true only for inherited properties. For non-inherited properties, text nodes always have the default values. But that's even less interesting. (See http://developer.mozilla.org/en/docs/CSS:inheritance for the difference between inherited and non-inherited properties.) -David -- L. David Baron <URL: http://dbaron.org/ > Technical Lead, Layout & CSS, Mozilla Corporation _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

