package cascade

  1. Overview
  2. Docs
CSS generation and manipulation library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cascade-1.0.0.tbz
sha256=c11bbdc7ab0eee8c03cd162e3e7fd1cb20de62beb13342b3b150a89264ee0056
sha512=43fd97a55c3b1dc4db5c87aa1a5a047d902e902ab2064af3a7c5bf945ebc333f8cd90ecca8013c17be5b950498eace8e0094ee4319eba408285e2bec8d7cdf7b

doc/cascade/Cascade/Rule/index.html

Module Cascade.RuleSource

Rule-local optimization passes.

Optimize one rule without descending into nested statements.

Sourceval finalize : ?canonicalize_selector:bool -> ctx:Ctx.t -> Stylesheet.rule -> Stylesheet.rule

Final declaration cleanup before a rule leaves the fixpoint.

Sourceval drop_shadowed : Stylesheet.rule list -> Stylesheet.rule list

Drop same-selector shadowed rules and declarations.

Sourceval merge_adjacent_identical : ctx:Ctx.t -> Stylesheet.rule list -> Stylesheet.rule list

Merge each maximal run of adjacent rules whose declaration bodies are identical into one selector-list rule. Cascade-safe for any DOM: the same declarations apply either way. Runs with the always-on local rewrites, independent of the gated global factoring.