W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [cssom-view] Definition of svg layout box

From: Dirk Schulze <dschulze@adobe.com>
Date: Sat, 21 Sep 2013 19:25:43 -0700
To: www-style list <www-style@w3.org>
Message-ID: <98367423-0D5D-41E1-A20D-74EB7D168745@adobe.com>
Adding links to definitions at end of mail.

On Sep 22, 2013, at 3:58 AM, Dirk Schulze <dschulze@adobe.com> wrote:

> Hi,
> 
> 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.
> 
> Greetings,
> Dirk

SVG layout box: http://dev.w3.org/csswg/cssom-view/#svg-layout-box
CSS layout box: http://dev.w3.org/csswg/cssom-view/#css-layout-box
layout box: http://dev.w3.org/csswg/cssom-view/#layout-box
bounding client rect (CSS Masking): https://dvcs.w3.org/hg/FXTF/raw-file/tip/masking/index.html#bounding-client-rect

Greetings,
Dirk
Received on Sunday, 22 September 2013 02:26:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:57 UTC