https://drafts.csswg.org/css-transforms/#transform-box
The transform-box property allows defining which reference box to use when computing 'transform' and 'transform-origin'. It currently only has an effect on SVG elements.
This allows SVG elements to adopt a transform behavior similar to that of HTML elements, by using the geometry of a shape as the basis for transformations (i.e scale around the center of a shape and similar. ) Semantic gap bridge.
Firefox: Shipped
Edge: No public signals
Safari: No public signals
Web developers: Positive
Interop risk expected to be low to medium. In its current form it's a fairly small feature (addition), so it should be possible to get decent test coverage into WPT. There's a risk for medium depending on how the issue with the initial value (see issue in compat risk section) is resolved, if not all UAs that currently support using percentage-based transforms (and transform-origins), follow suit. This can be addressed by a spec change though.
In its current (speced) form, this will break some content. Some will be fixable and some won't. There's a use counter for assessing the potential breakage (TransformUsesBoxSizeOnSVG), and an issue open on the spec (https://github.com/w3c/csswg-drafts/issues/857). This detail should be ironed out before shipping.
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fredrik Söderquist, blink-dev
LGTM1
Shane Stephens
unread,
Apr 19, 2017, 9:03:36 PM4/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dimitri Glazkov, Fredrik Söderquist, blink-dev
FYI: We just discussed transform-box during the CSSWG F2F as part of trying to resolve https://github.com/w3c/csswg-drafts/issues/895. The minutes of the discussion are linked on that issue.
The sense I got from the conversation was that Apple are interested in implementing this property, while Microsoft (as minuted) won't do it yet because they don't support CSS transforms on SVG boxes.
Cheers,
-Shane
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.