Bug 145783

Summary: Support transform-box to switch sizing box in SVG
Product: WebKit Reporter: Dirk Schulze <krit>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, fs, jonlee, pdr, sabouhallawa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Dirk Schulze 2015-06-08 21:54:28 PDT
transform-box was added to CSS Transforms to allow the user to switch between the objectBoundingBox and the SVG viewport for computing the transform origin and the reference dimension for transforms with percentage.

http://dev.w3.org/csswg/css-transforms/#transform-box
Comment 1 Fredrik Söderquist 2017-03-28 07:33:32 PDT
Gecko is set to ship this in version 55, and an implementation will land in Blink shortly. It'd be good to have some feedback from WebKit, especially wrt https://github.com/w3c/csswg-drafts/issues/857.
Comment 2 Simon Fraser (smfr) 2017-05-05 11:06:30 PDT
*** Bug 171023 has been marked as a duplicate of this bug. ***
Comment 3 Simon Fraser (smfr) 2017-05-16 23:01:41 PDT
Following https://github.com/w3c/csswg-drafts/issues/928, implementing transform-box will be a behavior change. Percentage values in transform-origin and transforms will no longer resolve against the fill-box by default, but instead use view-box.
Comment 4 Simon Fraser (smfr) 2017-05-20 15:06:58 PDT
Created attachment 310781 [details]
Patch
Comment 5 Simon Fraser (smfr) 2017-05-20 21:21:49 PDT
Created attachment 310790 [details]
Patch
Comment 6 Dean Jackson 2017-05-22 11:51:02 PDT
Comment on attachment 310790 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=310790&action=review

> Source/WebCore/css/CSSProperties.json:5963
> +            "codegen-properties": {
> +            },

Remove?

> Source/WebCore/rendering/style/RenderStyle.cpp:1134
> +    FloatPoint3D originTranslate;

originTranslation? You're nouning a verb :)
Comment 7 WebKit Commit Bot 2017-05-22 12:19:28 PDT
Comment on attachment 310790 [details]
Patch

Clearing flags on attachment: 310790

Committed r217236: <http://trac.webkit.org/changeset/217236>
Comment 8 WebKit Commit Bot 2017-05-22 12:19:30 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2017-05-22 12:39:05 PDT
<rdar://problem/32332230>