Skip to content

Commit

Permalink
[anchor] Fix anchor-center crash.
Browse files Browse the repository at this point in the history
We had a NOTREACHED within grid for anchor-center when it was valid.
Ensure it maps to center.

Bug: 341928664
Change-Id: If9fa88f9febb31333d3d646dfce356cc1456259e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5552987
Commit-Queue: Mason Freed <masonf@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Auto-Submit: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1304494}
  • Loading branch information
bfgeek authored and chromium-wpt-export-bot committed May 22, 2024
1 parent 323d73b commit da2dc27
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions css/css-anchor-position/grid-anchor-center-crash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!DOCTYPE html>
<link rel="help" href="https://issues.chromium.org/issues/341928664">
<div style="display: grid; position: relative;">
<div style="position: absolute; align-self: anchor-center;"></div>
</div>

0 comments on commit da2dc27

Please sign in to comment.