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 LayoutConstraintsProperties
| Name | Description |
|---|---|
| AvailableBlockSize | Gets the available block size. |
| AvailableInlineSize | Gets the available inline size. |
| BlockFragmentationOffset | Gets the offset where the box should fragment, or null: the layout API containers are not fragmented by their layout. |
| BlockFragmentationType | Gets the type of the fragmentation: always BlockFragmentationType.None. |
| Data | Gets the data given by the layout of the parent layout API container (a value of the script engine), or null. |
| FixedBlockSize | Gets the border-box block size of the box when it is known before the layout, else null. |
| FixedInlineSize | Gets the border-box inline size of the box when it is known before the layout, else null. |
| PercentageBlockSize | Gets the size the percentages of the block axis of the box resolve against. |
| PercentageInlineSize | Gets the size the percentages of the inline axis of the box resolve against. |
AvailableBlockSize
LayoutApiObjects.csGets the available block size.
public double AvailableBlockSize { get; }AvailableInlineSize
LayoutApiObjects.csGets the available inline size.
public double AvailableInlineSize { get; }BlockFragmentationOffset
LayoutApiObjects.csGets 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.csGets the type of the fragmentation: always BlockFragmentationType.None.
public BlockFragmentationType BlockFragmentationType { get; }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; }Property value
See also
FixedBlockSize
LayoutApiObjects.csGets the border-box block size of the box when it is known before the layout, else null.
public double? FixedBlockSize { get; }FixedInlineSize
LayoutApiObjects.csGets the border-box inline size of the box when it is known before the layout, else null.
public double? FixedInlineSize { get; }PercentageBlockSize
LayoutApiObjects.csGets the size the percentages of the block axis of the box resolve against.
public double PercentageBlockSize { get; }PercentageInlineSize
LayoutApiObjects.csGets the size the percentages of the inline axis of the box resolve against.
public double PercentageInlineSize { get; }