LayoutConstraints Class

The constraints of the layout of a layout API container (https://drafts.css-houdini.org/css-layout-api-1/#layoutconstraints), in its writing mode: the third argument of the layout() callback.

public sealed class LayoutConstraints

Properties

NameDescription
AvailableBlockSizeGets the available block size.
AvailableInlineSizeGets the available inline size.
BlockFragmentationOffsetGets the offset where the box should fragment, or null: the layout API containers are not fragmented by their layout.
BlockFragmentationTypeGets the type of the fragmentation: always BlockFragmentationType.None.
DataGets the data given by the layout of the parent layout API container (a value of the script engine), or null.
FixedBlockSizeGets the border-box block size of the box when it is known before the layout, else null.
FixedInlineSizeGets the border-box inline size of the box when it is known before the layout, else null.
PercentageBlockSizeGets the size the percentages of the block axis of the box resolve against.
PercentageInlineSizeGets the size the percentages of the inline axis of the box resolve against.

AvailableBlockSize

LayoutApiObjects.cs

Gets the available block size.

public double AvailableBlockSize { get; }

AvailableInlineSize

LayoutApiObjects.cs

Gets the available inline size.

public double AvailableInlineSize { get; }

BlockFragmentationOffset

LayoutApiObjects.cs

Gets the offset where the box should fragment, or null: the layout API containers are not fragmented by their layout.

public double? BlockFragmentationOffset { get; }

BlockFragmentationType

LayoutApiObjects.cs

Gets the data given by the layout of the parent layout API container (a value of the script engine), or null.

public object? Data { get; }

FixedBlockSize

LayoutApiObjects.cs

Gets the border-box block size of the box when it is known before the layout, else null.

public double? FixedBlockSize { get; }

FixedInlineSize

LayoutApiObjects.cs

Gets the border-box inline size of the box when it is known before the layout, else null.

public double? FixedInlineSize { get; }

PercentageBlockSize

LayoutApiObjects.cs

Gets the size the percentages of the block axis of the box resolve against.

public double PercentageBlockSize { get; }

PercentageInlineSize

LayoutApiObjects.cs

Gets the size the percentages of the inline axis of the box resolve against.

public double PercentageInlineSize { get; }