Vixen
dd8b0a81
csharp
public enum Display

Which formatting context a node establishes for its children.

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

Remarks

⚠ This was { Flex, None }, and the one keyword added here is a whole second algorithm. Doc 43 § B1. A Block container is not a flex column with align-items: stretch: its children's vertical margins collapse into each other and into the container's own, per CSS 2.1 §8.3.1, and CSS Flexbox §9.5 says in as many words that flex item margins do not. Anything that reads this enum and treats an unrecognised member as flex is therefore wrong in a way that only shows on a stacked layout with margins, which is most of them.

Fields and properties (8)

  • Flex

    A flex container.

  • None

    Not laid out, and neither are its children.

  • Block

    A block container: children stack down the block axis and fill the inline axis, and adjoining vertical margins collapse.

  • Grid

    A grid container: children are placed into a two-dimensional set of tracks, sized by CSS Grid §12 and aligned within their areas by CSS Box Alignment.

  • Inline

    An inline-level box with flow content: it sits on a line beside its siblings rather than taking one of its own.

  • InlineBlock

    An inline-level box whose inside is a block container: it sits on a line, and its children stack.

  • InlineFlex

    An inline-level box whose inside is a flex container.

  • FlowRoot

    A block container that always establishes a block formatting context of its own.

Used by (29)

  • AbsoluteAutoMarginTestsVixen.Ui.Layout.Tests
  • AutomaticMinimumSizeTestsVixen.Ui.Layout.Tests
  • BlockificationTestsVixen.Ui.Layout.Tests
  • ContainmentTestsVixen.Ui.Layout.Tests
  • ContentSizingTestsVixen.Ui.Layout.Tests
  • DisplayKeywordSurfaceTestsVixen.Ui.Tests
  • DisplayTestsVixen.Ui.Layout.Tests
  • FloatBandQueryTestsVixen.Ui.Layout.Tests
  • FloatBlindSpotTestsVixen.Ui.Layout.Tests
  • GridBlindSpotTestsVixen.Ui.Layout.Tests
  • GridSpecVixen.Ui.Layout.Tests
  • GridTemplateAreasTestsVixen.Ui.Layout.Tests
  • InlineBlindSpotTestsVixen.Ui.Layout.Tests
  • InlineFloatInteractionTestsVixen.Ui.Layout.Tests
  • InlineFormattingTestsVixen.Ui.Layout.Tests
  • InlineFragmentationTestsVixen.Ui.Layout.Tests
  • InlineStrutTestsVixen.Ui.Layout.Tests
  • InlineTextAlignTestsVixen.Ui.Layout.Tests
  • KeywordsVixen.Ui
  • LayoutStyleVixen.Ui.Layout
  • LayoutStyleBridgeTestsVixen.Ui.Tests
  • LayoutStyleBuilderVixen.Ui
  • LayoutTreeVixen.Ui.Layout
  • MarginCollapsingTestsVixen.Ui.Layout.Tests
  • RunSpecVixen.Ui.Layout.Tests
  • SafeAlignmentTestsVixen.Ui.Layout.Tests
  • ShapeVixen.Ui.Layout.Tests
  • TaffyStyleMapVixen.Ui.Layout.Tests
  • TransferredSizeTestsVixen.Ui.Layout.Tests