Skip to main content

Module algorithms

Module algorithms 

Source
Expand description

§5.5 Parser Algorithms.

Implementation of the 11 algorithms defined in CSS Syntax Module Level 3 §5.5. This module covers:

  • CP-3 (lower-level algorithms): §5.5.7-§5.5.11.
  • CP-4 (declaration algorithms): §5.5.6.
  • CP-5 (stylesheet/rule/block algorithms): §5.5.1-§5.5.5.

Structs§

BlockContents
Result of consume_a_block / consume_a_blocks_contents. Combines a list of declarations (possibly empty) and a list of child rules.

Functions§

consume_a_block
§5.5.4 (L2469-2484) Consume a block.
consume_a_blocks_contents
§5.5.5 (L2486-2636) Consume a block’s contents.
consume_a_component_value
§5.5.8 (L2776-2796) Consume a component value.
consume_a_declaration
§5.5.6 (L2639-2717) Consume a declaration.
consume_a_function
§5.5.10 (L2832-2854) Consume a function.
consume_a_list_of_component_values
§5.5.7 (L2745-2774) Consume a list of component values.
consume_a_qualified_rule
§5.5.3 (L2340-2466) Consume a qualified rule.
consume_a_simple_block
§5.5.9 (L2799-2829) Consume a simple block.
consume_a_stylesheets_contents
§5.5.1 (L2223-2279) Consume a stylesheet’s contents.
consume_a_unicode_range_value
§5.5.11 (L2857-2872) Consume the value of a @font-face/unicode-range descriptor.
consume_an_at_rule
§5.5.2 (L2281-2337) Consume an at-rule.
consume_the_remnants_of_a_bad_declaration
§5.5.6 (L2721-2741) Consume the remnants of a bad declaration.