Module taffy::style

source ·
Expand description

A typed representation of CSS style properties in Rust. Used as input to layout computation.

Modules§

  • alignment 🔒
    Style types for controlling alignment
  • dimension 🔒
    Style types for representing lengths / sizes
  • grid 🔒
    Style types for CSS Grid layout

Structs§

  • A typed representation of the CSS style information for a single node.

Enums§

Traits§

  • The core set of styles that are shared between all CSS layout nodes
  • The set of styles required for a CSS Grid container
  • The set of styles required for a CSS Grid item (child of a CSS Grid container)

Type Aliases§

  • Controls alignment of an individual node
  • A grid line placement specification. Used for grid-[row/column]-[start/end]. Named tracks are not implemented.
  • Sets the distribution of space between and around content items For Flexbox it controls alignment in the main axis For Grid it controls alignment in the inline axis
  • Used to control how child nodes are aligned. Does not apply to Flexbox, and will be ignored if specified on a flex container For Grid it controls alignment in the inline axis
  • Controls alignment of an individual node
  • The sizing function for a grid track (row/column)