Open Bug 1558562 Opened 5 years ago Updated 2 years ago

[Inactive CSS] Display a warning when percentage (min-)heights are used in a place where they compute to auto

Categories

(DevTools :: Inspector: Rules, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: mstange, Unassigned)

References

(Blocks 1 open bug)

Details

There are cases when height: 100% is not effective, and has the same result as height: auto. The same applies for min-height. It would be nice to show a warning in those cases.
(I'm not exactly sure what those cases are. The one case I remember is that body { min-height: 100%; } only works if you also have html { height: 100%; }. In other words, usually your parent element needs an explicit height, unless you're absolutely positioned or the root element (and there may be more exceptions here).)

Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.