Skip to content

Commit d99035c

Browse files
bfgeekchromium-wpt-export-bot
authored andcommitted
[align] Fix auto-margins disabling justify-self sizing.
This patch changes our behaviour to be in line with: w3c/csswg-drafts#12102 (comment) This remove the `has_auto_margins` guards when choosing how an auto inline-size should resolve. Bug: 417730391 Change-Id: I06e831e3266f3f4a965b715fce12523ead938015 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6547880 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/main@{#1460370}
1 parent 2bcdcb8 commit d99035c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

css/css-align/blocks/justify-self-auto-margins-2.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<!DOCTYPE html>
22
<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">
33
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
4-
<meta name="assert"
5-
content="auto margins are calculated correctly when justify-self is specified but should have no effect" />
4+
<meta name="assert" content="auto margins do not disable fit-content sizing when justify-self is specified">
65
<style>
76
#reference-overlapped-red {
87
position: absolute;
@@ -18,9 +17,8 @@
1817

1918
<div id=reference-overlapped-red></div>
2019

21-
<div style="width: 100px;">
22-
<div
23-
style="height:100px; margin: auto; justify-self: right; background: green;">
24-
<div style="width: 50px;"></div>
20+
<div style="width: 200px; margin-left: -50px;">
21+
<div style="height:100px; margin: auto; justify-self: right; background: green;">
22+
<div style="width: 100px;"></div>
2523
</div>
2624
</div>

0 commit comments

Comments
 (0)