-
Notifications
You must be signed in to change notification settings - Fork 711
[css-values-4] Consider changing the specified behavior of <ratio>: 0 / 0 #5084
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
I guess this can affect interpolations from/to |
I don't think that's important, since But yeah, I think we were just imprecise in wording there. Should be fine to just make it behave as |
So, in the wpt/css/css-sizing/aspect-ratio/parsing/contain-intrinsic-size-valid.html test, it expects that the serialized value of 0/0 is 1/0. The spec only says the computed value should be 1/0. Is the test correct? |
It depends on which value is being serialized. The test is incorrect, since it's serializing the specified value; that should still be |
As per w3c/csswg-drafts#5084, serializing the specified style for 0/0 should remain 0/0; only computed style should change. R=futhark@chromium.org Bug: 1086606 Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac
There have been a number of spec changes in parsing aspect-ratio: https://drafts.csswg.org/css-sizing-4/#aspect-ratio https://drafts.csswg.org/css-values-4/#ratio-value In particular: - "auto <ratio>" is now a supported syntax, where the ratio is only used as a fallback if there is no intrinsic ratio - The ratio is now a non-negative number instead of a positive integer - The second component of the ratio is optional Note that I believe the last test in contain-intrinsic-size-valid to be incorrect; by my reading only the computed value should be affected, not the serialization. Note open issues: w3c/csswg-drafts#5557 w3c/csswg-drafts#5084 R=futhark@chromium.org, ikilpatrick@chromium.org, mstensho@chromium.org Bug: 1045668, 1083010, 1086606 Change-Id: Iba3588ed98beacd02f77f3bcc19e387b3add4a5e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2437698 Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Cr-Commit-Position: refs/heads/master@{#812403}
As per w3c/csswg-drafts#5084, serializing the specified style for 0/0 should remain 0/0; only computed style should change. R=futhark@chromium.org Bug: 1086606 Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac
As per w3c/csswg-drafts#5084, serializing the specified style for 0/0 should remain 0/0; only computed style should change. R=futhark@chromium.org Bug: 1086606 Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2439647 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#812646}
As per w3c/csswg-drafts#5084, serializing the specified style for 0/0 should remain 0/0; only computed style should change. R=futhark@chromium.org Bug: 1086606 Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2439647 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#812646}
As per w3c/csswg-drafts#5084, serializing the specified style for 0/0 should remain 0/0; only computed style should change. R=futhark@chromium.org Bug: 1086606 Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2439647 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#812646}
I've fixed the test, btw. |
I thought I fixed the test :p |
lol, i think i didn't merge the PR for mine |
As per w3c/csswg-drafts#5084, serializing the specified style for 0/0 should remain 0/0; only computed style should change. R=futhark@chromium.org Bug: 1086606 Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2439647 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#812646}
…only Automatic update from web-platform-tests [AspectRatio] Fix incorrect test As per w3c/csswg-drafts#5084, serializing the specified style for 0/0 should remain 0/0; only computed style should change. R=futhark@chromium.org Bug: 1086606 Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2439647 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#812646} -- wpt-commits: ec588187413435ae7e248a5d2a07846792e44bec wpt-pr: 25887
All right, I changed the spec to just make 0/0 behave as 1/0, rather than computing to it. This means that a 0/0 ratio will serialize as 0/0 in all value stages. |
Based on the update of github.com/w3c/csswg-drafts/issues/5084, a 0/0 ratio will serialize as 0/0 in all value stages. Differential Revision: https://phabricator.services.mozilla.com/D93182
…only Automatic update from web-platform-tests [AspectRatio] Fix incorrect test As per w3c/csswg-drafts#5084, serializing the specified style for 0/0 should remain 0/0; only computed style should change. R=futhark@chromium.org Bug: 1086606 Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2439647 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#812646} -- wpt-commits: ec588187413435ae7e248a5d2a07846792e44bec wpt-pr: 25887
Based on the update of github.com/w3c/csswg-drafts/issues/5084, a 0/0 ratio will serialize as 0/0 in all value stages. Differential Revision: https://phabricator.services.mozilla.com/D93182
Per these conversations: w3c/csswg-drafts#5084 w3c/csswg-drafts#5561 R=futhark@chromium.org, xiaochengh@chromium.org Bug: 1045668 Change-Id: I066809e31e4120b0c179235a101db5c74c3dd146
Per these conversations: w3c/csswg-drafts#5084 w3c/csswg-drafts#5561 R=futhark@chromium.org, xiaochengh@chromium.org Bug: 1045668 Change-Id: I066809e31e4120b0c179235a101db5c74c3dd146
Per these conversations: w3c/csswg-drafts#5084 w3c/csswg-drafts#5561 R=futhark@chromium.org, xiaochengh@chromium.org Bug: 1045668 Change-Id: I066809e31e4120b0c179235a101db5c74c3dd146 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480064 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#818250}
Per these conversations: w3c/csswg-drafts#5084 w3c/csswg-drafts#5561 R=futhark@chromium.org, xiaochengh@chromium.org Bug: 1045668 Change-Id: I066809e31e4120b0c179235a101db5c74c3dd146 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480064 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#818250}
Per these conversations: w3c/csswg-drafts#5084 w3c/csswg-drafts#5561 R=futhark@chromium.org, xiaochengh@chromium.org Bug: 1045668 Change-Id: I066809e31e4120b0c179235a101db5c74c3dd146 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480064 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#818250}
…t-ratio, a=testonly Automatic update from web-platform-tests [AspectRatio] Fix serialization of aspect-ratio Per these conversations: w3c/csswg-drafts#5084 w3c/csswg-drafts#5561 R=futhark@chromium.org, xiaochengh@chromium.org Bug: 1045668 Change-Id: I066809e31e4120b0c179235a101db5c74c3dd146 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480064 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#818250} -- wpt-commits: 8b94afceafbd71defd6e3a1f056321b7788e18c3 wpt-pr: 26148
…t-ratio, a=testonly Automatic update from web-platform-tests [AspectRatio] Fix serialization of aspect-ratio Per these conversations: w3c/csswg-drafts#5084 w3c/csswg-drafts#5561 R=futhark@chromium.org, xiaochengh@chromium.org Bug: 1045668 Change-Id: I066809e31e4120b0c179235a101db5c74c3dd146 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480064 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#818250} -- wpt-commits: 8b94afceafbd71defd6e3a1f056321b7788e18c3 wpt-pr: 26148
Based on the update of github.com/w3c/csswg-drafts/issues/5084, a 0/0 ratio will serialize as 0/0 in all value stages. Differential Revision: https://phabricator.services.mozilla.com/D93182
…only Automatic update from web-platform-tests [AspectRatio] Fix incorrect test As per w3c/csswg-drafts#5084, serializing the specified style for 0/0 should remain 0/0; only computed style should change. R=futhark@chromium.org Bug: 1086606 Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2439647 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#812646} -- wpt-commits: ec588187413435ae7e248a5d2a07846792e44bec wpt-pr: 25887
Based on the update of github.com/w3c/csswg-drafts/issues/5084, a 0/0 ratio will serialize as 0/0 in all value stages. Differential Revision: https://phabricator.services.mozilla.com/D93182
…t-ratio, a=testonly Automatic update from web-platform-tests [AspectRatio] Fix serialization of aspect-ratio Per these conversations: w3c/csswg-drafts#5084 w3c/csswg-drafts#5561 R=futhark@chromium.org, xiaochengh@chromium.org Bug: 1045668 Change-Id: I066809e31e4120b0c179235a101db5c74c3dd146 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480064 Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#818250} -- wpt-commits: 8b94afceafbd71defd6e3a1f056321b7788e18c3 wpt-pr: 26148
https://drafts.csswg.org/css-values-4/#ratios says:
Is there a strong reason this is a computed value change rather than just a "behaves as"?
There isn't really a problem with this, but it feels odd to make it serialize to something else for no good reason, and it seems weird to serialize to
0 / 0
in specified values and1 / 0
in computed values.The text was updated successfully, but these errors were encountered: