Chapter 10 - Visual formatting model details - 10.3.5 Floating, non-replaced elements
Go to the relevant page of the specification.
- absolute-non-replaced-width-019 (ahem)
-
'shrink-to-fit' width of absolutely positioned, non-replaced elements - direction (left-to-right), float and max-width
When direction is left-to-right and 'left' is set to static position and 'width' and 'right' are 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of an floating, non-replaced element in normal flow computes to 'auto', then the used value of 'width' is also given by 'shrink-to-fit' width calculation. If 'width' of a floating, non-replaced element in normal flow is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If width of an absolutely positioned, non-replaced element resorts to 'shrink-to-fit' width calculation but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation. - absolute-non-replaced-width-020 (ahem)
-
'shrink-to-fit' width of absolutely positioned, non-replaced elements - direction (left-to-right), float and max-width
When direction is left-to-right and 'left' is set to static position and 'width' and 'right' are 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of an floating, non-replaced element in normal flow computes to 'auto', then the used value of 'width' is also given by 'shrink-to-fit' width calculation. If 'width' of a floating, non-replaced element in normal flow is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If width of an absolutely positioned, non-replaced element resorts to 'shrink-to-fit' width calculation but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation. - absolute-non-replaced-width-023 (ahem)
-
'shrink-to-fit' width of absolutely positioned, non-replaced elements - direction (right-to-left), float and max-width
When direction is right-to-left and 'right' is set to static position and 'width' and 'left' are 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of an floating, non-replaced element in normal flow computes to 'auto', then the used value of 'width' is also given by 'shrink-to-fit' width calculation. If 'width' of a floating, non-replaced element in normal flow is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If width of an absolutely positioned, non-replaced element resorts to 'shrink-to-fit' width calculation but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation. - absolute-non-replaced-width-024 (ahem)
-
'shrink-to-fit' width of absolutely positioned, non-replaced elements - direction (right-to-left), float and max-width
When direction is right-to-left and 'right' is set to static position and 'width' and 'left' are 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of an floating, non-replaced element in normal flow computes to 'auto', then the used value of 'width' is also given by 'shrink-to-fit' width calculation. If 'width' of a floating, non-replaced element in normal flow is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If width of an absolutely positioned, non-replaced element resorts to 'shrink-to-fit' width calculation but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation. - float-non-replaced-width-001
-
Floating non-replaced elements with 'auto' left margin
If 'margin-left' is computed as 'auto' its used value is '0'. - float-non-replaced-width-002
-
Floating non-replaced elements with specified left margin
If 'margin-left' is not computed as 'auto' its used value is as specified. - float-non-replaced-width-003
-
Floating non-replaced elements with 'auto' right margin
If 'margin-right' is computed as 'auto' its used value is '0'. - float-non-replaced-width-004
-
Floating non-replaced elements with specified right margin
If 'margin-right' is not computed as 'auto' its used value is as specified. - float-non-replaced-width-005
-
Floating non-replaced elements with left and right margins as 'auto'
If both 'margin-left' and margin-right' are computed as 'auto' their used value is as '0'. - float-non-replaced-width-006 (ahem)
-
Floating non-replaced elements with 'auto' width
If 'width' computes to 'auto' then the used value of 'width' is 'shrink-to-fit'. - float-non-replaced-width-007 (ahem)
-
'shrink-to-fit' width of floating, non-replaced elements - inline-block and max-width
If 'width' of a floating, non-replaced element computes to 'auto' or 'width' of an inline-block, non-replaced element in normal flow computes to 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of an inline-block, non-replaced element in normal flow is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If 'width' of a floating, non-replaced element computes to 'auto' but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation. - float-non-replaced-width-008 (ahem)
-
'shrink-to-fit' width of floating, non-replaced elements - max-width
If 'width' of a floating, non-replaced element computes to 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of a floating, non-replaced element is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If 'width' of a floating, non-replaced element computes to 'auto' but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation. - float-non-replaced-width-009 (ahem)
-
'shrink-to-fit' width of floating, non-replaced elements - max-width
If 'width' of a floating, non-replaced element computes to 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of a floating, non-replaced element is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If 'width' of a floating, non-replaced element computes to 'auto' but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation. - float-non-replaced-width-010 (ahem)
-
'shrink-to-fit' width of floating, non-replaced elements - width
If 'width' of a floating, non-replaced element computes to 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' is specified with absolute length, then the computed value is the specified value. If 'width' of a floating, non-replaced element computes to 'auto' but its own child uses specified absolute length, then such specified absolute length will define the preferred width in 'shrink-to-fit' width calculation. - float-non-replaced-width-011 (ahem)
-
'shrink-to-fit' width of floating, non-replaced elements - inline-block and max-width
If 'width' of a floating, non-replaced element computes to 'auto' or 'width' of an inline-block, non-replaced element in normal flow computes to 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of an inline-block, non-replaced element in normal flow is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If 'width' of a floating, non-replaced element computes to 'auto' but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation. - float-non-replaced-width-012 (ahem)
-
'shrink-to-fit' width of floating, non-replaced elements - max-width
If 'width' of a floating non-replaced element computes to 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation and such calculated width can be furthermore constrained, reduced by a max-width declaration.