Vixen
dd8b0a81
csharp
public enum Overflow

What happens to content that does not fit, on one axis.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ There is no Auto, and that is a decision rather than a gap. CSS's auto and scroll establish the same scroll container and lay out identically; the only difference between them is whether the scrollbar gutter is reserved when there is nothing to scroll. Nothing in this framework draws a scrollbar of its own — ScrollView is a control that builds its own — so a fourth member would encode a distinction no consumer could act on while splitting every == Scroll test in the flex algorithm into is Scroll or Auto. The stylesheet's own keyword survives in the computed style, so an engine that later grows automatic gutters can still tell the two apart there.

⚠ There is no Clip either, on the same argument and a stronger version of it. CSS separates clip from hidden by what hidden grants and clip does not — a scroll container, and programmatic scrolling — and Hidden here grants neither. ScrollView reads no overflow of its own at all, and ScrollTop is a control's property that no stylesheet reaches. So the two keywords cannot be told apart by any consumer in this framework, and a fourth member would split every != Visible test in the flex, block, grid and inline algorithms into is Hidden or Clip to no effect. LayoutStyleBuilder maps the keyword onto Hidden and the computed style keeps the author's own word.

Per axis, because overflow-x and overflow-y are separate properties and the flexbox rules that read this — the §4.5 automatic minimum size, and the fit-content size of a scroll container — are each about one axis. See OverflowX.

Fields and properties (3)

  • Visible

    It spills out.

  • Hidden

    It is clipped. Both hidden and clip arrive here — see the remark.

  • Scroll

    It is clipped and scrollable, which changes the minimum content size.

Used by (16)

  • AbsolutePositionTestsVixen.Ui.Layout.Tests
  • AutomaticMinimumSizeTestsVixen.Ui.Layout.Tests
  • FlexBasisFitContentTestsVixen.Ui.Layout.Tests
  • FlexibleLengthResolutionTestsVixen.Ui.Layout.Tests
  • FloatBlindSpotTestsVixen.Ui.Layout.Tests
  • InlineFloatInteractionTestsVixen.Ui.Layout.Tests
  • InlineFormattingTestsVixen.Ui.Layout.Tests
  • KeywordsVixen.Ui
  • LayoutStyleVixen.Ui.Layout
  • LayoutStyleBuilderVixen.Ui
  • LayoutTreeVixen.Ui.Layout
  • MarginCollapsingTestsVixen.Ui.Layout.Tests
  • OverflowTestsVixen.Ui.Tests
  • ScrollbarGutterTestsVixen.Ui.Layout.Tests
  • StyleResolutionVixen.Ui.Layout
  • TaffyStyleMapVixen.Ui.Layout.Tests