-
Notifications
You must be signed in to change notification settings - Fork 707
[css-transforms-2] Serialization of the computed value of translate
property.
#2124
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
Comments
btw. Example:
THERE ARE TWO DIFFERENT TRANSFORMS. It cannot be separated to scale and translate. The scale, translate, rotate etc. styles (not transforms) shall be removed from all drafts. |
@Nadya678 Of course it's not commutative, but it's well-defined if the spec specifies the order, and it does: https://drafts.csswg.org/css-transforms-2/#ctm I suspect these new properties were added precisely because some people without linear algebra notions assume |
But I need the commutative effect. People without knowledge of algebra also doesn't describe the For me the hardly is imagine 3D effects. Not by knowledge of algebra - if I calculate, the values are correct but imagine without seeing it. 2D without any problem. BTW. Shall be rotation instead of rotate and translation instead of translate if you don't use them as values but as properties (a noun). |
The Working Group just discussed
The full IRC log of that discussion<dael> Topic: [css-transforms-2] Serialization of the computed value of `translate` property<dael> github: https://github.com//issues/2124 <dael> TabAtkins: It's if translate 50% serialized to pixel or %. it depnds on layout info. Has to stay as a % right? <dael> AmeliaBR: Because % are resolved against transform box which are usually width and height of css box and is more complex for svg <dael> Rossen_: I'm in favor to keep them as % so we don't rely on layout. <dael> TabAtkins: And this is by default in the spec [reads] <dael> Rossen_: So it's editorial making it explicit? <dael> TabAtkins: At best we could match what translate function says. No need to do anything different. <dael> AmeliaBR: It's for impl <dael> ericwilligers: Perhaps it was blink making it absolute for lack of works? <dael> ??: The FF impl wanted ot align with chromium but I said spec said % so I wanted to clairyf <dael> ericwilligers: I think we'd got a wpt that says % so we have to fix blink and edge <dael> Rossen_: % is easier, less work. I'm willing to make that change. <dael> Rossen_: Is blink okay? <dael> smfr: Yeah. <dael> Rossen_: Webkit? <dael> ericwilligers: I don't think they impl the prop <dael> Rossen_: objections? <birtles> s/??/birtles/ <Rossen_> RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. |
The CSS translate property no longer resolves percentages in getComputedStyle results. CSS WG Resolution: RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. w3c/csswg-drafts#2124 BUG=811027 Change-Id: I6f9b60c285d1eccc2e13ff0e806794df5cce5151
The CSS translate property no longer resolves percentages in getComputedStyle results. CSS WG Resolution: RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. w3c/csswg-drafts#2124 BUG=811027 Change-Id: I6f9b60c285d1eccc2e13ff0e806794df5cce5151
The CSS translate property no longer resolves percentages in getComputedStyle results. CSS WG Resolution: RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. w3c/csswg-drafts#2124 BUG=811027 Change-Id: I6f9b60c285d1eccc2e13ff0e806794df5cce5151 Reviewed-on: https://chromium-review.googlesource.com/912052 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#536010}
The CSS translate property no longer resolves percentages in getComputedStyle results. CSS WG Resolution: RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. w3c/csswg-drafts#2124 BUG=811027 Change-Id: I6f9b60c285d1eccc2e13ff0e806794df5cce5151 Reviewed-on: https://chromium-review.googlesource.com/912052 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#536010}
The CSS translate property no longer resolves percentages in getComputedStyle results. CSS WG Resolution: RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. w3c/csswg-drafts#2124 BUG=811027 Change-Id: I6f9b60c285d1eccc2e13ff0e806794df5cce5151 Reviewed-on: https://chromium-review.googlesource.com/912052 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#536010}
… computed values, a=testonly Automatic update from web-platform-testsCSS translate: serialize % as percent for computed values The CSS translate property no longer resolves percentages in getComputedStyle results. CSS WG Resolution: RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. w3c/csswg-drafts#2124 BUG=811027 Change-Id: I6f9b60c285d1eccc2e13ff0e806794df5cce5151 Reviewed-on: https://chromium-review.googlesource.com/912052 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#536010} wpt-commits: 9b23a0cbf6476d3f1d0b25b9bda8e5249725b00b wpt-pr: 9469 wpt-commits: 9b23a0cbf6476d3f1d0b25b9bda8e5249725b00b wpt-pr: 9469
… computed values, a=testonly Automatic update from web-platform-testsCSS translate: serialize % as percent for computed values The CSS translate property no longer resolves percentages in getComputedStyle results. CSS WG Resolution: RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. w3c/csswg-drafts#2124 BUG=811027 Change-Id: I6f9b60c285d1eccc2e13ff0e806794df5cce5151 Reviewed-on: https://chromium-review.googlesource.com/912052 Commit-Queue: Eric Willigers <ericwilligerschromium.org> Reviewed-by: Fredrik Söderquist <fsopera.com> Cr-Commit-Position: refs/heads/master{#536010} wpt-commits: 9b23a0cbf6476d3f1d0b25b9bda8e5249725b00b wpt-pr: 9469 wpt-commits: 9b23a0cbf6476d3f1d0b25b9bda8e5249725b00b wpt-pr: 9469 UltraBlame original commit: e5dba25f95e33d5e559556d78d704c2121141012
… computed values, a=testonly Automatic update from web-platform-testsCSS translate: serialize % as percent for computed values The CSS translate property no longer resolves percentages in getComputedStyle results. CSS WG Resolution: RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. w3c/csswg-drafts#2124 BUG=811027 Change-Id: I6f9b60c285d1eccc2e13ff0e806794df5cce5151 Reviewed-on: https://chromium-review.googlesource.com/912052 Commit-Queue: Eric Willigers <ericwilligerschromium.org> Reviewed-by: Fredrik Söderquist <fsopera.com> Cr-Commit-Position: refs/heads/master{#536010} wpt-commits: 9b23a0cbf6476d3f1d0b25b9bda8e5249725b00b wpt-pr: 9469 wpt-commits: 9b23a0cbf6476d3f1d0b25b9bda8e5249725b00b wpt-pr: 9469 UltraBlame original commit: e5dba25f95e33d5e559556d78d704c2121141012
… computed values, a=testonly Automatic update from web-platform-testsCSS translate: serialize % as percent for computed values The CSS translate property no longer resolves percentages in getComputedStyle results. CSS WG Resolution: RESOLVED: % values of translate are serialized as percent for computed values. Add note making the behavior explicit. w3c/csswg-drafts#2124 BUG=811027 Change-Id: I6f9b60c285d1eccc2e13ff0e806794df5cce5151 Reviewed-on: https://chromium-review.googlesource.com/912052 Commit-Queue: Eric Willigers <ericwilligerschromium.org> Reviewed-by: Fredrik Söderquist <fsopera.com> Cr-Commit-Position: refs/heads/master{#536010} wpt-commits: 9b23a0cbf6476d3f1d0b25b9bda8e5249725b00b wpt-pr: 9469 wpt-commits: 9b23a0cbf6476d3f1d0b25b9bda8e5249725b00b wpt-pr: 9469 UltraBlame original commit: e5dba25f95e33d5e559556d78d704c2121141012
I can not find a definition of serialization of individual transform's computed value in the spec[1]
When serializing a 'translate' property with percentage value, such as 'translate: 50%', should we resolve it to px or keep it unresolved?
PS: Currently, both edge and chromium resolve percentage to px.
[1] https://drafts.csswg.org/css-transforms-2/#individual-transforms
The text was updated successfully, but these errors were encountered: