W3C home > Mailing lists > Public > public-fx@w3.org > April to June 2014

Re: [geometry] DOMMatrix with DOMString argument

From: Dirk Schulze <dschulze@adobe.com>
Date: Sun, 25 May 2014 07:10:37 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: FX <public-fx@w3.org>, www-style <www-style@w3.org>
Message-ID: <76C12ACF-DC09-48F3-B095-BAA90DFC307E@adobe.com>

On May 23, 2014, at 11:32 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

>> 2) If no Element was passed, what is the fallback for relative of percentage values?
> Generally speaking, these types of things are resolved against a 0
> length.  I suppose that em/rem/etc should be resolved against the UA
> default font and font-size.

I checked MSCSSMatrix and WebKitCSSMatrix. Both have a method called setMatrixValue which takes a DOMString as argument. This DOMString takes a <transform-list> in the CSS Transforms notation. Percentage length values and relative length values throw a SyntaxError exception for both engines. It is at least another possibility. I am not sure if UAs can access font data without a document even though it should be possible.

Received on Sunday, 25 May 2014 07:11:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:49 UTC