Skip to main content

Module props

Module props 

Source
Expand description

Typed CSS property values: colors, lengths, layout, backgrounds, etc. Contains all CSS property definitions, organized by category.

Submodules:

  • [basic]: Primitive CSS value types (colors, lengths, percentages, etc.)
  • [layout]: Layout-related properties (dimensions, overflow, grid, flexbox, etc.)
  • [style]: Visual style properties (backgrounds, borders, fonts, etc.)
  • [property]: The core [property::CssProperty] enum and its parser
  • [formatter]: CSS serialization (formatting properties back to CSS strings)

The [PixelValueTaker] trait is re-exported here for external crate use.

Modules§

basic
Basic / primitive CSS property types and their parsing code.
formatter
Trait and implementations for formatting CSS properties back into strings.
layout
CSS properties related to layout and positioning.
property
Defines the core CssProperty enum, which represents any single parsed CSS property, as well as top-level functions for parsing CSS keys and values.
style
Style properties (visual effects, backgrounds, borders, etc.)

Traits§

PixelValueTaker
Converts a PixelValue into a typed dimension wrapper, used by the layout solver.