-
Notifications
You must be signed in to change notification settings - Fork 642
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
[css-sizing-4] min/max size transfers across aspect-ratio #6071
Comments
We need to go through https://drafts.csswg.org/css-flexbox/#min-size-auto and make sure that the new text is consistent with that; replaced elements at least should not have new behavior because of the new css-sizing-4 text. |
Key point: a flex item that has So the css-sizing-4 text is wrong here. |
So after discussing with fantasai, the css-sizing-4 transferred min/max size text should not apply in flexbox/grid. Instead, only the sizing inside those specs should apply. For flex:
|
This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29. Reason for revert: see w3c/csswg-drafts#6071 (comment) Original change's description: > [AspectRatio] Fix flex-aspect-ratio-026.html in legacy > > Implement min/max size transfers for replaced elements: > https://drafts.csswg.org/css-sizing-4/#aspect-ratio-size-transfers > > Mark both flex-aspect-ratio-025.html and flex-aspect-ratio-026.html as > passing for legacy and update these tests to take both main and cross > size padding into account. > > Add flex-aspect-ratio-027.html to verify that min/max-size transfer does not always happen just because aspect-ratio is present. > > Bug: 1164135 > Change-Id: I20a26cbe256ae5d6a66c5763c7b12f814a3d7ef6 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2721723 > Commit-Queue: Rob Buis <rbuis@igalia.com> > Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> > Cr-Commit-Position: refs/heads/master@{#859812} Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1
This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29. Reason for revert: see w3c/csswg-drafts#6071 (comment) Original change's description: > [AspectRatio] Fix flex-aspect-ratio-026.html in legacy > > Implement min/max size transfers for replaced elements: > https://drafts.csswg.org/css-sizing-4/#aspect-ratio-size-transfers > > Mark both flex-aspect-ratio-025.html and flex-aspect-ratio-026.html as > passing for legacy and update these tests to take both main and cross > size padding into account. > > Add flex-aspect-ratio-027.html to verify that min/max-size transfer does not always happen just because aspect-ratio is present. > > Bug: 1164135 > Change-Id: I20a26cbe256ae5d6a66c5763c7b12f814a3d7ef6 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2721723 > Commit-Queue: Rob Buis <rbuis@igalia.com> > Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> > Cr-Commit-Position: refs/heads/master@{#859812} Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1
This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29. Reason for revert: see w3c/csswg-drafts#6071 (comment) Original change's description: > [AspectRatio] Fix flex-aspect-ratio-026.html in legacy > > Implement min/max size transfers for replaced elements: > https://drafts.csswg.org/css-sizing-4/#aspect-ratio-size-transfers > > Mark both flex-aspect-ratio-025.html and flex-aspect-ratio-026.html as > passing for legacy and update these tests to take both main and cross > size padding into account. > > Add flex-aspect-ratio-027.html to verify that min/max-size transfer does not always happen just because aspect-ratio is present. > > Bug: 1164135 > Change-Id: I20a26cbe256ae5d6a66c5763c7b12f814a3d7ef6 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2721723 > Commit-Queue: Rob Buis <rbuis@igalia.com> > Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> > Cr-Commit-Position: refs/heads/master@{#859812} Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1
This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29. Reason for revert: see w3c/csswg-drafts#6071 (comment) Original change's description: > [AspectRatio] Fix flex-aspect-ratio-026.html in legacy > > Implement min/max size transfers for replaced elements: > https://drafts.csswg.org/css-sizing-4/#aspect-ratio-size-transfers > > Mark both flex-aspect-ratio-025.html and flex-aspect-ratio-026.html as > passing for legacy and update these tests to take both main and cross > size padding into account. > > Add flex-aspect-ratio-027.html to verify that min/max-size transfer does not always happen just because aspect-ratio is present. > > Bug: 1164135 > Change-Id: I20a26cbe256ae5d6a66c5763c7b12f814a3d7ef6 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2721723 > Commit-Queue: Rob Buis <rbuis@igalia.com> > Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> > Cr-Commit-Position: refs/heads/master@{#859812} Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1
This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29 and 674680c9a1a7f1e34ace0e050ea0276006252671. Reason for revert: see w3c/csswg-drafts#6071 (comment) This CL keeps the useful WPT test changes for flex-aspect-ratio-025.html and flex-aspect-ratio-026.html. Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1
What happens with grid minimum sizes here? E.g: <!DOCTYPE html>
<div style="display: grid; width: 0; height: 0; position: relative;">
<div style="overflow: hidden; min-width: 100px; min-height: 50px; aspect-ratio: 1/1; background: red;">
</div>
<div style="position: absolute; width: 100%; height: 100%; background: green; grid-area: 1/1/1/1;"></div>
</div> <!DOCTYPE html>
<div style="display: grid; width: 0; height: 0; position: relative;">
<div style="overflow: hidden; min-width: 50px; min-height: 100px; aspect-ratio: 1/1; background: red;">
</div>
<div style="position: absolute; width: 100%; height: 100%; background: green; grid-area: 1/1/1/1;"></div>
</div> |
This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29 and 674680c9a1a7f1e34ace0e050ea0276006252671. Reason for revert: see w3c/csswg-drafts#6071 (comment) This CL keeps the useful WPT test changes for flex-aspect-ratio-025.html and flex-aspect-ratio-026.html. Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2773267 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#867495}
This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29 and 674680c9a1a7f1e34ace0e050ea0276006252671. Reason for revert: see w3c/csswg-drafts#6071 (comment) This CL keeps the useful WPT test changes for flex-aspect-ratio-025.html and flex-aspect-ratio-026.html. Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2773267 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#867495}
This reverts commit 174c8fd and 674680c. Reason for revert: see w3c/csswg-drafts#6071 (comment) This CL keeps the useful WPT test changes for flex-aspect-ratio-025.html and flex-aspect-ratio-026.html. Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2773267 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#867495}
Automatic update from web-platform-tests Revert r859812 and r860306 This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29 and 674680c9a1a7f1e34ace0e050ea0276006252671. Reason for revert: see w3c/csswg-drafts#6071 (comment) This CL keeps the useful WPT test changes for flex-aspect-ratio-025.html and flex-aspect-ratio-026.html. Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2773267 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#867495} -- wpt-commits: 52c2635ca8e3e94e18d3da6c409001d25abfba63 wpt-pr: 28149
Automatic update from web-platform-tests Revert r859812 and r860306 This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29 and 674680c9a1a7f1e34ace0e050ea0276006252671. Reason for revert: see w3c/csswg-drafts#6071 (comment) This CL keeps the useful WPT test changes for flex-aspect-ratio-025.html and flex-aspect-ratio-026.html. Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2773267 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#867495} -- wpt-commits: 52c2635ca8e3e94e18d3da6c409001d25abfba63 wpt-pr: 28149
Automatic update from web-platform-tests Revert r859812 and r860306 This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29 and 674680c9a1a7f1e34ace0e050ea0276006252671. Reason for revert: see w3c/csswg-drafts#6071 (comment) This CL keeps the useful WPT test changes for flex-aspect-ratio-025.html and flex-aspect-ratio-026.html. Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2773267 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#867495} -- wpt-commits: 52c2635ca8e3e94e18d3da6c409001d25abfba63 wpt-pr: 28149
Automatic update from web-platform-tests Revert r859812 and r860306 This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29 and 674680c9a1a7f1e34ace0e050ea0276006252671. Reason for revert: see w3c/csswg-drafts#6071 (comment) This CL keeps the useful WPT test changes for flex-aspect-ratio-025.html and flex-aspect-ratio-026.html. Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2773267 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#867495} -- wpt-commits: 52c2635ca8e3e94e18d3da6c409001d25abfba63 wpt-pr: 28149
Can somebody check if this makes existing aspect-ratio + flex test expectations invalid? For example: |
Ah, never mind, I see those tests got corrected. |
I think this was fixed in a5044be @cbiesinger let me know if the spec seems to be correct now? |
This codepen (created Dec 31st 2021) https://codepen.io/propjockey/pen/VwMPYNw?editors=1100 But now Is it because of these changes? It was really useful to emulate a conceptual |
This reverts commit 174c8fdaa25c49ca36b702598f3fc08f72cc4f29 and 674680c9a1a7f1e34ace0e050ea0276006252671. Reason for revert: see w3c/csswg-drafts#6071 (comment) This CL keeps the useful WPT test changes for flex-aspect-ratio-025.html and flex-aspect-ratio-026.html. Bug: 1164135 Change-Id: I6a36d40c7e74eed6ab333a5bebcf6d1471d7d1b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2773267 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#867495} GitOrigin-RevId: cb947d5c1bf9a3bf12f62a6e153eeb49b7533198
https://drafts.csswg.org/css-sizing-4/#aspect-ratio-size-transfers
I think these should be defined as only impacting automatic or content-based sizes, rather than being defined as being an independent constraint clamped by the preferred size, because e.g. Flexbox makes a distinction between a size constraint applied to the "minimum size" vs a size constraint applied to the "preferred size" and it's otherwise not clear how this independent constraint would apply.
The text was updated successfully, but these errors were encountered: