Vixen
dd8b0a81
csharp
public enum LayoutFragmentEnds

Which real ends of a fragmented box this fragment carries.

Read the guide page for this →

Remarks

⚠ The geometry and the flags answer two different questions and a painter needs both. A fragment's rectangle already includes the horizontal border and padding at whichever ends are real, so laying a background over it is correct with no reference to these flags. What the flags say is which vertical edges to stroke: CSS Display §2.2 draws a fragmented inline box's left border once, at its first fragment, and its right border once, at its last — the breaks in between are not edges of the box and get no border, no padding and no rounded corner.

Fields and properties (4)

  • None

    Neither end — a fragment whose both sides are line breaks.

  • Start

    The inline-start end, where the box really begins.

  • End

    The inline-end end, where the box really ends.

  • Both

    Both — an unfragmented box, which is what every node that has no fragments is.

Used by (4)

  • DrawListBuilderVixen.Ui
  • InlineFragmentationTestsVixen.Ui.Layout.Tests
  • LayoutFragmentVixen.Ui.Layout
  • LayoutTreeVixen.Ui.Layout