Henri Sivonen wrote:
What if there is no frame?
But there are for (at least non-SVG) elements that are being rendered,
right?
Yes.
* Whether the element is being rendered (display: none; or visibility:
hidden;)
Those are two very different things, for what it's worth....
I realize that. I just don't walk into subtrees that don't render.
A visibility:hidden frame can have descendants that render.
* The rendering width and height of the element's box in CSS px.
This is assuming this box exists, right? What if it doesn't?
I am assuming it always exists for elements that have a defined and
non-null contentDocument property and are neither display: none; nor
visibility: hidden;.
Is that a wrong assumption?
Yes. HTML iframes that are kids of an SVG element will have a defined and
non-null contentDocument, and may have any values of display and visibility.
I am only interested in the font size for elements that aren't in
non-rendering (display: none; nor visibility: hidden;) subtrees.
Again, visibility:hidden only affects the rendering of the element itself, not
necessarily its descendants. And again, display on its own doesn't guarantee
that a subtree is "rendered" when SVG gets involved.
Does an element even have a primary nsIFrame if it has display: none;?
No.
That's a sufficient test then?
Test for what?
-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout