mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1585889 [wpt PR 19487] - [LayoutNG] Fix clusterfuzz crash, a=testonly
Automatic update from web-platform-tests [LayoutNG] Fix clusterfuzz crash Using empty Optional<MinMax> to indicate that MinMax value should not matter caused trouble with ng_length_utils ResolveInlineLengthInternal, when max-width was fit-content. Use MinMax(0, LayoutUnitMax) to indicate intrinsic size does not matter instead. It accomplishes the same goal, computed size does not get clamped by intrinsic. I've also tested running it with width:max-content out of fear that we might end up with too wide OOF, but that did not happen. Bug: 1010798 Change-Id: Ife11b3d9637be91cc0648b7f8485af51f07108bb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1837118 Commit-Queue: Aleks Totic <atotic@chromium.org> Auto-Submit: Aleks Totic <atotic@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#702525} -- wpt-commits: baf914481d76b25d7d054a23564d5b5418dd9f8b wpt-pr: 19487
This commit is contained in:
parent
db13c3bebb
commit
a35ea1b6e4
@ -261,7 +261,14 @@
|
||||
<!-- Just viewbox. Has aspect_ratio, but no intrinsic size
|
||||
inline_width is constrained by left/right, height computed proportionally -->
|
||||
<div class="container">
|
||||
<img class="target" style="left:100px;right:100px" src="data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg' %3E%3Crect width='100%' height='100%' style='fill:rgb(0,255,0);'/%3E%3C/svg%3E"
|
||||
<img class="target" style="left:100px;right:100px;" src="data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg' %3E%3Crect width='100%' height='100%' style='fill:rgb(0,255,0);'/%3E%3C/svg%3E"
|
||||
data-expected-width="188" data-expected-height="47" data-offset-y="146" data-offset-x="109"
|
||||
>
|
||||
</div>
|
||||
<!-- Same as previous test, but with max-width:fit-content. crbug.com/1010798
|
||||
-->
|
||||
<div class="container">
|
||||
<img class="target" style="left:100px;right:100px;max-width:fit-content" src="data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg' %3E%3Crect width='100%' height='100%' style='fill:rgb(0,255,0);'/%3E%3C/svg%3E"
|
||||
data-expected-width="188" data-expected-height="47" data-offset-y="146" data-offset-x="109"
|
||||
>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user