Open Bug 1715681 Opened 4 years ago Updated 4 years ago

Verify the check of replaced elements for min-size:auto transferred size intrinsic size calculation in nsLayoutUtils.cpp

Categories

(Core :: Layout, enhancement, P3)

All
Unspecified
enhancement

Tracking

()

People

(Reporter: boris, Unassigned)

References

(Blocks 1 open bug, )

Details

It seems like the definition of replaced elements shouldn't include some elements like <select> (based on https://developer.mozilla.org/en-US/docs/Web/CSS/Replaced_element). However, it seems we set eReplaced frame bit for some elements which are not belonging to replaced elements. This may cause the if-check incorrect in some places, e.g. https://searchfox.org/mozilla-central/rev/b52cf6bbe214bd9d93ed9333d0403f7d556ad7c8/layout/base/nsLayoutUtils.cpp#5068.

We have to make sure this is still correct or we have to update it to something like eReplacedSize.

Blocks aspect-ratio because this may have an impact on some aspect-ratio cases.

You need to log in before you can comment on or make changes to this bug.