Commit ef26c71f authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by aborovova@mozilla.com
Browse files

Bug 1966527 [wpt PR 52550] - [align] Fix auto-margins disabling justify-self sizing.,

Automatic update from web-platform-tests
[align] Fix auto-margins disabling justify-self sizing.

This patch changes our behaviour to be in line with:
https://github.com/w3c/csswg-drafts/issues/12102#issuecomment-2880917326

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: default avatarMorten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1460370}

--

wpt-commits: d99035ccbd9d0f043ea89a496ea58982d45f7c45
wpt-pr: 52550

Differential Revision: https://phabricator.services.mozilla.com/D250218
parent 9e5c774f
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert"
  content="auto margins are calculated correctly when justify-self is specified but should have no effect" />
<meta name="assert" content="auto margins do not disable fit-content sizing when justify-self is specified">
<style>
  #reference-overlapped-red {
    position: absolute;
@@ -18,9 +17,8 @@

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

<div style="width: 100px;">
  <div
    style="height:100px; margin: auto; justify-self: right; background: green;">
    <div style="width: 50px;"></div>
<div style="width: 200px; margin-left: -50px;">
  <div style="height:100px; margin: auto; justify-self: right; background: green;">
    <div style="width: 100px;"></div>
  </div>
</div>