flex:none Shorthand Expansion

Expand exact flex:none to0 0 auto, not zero basis or display:none. Explicit supplied computed/layout context only; not a browser cascade/layout engine or cross-browser guarantee.

Description

Flex none selects an inflexible automatic basis under its shorthand expansion.

Flex none selects an inflexible automatic basis under its shorthand expansion.1

It differs from setting every flex component to zero. Use flex:none Shorthand Expansion to evaluate the supplied inputs under the specific model below.

When to use flex:none Shorthand Expansion

Use flex:none Shorthand Expansion to evaluate the supplied inputs under the specific model below. Define the supplied layout, token or rendering scenario and establish the relevant units and browser context independently.

How to use flex:none Shorthand Expansion and understand its results

  1. Define the supplied layout, token or rendering scenario and establish the relevant units and browser context independently.
  2. Enter Observed shorthand using the field table and validation rules below, then run the tool.
  3. Read Flex grow, Flex shrink, Flex basis token and interpret units, signs, ordering and placeholders as explained below.
  4. If the tool reports an input error, correct that field and rerun. A successful false result, empty match list or unknown-evidence placeholder has the specific meaning described here; check the limitations before applying the result.
Input fieldMeaningValue typeRequirement
observedShorthandObserved shorthandstringRequired; constraints below

Enter exactly the string none. Return grow 0, shrink 0 and basis auto. The expansion alone does not calculate a used size, intrinsic constraints or overflow.

flex:none → grow=0, shrink=0, basis=auto

Field order, units and branch conditions follow the implementation explanation above.

Output fieldMeaningValue type
flexGrowFlex grownumber
flexShrinkFlex shrinknumber
flexBasisTokenFlex basis tokenstring
json
{
  "input": {
    "observedShorthand": "none"
  },
  "output": {
    "flexGrow": 0,
    "flexShrink": 0,
    "flexBasisToken": "auto"
  }
}

Limitations and assumptions

It differs from setting every flex component to zero. Apply the exact scope and assumptions described above.

All listed fields require explicit values. Unexpected fields, incorrect types, nonfinite numbers and sparse arrays fail validation. Domain-specific bounds, alignments and supported tokens are stated above; extremely large inputs or outputs can also be rejected. These errors differ from successful results such as false, no matches or unknown evidence.

Alternative or Complementary methods

Use flex:1 Shorthand Expansion for a related task: The flex shorthand combines growth, shrinkage and basis components.

Use flex-basis:auto Content Size Note for a related task: An automatic flex basis can use a definite main size or fall back to a content basis.

References

  1. flex:none Shorthand Expansion — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies