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

[css-shapes] Basis shape serialization

From: Dirk Schulze <dschulze@adobe.com>
Date: Wed, 15 Oct 2014 19:15:28 +0000
To: "<www-style@w3.org>" <www-style@w3.org>
Message-ID: <43C90266-15D9-4B43-A513-9BBE0B37897F@adobe.com>

The CSS Shapes specification defines parts of the serialization process for basic shapes[1]. It relies on the grammar of other specifications for <border-radius> and <position>. My question is about inset() and <shape-arg>{1,4}.

The spec says “omitting components when possible without changing the meaning”.

Following example:

	inset(0px 0%)

The meaning in this case would be the same if you leave out the percentage value. However, Chrome and WebKit still preserve the percentage value. I am working on a implementation of basic shapes for Gecko and currently it preserves the percentage value as well. I think it is reasonable because percentage can mean something different if there is a different context (in some cases like CSS Transforms and SVG). However, I would say that the implementations do not follow the wording then.

Received on Wednesday, 15 October 2014 19:15:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:47 UTC