- From: Cameron McCormack <cam@mcc.id.au>
- Date: Thu, 11 Jun 2015 18:52:35 +1000
- To: www-style@w3.org
[I mentioned this in a public-fx email but I’m repeating it here for
more visibility.]
The CSS Transforms spec currently says:
The initial used value for SVG elements without associated CSS layout
box is 0 0.
I think the concept of an “initial used value” doesn’t make sense.
A used value can be defined based on the computed value of the property
plus some other conditions (other property values, perhaps what element
it’s on). But I don’t think it’s possible to say that the used value
becomes 0 0 if the computed value came from the initial value (which is
50% 50%), unless you wanted all occurrences of 50% 50% – even explicit
ones – to be treated as 0 0 on these SVG elements.
So I think we should define this using a UA style sheet rule. At least
Firefox and WebKit both already do implement this using a UA style sheet
rule. In Firefox we have:
@namespace url(http://www.w3.org/2000/svg);
*:not(svg),
*:not(foreignObject) > svg {
transform-origin: 0 0;
}
which should capture all non-outer <svg> elements.
--
Cameron McCormack ≝ http://mcc.id.au/
Received on Thursday, 11 June 2015 08:53:05 UTC