Skip to main content

Module css_engine

Module css_engine 

Source
Expand description

CSS engine abstraction — allows either the custom CSS stack or Stylo to serve as the cascade backend.

The css_engine feature selects the implementation at compile time. Layout code is generic over the engine via &dyn CssEngine.

Structs§

CustomCssEngine
Custom CSS engine — delegates to the existing css_cascade machinery.

Traits§

CssEngine

Functions§

default_css_engine
Construct the active CSS engine based on the css_engine feature.