Open BorisChiou opened 4 years ago
cc @heycam
cc @ericwilligers
The spec is well understood, so I have no concerns about Gecko shipping. It would be excellent to have computed value serialization WPTs.
I don't think we need to wait until we have two or more browsers supporting all five values for transform-box - the CSS Transforms 1 feature that isn't fully supported by browsers yet.
For Blink, I would like to ship offset-anchor
at the same time as the individual transform properties. (I suspect Blink currently uses 0,0 as the effective offset-anchor.)
Does Gecko already support percentage scaling? #3399
Does Gecko already support percentage scaling? #3399
Not yet. I just filed Bug 1597642, and can fix it soon or later.
The CSS Working Group just discussed The readiness of shipping individual transform properties - translate, rotate, scale
, and agreed to the following:
RESOLVED: Working group is fine with translate, rotate and scale shipping
RESOLVED: Move the 3D transforms to a level 3of Transforms
Are we saying that the individual transform properties would be in L2 but 3D transforms would be in L3. So individual transform properties would be 2D in L2 and 3D in L3? I don't see any reason to ship the individual transform properties as 2D instead of 3D.
To be clear, the two resolutions here are separate. We resolved that the CSSWG is OK with implementations shipping the individual transform properties. Separately, we are looking whether we can accelerate getting transforms level 2 to CR (the normal way of encouraging things to ship). Whether or not we can get the spec to CR does not affect the decision that it's OK to ship now.
Does Gecko already support percentage scaling? #3399
Gecko supports percentage scaling for scale property and scale function now because Bug 1597642 has been fixed.
Is there any discussion about long-hand properties like scale-x
, scale-y
, etc?
If this doesn't ship in a CR of transforms soon enough, it should probably go in the relevant section of the next snapshot.
Added to the 2021 Snapshot. Still need someone to split out Transforms L3 and push L2 to CR.
Is there any discussion about long-hand properties like scale-x, scale-y, etc?
I'm also interested in this. I'm currently looking at refactoring a virtual grid component that specifies top
through a .row-n
class name and left
through a .col-n
class name. The CSS ends up looking something like this (obviously simplified):
.row-0 { top: 0px; }
.row-1 { top: 24px; }
.row-2 { top: 48px; }
.col-0 { left: 0px; }
.col-1 { left: 80px; }
.col-2 { left: 160px; }
Each cell is then assigned the row or column class according to its position in the grid. Refactoring this isn't as straightforward as I'd hoped, because I can't use translate-x
and translate-y
. I can use a CSS custom properties, but I've found that the resolution process for those offsets the performance gain that updating transform
provides and, in the case of pages with a large number of elements, sometimes makes performance significantly worse. That's possibly something that browser engines could mitigate but it would be nice if I didn't have to worry about using custom properties at all.
Individual Transform Properties have shipped in every browser by now. Are the spec edits still needed? @fantasai @tabatkins
@andyearnshaw @TheSonOfThomp The longhands were discussed and greenlighted but then halted in #7646.
Gecko is ready to ship individual transform properties - translate, rotate, scale. However, css-transforms-2 is still a working draft right now, so it'd be safer to make sure the CSS WG agrees to ship these 3 transform properties.
[1] Intend-to-ship mail for Gecko: https://groups.google.com/forum/#!topic/mozilla.dev.platform/4oyeCHOqt4I