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/index.html

Module CascadeSource

Sourcemodule Apply : sig ... end

Project a stylesheet onto an element tree: resolve the cascade for each element and return the declarations to write into its style attribute, along with the rules that have no inline form. The cascade itself is Resolve; this adds the inline-specific policy. Pure - it returns the declarations to apply, the caller writes them onto the tree.

Sourcemodule Aria : sig ... end

WAI-ARIA states and properties.

Sourcemodule Baseline : sig ... end

CSS features that are not yet Baseline "widely available".

Sourcemodule Block : sig ... end

Statement-block cleanup passes.

Sourcemodule Color_space : sig ... end

Static colour-space conversion arithmetic for the optimiser.

Sourcemodule Common : sig ... end

Shared low-level helpers.

Sourcemodule Component : sig ... end

Stage 3 IR: CSS Syntax section 5.1 component values and rules.

Sourcemodule Container : sig ... end

CSS container query condition types

Sourcemodule Context : sig ... end

Explicit closed contexts for CSS AST/value transforms.

Sourcemodule Cover : sig ... end

Suffix coverage table for same-selector shadowing.

Sourcemodule Css : sig ... end

Typed CSS construction.

Sourcemodule Ctx : sig ... end

Optimizer context.

Sourcemodule Cursor : sig ... end

Stream cursor over Component.t list.

Sourcemodule Declaration : sig ... end

CSS declarations and parser.

Sourcemodule Declaration_intf : sig ... end

Declaration interface types

Sourcemodule Edge : sig ... end

Selector/property write edges.

Sourcemodule Error : sig ... end

Parse errors, sealed.

Sourcemodule Factor : sig ... end

Cascade-aware rule factoring.

Sourcemodule Factor_safe : sig ... end

Cascade legality checks shared by optimization factoring passes.

Sourcemodule Flatten : sig ... end

CSS nesting flattening.

Sourcemodule Font_face : sig ... end

Font-face descriptor types for type-safe \@font-face construction.

Sourcemodule Gzip_size : sig ... end

Estimated DEFLATE (gzip) transfer size.

Sourcemodule Index : sig ... end

Exact declaration-to-row index.

Sourcemodule Inline : sig ... end

Closed-world inlining transforms.

Sourcemodule Keyframe : sig ... end

Keyframe position types for type-safe \@keyframes construction.

Sourcemodule Lexer : sig ... end

Stage 2 stream: characters -> Token.t (CSS Syntax section 4).

Sourcemodule Loc : sig ... end

Source locations: byte-offset ranges in the original input.

Sourcemodule Loop : sig ... end

Best-first rewrite loop over a mutable rule pool: the incremental engine the minifier uses to merge rules.

Sourcemodule Media : sig ... end

Structured media conditions for type-safe media query construction.

Sourcemodule Merge : sig ... end

Rule merge helpers.

Sourcemodule Nest : sig ... end

CSS nesting rewrites.

Sourcemodule Optimize : sig ... end

CSS optimization utilities

Sourcemodule Order_maintenance : sig ... end

Order maintenance: a total order over opaque elements that answers precedence queries in O(1) while supporting insertion and deletion.

Sourcemodule Parser : sig ... end

Stage 3 stream: Token.t -> Component.t (CSS Syntax section 5).

Sourcemodule Pool : sig ... end

A mutable pool of CSS rules in cascade order, supporting near-constant merging and O(1) precedence queries.

Sourcemodule Pp : sig ... end

CSS Pretty Printer

Sourcemodule Preflight : sig ... end

Cheap gate for the expensive global factoring fixpoint.

Sourcemodule Properties : sig ... end

CSS properties: types and helpers.

Sourcemodule Properties_intf : sig ... end

Property type shared between properties.ml and properties.mli

Sourcemodule Reader : sig ... end

Simple CSS parser API — direct and readable.

Sourcemodule Resolve : sig ... end

Resolve a stylesheet against the nodes of a tree: selector matching and the cascade, decoupled from any particular DOM.

Sourcemodule Rule : sig ... end

Rule-local optimization passes.

Sourcemodule Rule_candidate : sig ... end

Fast local rewrite candidate generation for Rule_graph.

Sourcemodule Rule_graph : sig ... end

Cascade-dependency graph over a run of flat style rules.

Sourcemodule Rule_index : sig ... end

Per-rule declaration index for the shorthand composer pipeline.

Sourcemodule Rule_order : sig ... end

Canonical cascade-safe rule ordering.

Sourcemodule Rule_rewrite : sig ... end

Local DAG rewrite candidates and byte scoring.

Sourcemodule Rule_scheduler : sig ... end

Incremental greedy scheduler for graph rewrites.

Sourcemodule Selector : sig ... end

CSS selectors: core types and helpers.

Sourcemodule Selector_intf : sig ... end
Sourcemodule Selector_summary : sig ... end

Cheap structural summary of a selector, for use by the optimizer's safety checks.

Sourcemodule Shorthand : sig ... end

Declaration deduplication and shorthand composition.

Sourcemodule Size : sig ... end

Minified CSS byte-size estimates used by optimizer cost models.

Sourcemodule Sort : sig ... end

Closed enum of IR node categories.

Sourcemodule Stats : sig ... end

Optimizer profiling counters.

Sourcemodule Stylesheet : sig ... end

CSS stylesheet interface.

Sourcemodule Stylesheet_intf : sig ... end

CSS stylesheet interface types

Sourcemodule Summary : sig ... end

Cached rule summary for global factoring.

Sourcemodule Supports : sig ... end

Structured \@supports conditions for type-safe feature query construction.

Sourcemodule Syntax : sig ... end

Shared byte-level CSS syntax helpers.

Sourcemodule Token : sig ... end

CSS Syntax Module Level 3 section 4.2: token taxonomy.

Sourcemodule Values : sig ... end

CSS values and units: core types, printers, and parsers.

Sourcemodule Values_intf : sig ... end
Sourcemodule Variables : sig ... end

CSS variables and variable extraction utilities

Sourcemodule Variables_intf : sig ... end

CSS variables interface types