Class CSSAvailableSpace2
Spec 9.2.2 calculates an "available space" concept, which is made up of two values, each of which is either a 'length' (pixels) or a 'constraint' (MAX_CONTENT, MIN_CONTENT).
The Flexbox spec is badly written, and has an incomplete 'example-based' definition, which is:
https://www.w3.org/TR/css-flexbox-1/#algo-available "For each dimension, if that dimension of the flex container’s content box is a definite size, use that; if that dimension of the flex container is being sized under a min or max-content constraint, the available space in that dimension is that constraint; otherwise, subtract the flex container’s margin, border, and padding from the space available to the flex container in that dimension and use that value. This might result in an infinite value."
CSS3 defines AvailableSpace as: float, infinite, or constraint:
https://www.w3.org/TR/css-sizing-3/#available "A size representing the space into which a box is laid out, as determined by the rules of the formatting context in which it participates. The space available to a box is usually either a measurement of its containing block (if that is definite) or an infinite size (when it is indefinite). Available space can alternatively be either a min-content constraint or a max-content constraint, which forces boxes laid into it to be laid out under that constraint."
Namespace: NinjaTools.FlexBuilder.LayoutAlgorithms
Assembly: cs.temp.dll.dll
Syntax
public class CSSAvailableSpace2
Constructors
Fields
Properties
Methods
- (Boolean) Equals(CSSAvailableSpace2)
- (Boolean) Equals(Object)
- (Int32) GetHashCode()
- (CSSAvailableLength) Length(Axis)
- (void) Length(Axis, CSSAvailableLength)
Parameters
Axis | axis | |
CSSAvailableLength | newValue |