Skip to main content

Module box_

Module box_ 

Source
Expand description

Specified types for box properties.

Re-exports§

pub use crate::logical_geometry::WritingModeProperty;
pub use crate::typed_om::KeywordValue;
pub use crate::typed_om::ToTyped;
pub use crate::typed_om::TypedValue;
pub use crate::values::generics::box_::PositionProperty;

Structs§

Contain
Constants for contain: https://drafts.csswg.org/css-contain/#contain-property
ContainerName
https://drafts.csswg.org/css-contain-3/#container-name
ContainerType
Specified keyword values for the container-type property. Spec: normal | [ [ size | inline-size ] || scroll-state ]
Display
MarginTrim
Specified value of the margin-trim property, which trims the margins of a container’s children where they meet the container’s edges. https://drafts.csswg.org/css-box-4/#propdef-margin-trim Pending https://github.com/w3c/csswg-drafts/issues/13731, we’re only targetting block trimming for now and skipping inline-start and inline-end
ScrollSnapAlign
https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align
ScrollSnapType
https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-type
ScrollbarGutter
Values for scrollbar-gutter: https://drafts.csswg.org/css-overflow-3/#scrollbar-gutter-property
TouchAction
Values for the touch-action property.
WillChange
Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.
WillChangeBits
The change bits that we care about.

Enums§

AlignmentBaseline
A specified value for the alignment-baseline property. https://drafts.csswg.org/css-inline-3/#alignment-baseline
Appearance
The value for the appearance property.
BackfaceVisibility
https://drafts.csswg.org/css-transforms/#backface-visibility-property
BaselineSource
A specified value for the baseline-source property. https://drafts.csswg.org/css-inline-3/#baseline-source
BoxAlign
Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/box-align)
BoxCollapse
Whether flexbox visibility: collapse items use legacy -moz-box behavior or not.
BoxDirection
Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/box-direction)
BoxOrient
Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/box-orient)
BoxPack
Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/box-pack)
BreakBetween
A kind of break between two boxes.
BreakWithin
A kind of break within a box.
Clear
https://drafts.csswg.org/css2/#propdef-clear
ContentVisibility
https://drafts.csswg.org/css-contain-2/#content-visibility
DirectionProperty
https://drafts.csswg.org/css-writing-modes/#propdef-direction
DisplayInside
DisplayKeyword 🔒
DisplayOutside
Defines an element’s display type, which consists of the two basic qualities of how an element generates boxes https://drafts.csswg.org/css-display/#propdef-display
DominantBaseline
A specified value for the dominant-baseline property. https://drafts.csswg.org/css-inline-3/#dominant-baseline
Float
https://drafts.csswg.org/css-box/#propdef-float
ImageOrientation
https://drafts.csswg.org/css-images/#propdef-image-orientation
Isolation
https://drafts.fxtf.org/compositing/#isolation
Orient
Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-orient)
Overflow
The value for the overflow-x / overflow-y properties.
OverflowAnchor
OverscrollBehavior
Resize
https://drafts.csswg.org/css-ui/#propdef-resize
ScrollBehavior
https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior
ScrollSnapAlignKeyword
Specified value of scroll-snap-align keyword value.
ScrollSnapAxis
https://drafts.csswg.org/css-scroll-snap-1/#snap-axis
ScrollSnapStop
ScrollSnapStrictness
https://drafts.csswg.org/css-scroll-snap-1/#snap-strictness
TextOrientation
https://drafts.csswg.org/css-writing-modes/#propdef-text-orientation
TopLayer
Whether an element lives in the top layer. Set by UA sheets.
Visibility
https://drafts.csswg.org/css-box/#propdef-visibility
Zoom
A specified value for the zoom property.

Functions§

appearance_base_enabled 🔒
appearance_base_select_enabled 🔒
change_bits_for_longhand 🔒
change_bits_for_maybe_property 🔒
is_display_grid_lanes_enabled 🔒

Type Aliases§

BaselineShift
A specified value for the baseline-shift property.
ContainIntrinsicSize
A specified value for the contain-intrinsic-size property.
LineClamp
A specified value for the line-clamp property.
OverflowClipMargin
The specified value of overflow-clip-margin.
Perspective
A specified value for the perspective property.
ScrollbarInset
The specified value of -moz-scrollbar-inset-block / -inline.