[cssom-view] Definition of svg layout box


I think there is a problem with the term "SVG layout box". Since SVG does not have something like layout that is comparable with the CSS boxing model, it is hard to define this term. What is the intention to have a definition for SVG layout box? In which context will it be used?

Note that the specification does unify CSS layout box and SVG layout box to just layout box, but still heavily uses the former term.

To differ between CSS layout and SVG rendering, we often use the following text in other specifications (definition of "bounding client rect" in CSS Masking):

* bounding client rect
The union of all border boxes for the element that has an associated CSS layout box and is not in the 'http://www.w3.org/2000/svg' namespace and its descendant elements. Or the object bounding box [SVG11], if the element does not have an associated CSS layout box and is in the 'http://www.w3.org/2000/svg' namespace. (See getBoundingClientRect [CSSOM-VIEW].)

This explicit definition is caused by the <svg> element which is kind of a hybrid. As root SVG element in an HTML document, it is an HTML element with associated CSS layout box. As document root, it has no CSS layout box and is no HTML element. All other SVG elements do not have an associated CSS layout box.


Received on Sunday, 22 September 2013 01:58:30 UTC