Chapter 10 - Visual formatting model details - 10.6.6 Complicated cases
Go to the relevant page of the specification.
- c5525-fltcont-000 (image)
-
float
- float-non-replaced-height-001
-
Floated non-replaced element with 'margin-top', margin-bottom' set to 'auto' and 'height' relying on the descendants
If 'height' is 'auto' on an floated non-replaced element then the 'height' depends on the descendants. - inline-block-non-replaced-height-001
-
Inline-block non-replaced element with 'margin-top', margin-bottom' set to 'auto' and 'height' relying on the descendants
If 'height' is 'auto' on an inline-block non-replaced element then the 'height' depends on the descendants. - inline-block-non-replaced-height-002
-
Inline-block non-replaced elements' margin box is used for the height of the line box
Inline-block non-replaced elements use the margin box for sizing the height of the line box.