-
Notifications
You must be signed in to change notification settings - Fork 753
[css-transforms] scale function and property % #4396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
18bc49b to
d849d7a
Compare
|
This change should be made in css-transforms-2, not css-transforms-1. |
d849d7a to
707a156
Compare
|
I have updated to PR to only involve css-transforms-2. I have also described serialization. |
|
@tabatkins @smfr @grorg @hober please review |
css-transforms-2/Overview.bs
Outdated
|
|
||
| A <<percentage>> is equivalent to a <<number>>, | ||
| for example ''scale: 100%;'' is equivalent to ''scale: 1;''. | ||
| Numbers are used during serialization. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should move to section 4.1, about serialization.
css-transforms-2/Overview.bs
Outdated
| ======================= | ||
|
|
||
| The value of the 'transform' property is a list of <dfn><transform-function></dfn>. The set of allowed transform functions is given below. Wherever <<angle>> is used in this specification, a <<number>> that is equal to zero is also allowed, which is treated the same as an angle of zero degrees. A percentage for horizontal translations is relative to the width of the <a>reference box</a>. A percentage for vertical translations is relative to the height of the <a>reference box</a>. | ||
| A percentage in a scale function is equivalent to a number, and serializes as a number. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should move to section 4.1, about serialization.
|
Ah it's section 2.1 in transforms-2 |
|
Section 2.1 is about computed value serialization. Percentages in scale serialize as numbers even in the specified value. Are you requesting a new section about specified value serialization? |
|
It wasn't clear from "serializes as a number" whether you were talking about specified or computed. Maybe clarify? |
Allow percentages inside the scale functions, and the scale property. resolves w3c#3399
707a156 to
3b5fa27
Compare
Updated. |
|
Waiting for approval from an editor.
|
The functions scale() scaleX() scaleY() scaleZ() scale3d() and the property scale each accept percentages, that serialize as numbers. w3c/csswg-drafts#3399 w3c/csswg-drafts#4396 https://drafts.csswg.org/css-transforms-2/#transform-functions https://drafts.csswg.org/css-transforms-2/#propdef-scale Bug: 1179579 Change-Id: Icfbc42bf529c1c63045c3e918a6a1db2b14d1ae3
The functions scale() scaleX() scaleY() scaleZ() scale3d() and the property scale each accept percentages, that serialize as numbers. w3c/csswg-drafts#3399 w3c/csswg-drafts#4396 https://drafts.csswg.org/css-transforms-2/#transform-functions https://drafts.csswg.org/css-transforms-2/#propdef-scale Bug: 1179579 Change-Id: Icfbc42bf529c1c63045c3e918a6a1db2b14d1ae3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2703674 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#867008}
The functions scale() scaleX() scaleY() scaleZ() scale3d() and the property scale each accept percentages, that serialize as numbers. w3c/csswg-drafts#3399 w3c/csswg-drafts#4396 https://drafts.csswg.org/css-transforms-2/#transform-functions https://drafts.csswg.org/css-transforms-2/#propdef-scale Bug: 1179579 Change-Id: Icfbc42bf529c1c63045c3e918a6a1db2b14d1ae3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2703674 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#867008}
The functions scale() scaleX() scaleY() scaleZ() scale3d() and the property scale each accept percentages, that serialize as numbers. w3c/csswg-drafts#3399 w3c/csswg-drafts#4396 https://drafts.csswg.org/css-transforms-2/#transform-functions https://drafts.csswg.org/css-transforms-2/#propdef-scale Bug: 1179579 Change-Id: Icfbc42bf529c1c63045c3e918a6a1db2b14d1ae3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2703674 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#867008}
…ges., a=testonly Automatic update from web-platform-tests CSS Transforms: scale() accepts percentages. The functions scale() scaleX() scaleY() scaleZ() scale3d() and the property scale each accept percentages, that serialize as numbers. w3c/csswg-drafts#3399 w3c/csswg-drafts#4396 https://drafts.csswg.org/css-transforms-2/#transform-functions https://drafts.csswg.org/css-transforms-2/#propdef-scale Bug: 1179579 Change-Id: Icfbc42bf529c1c63045c3e918a6a1db2b14d1ae3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2703674 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#867008} -- wpt-commits: 808a9ed80e45a9da615fb930d212fcc7461648e6 wpt-pr: 28267
…ges., a=testonly Automatic update from web-platform-tests CSS Transforms: scale() accepts percentages. The functions scale() scaleX() scaleY() scaleZ() scale3d() and the property scale each accept percentages, that serialize as numbers. w3c/csswg-drafts#3399 w3c/csswg-drafts#4396 https://drafts.csswg.org/css-transforms-2/#transform-functions https://drafts.csswg.org/css-transforms-2/#propdef-scale Bug: 1179579 Change-Id: Icfbc42bf529c1c63045c3e918a6a1db2b14d1ae3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2703674 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#867008} -- wpt-commits: 808a9ed80e45a9da615fb930d212fcc7461648e6 wpt-pr: 28267
Allow percentages inside the scale functions,
and the scale property.
resolves #3399