W3C home > Mailing lists > Public > www-style@w3.org > June 2014

[cssom-view] Add more enumeration values to CSSBoxType for SVG

From: Dirk Schulze <dschulze@adobe.com>
Date: Tue, 24 Jun 2014 05:06:37 +0000
To: "<www-style@w3.org>" <www-style@w3.org>
CC: www-svg <www-svg@w3.org>
Message-ID: <549F4C73-B631-4DE2-A43E-380879811FFC@adobe.com>
Hi,

I was looking at the GeometryUtils API and specifically at the enumeration CSSBoxType[1].

Currently CSSBoxType supports the enumeration values: "margin", "border", "padding", “content”. We already had a discussion for CSS Masking that these values are not sufficient for SVG. In SVG we added the keywords: "fill-box", "stroke-box" and “view-box” [2]. (The suffix “-box" is there for consistency with decisions made for CSS2.)

I wonder if it makes sense to add “fill”, “stroke” and “view” to CSSBoxType. However, the BoxQuadOptions and ConvertCoordinateOptions have initial values for their box types that are “border”. In CSS Masking we say that "margin", "border", "padding", “content” are mapped to “fill” for SVG elements and “fill”, “stroke”, “view” are mapped to the initial values of the properties (“border”).

Greetings,
Dirk

[1] http://dev.w3.org/csswg/cssom-view/#the-geometryutils-interface
[2] http://www.w3.org/TR/css-masking-1/#the-mask-clip
Received on Tuesday, 24 June 2014 05:07:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:22 UTC