Files
firefox/testing/web-platform/tests/css/css-grid/layout-algorithm
L. David Baron f1efe86bea Bug 1888596 [wpt PR 45423] - Fix check in GridSet constructor to handle CSS calc()., a=testonly
Automatic update from web-platform-tests
Fix check in GridSet constructor to handle CSS calc().

This is the result of auditing all callers of Length::IsPercent, to find
things that would cause incorrect behavior with calc() and/or
calc-size().

In the long term, this check and many others in this file should
probably handle calc-size() (since I think we *probably* should support
calc-size() for grid track sizes), but for now just fix this one check
that is inconsistent with the rest.

Without this change, the modified test fails a DCHECK() in
GridSizingTrackCollection::InitializeSets().

Bug: 313072
Change-Id: I0b0da3ffcc1e4bdbff3d4463f345ff1f456a93f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5406085
Commit-Queue: David Baron <[email protected]>
Reviewed-by: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1280149}

--

wpt-commits: 522b923185ac0c94fb51f046c703a3ee0aae51c3
wpt-pr: 45423
2024-04-10 09:24:48 +00:00
..