Expand description
Style sheets and their CSS rules.
Re-exportsยง
pub use self::container_rule::ContainerRule;
pub use self::counter_style_rule::CounterStyleRule;
pub use self::font_face_rule::FontFaceRule;
pub use self::font_feature_values_rule::FontFeatureValuesRule;
pub use self::font_palette_values_rule::FontPaletteValuesRule;
pub use self::import_rule::ImportRule;
pub use self::keyframes_rule::KeyframesRule;
pub use self::layer_rule::LayerBlockRule;
pub use self::layer_rule::LayerStatementRule;
pub use self::origin::Origin;
pub use self::origin::OriginSet;
pub use self::origin::OriginSetIterator;
pub use self::origin::PerOrigin;
pub use self::origin::PerOriginIter;
pub use self::position_try_rule::PositionTryRule;
pub use self::property_rule::PropertyRule;
pub use self::scope_rule::ScopeRule;
pub use self::supports_rule::SupportsRule;
Modulesยง
- container_
rule - A
@container
rule. - counter_
style_ ๐rule - document_
rule ๐ - @document rules
initially in CSS Conditional Rules Module Level 3, @document has been postponed to the level 4.
We implement the prefixed
@-moz-document
. - font_
face_ ๐rule - font_
feature_ values_ rule - The
@font-feature-values
at-rule. - font_
palette_ values_ rule - The
@font-palette-values
at-rule. - import_
rule - The
@import
at-rule. - keyframes_
rule - Keyframes: https://drafts.csswg.org/css-animations/#keyframes
- layer_
rule - A
@layer
rule. - loader ๐
- The stylesheet loader is the abstraction used to trigger network requests
for
@import
rules. - margin_
rule ๐ - A
@margin
rule. - media_
rule ๐ - An
@media
rule. - namespace_
rule ๐ - The
@namespace
at-rule. - nested_
declarations_ ๐rule - A nested declarations rule. https://drafts.csswg.org/css-nesting-1/#nested-declarations-rule
- origin
- CSS cascade origins.
- page_
rule ๐ - A
@page
rule. - position_
try_ rule - A
@position-try
rule for Anchor Positioning. - property_
rule ๐ - rule_
list ๐ - A list of CSS rules.
- rule_
parser ๐ - Parsing of the stylesheet contents.
- rules_
iterator ๐ - An iterator over a list of rules.
- scope_
rule - A
@scope
rule. - starting_
style_ ๐rule - before-change style: the
@starting-style
rules. https://drafts.csswg.org/css-transitions-2/#defining-before-change-style - style_
rule ๐ - A style rule.
- stylesheet ๐
- supports_
rule - @supports rules
Structsยง
- AllRules
- A filter that processes all the rules in a rule list.
- CssRule
Types - Set of rule types.
- CssRules
- A list of CSS rules.
- Document
Rule - A @-moz-document rule
- Document
Style Sheet - A simple wrapper over an
Arc<Stylesheet>
, with pointer comparison, and suitable for its use in aStylesheetSet
. - Effective
Rules - A struct that represents the condition that a rule applies to the document.
- Insert
Rule Context - The information we need particularly to do CSSOM insertRule stuff.
- Margin
Rule - A
@margin
rule. - Media
Rule - An
@media
rule. - Namespace
Rule - A
@namespace
rule. - Namespaces
- A set of namespaces applying to a given stylesheet.
- Nested
Declarations Rule - A nested declarations rule.
- Page
Pseudo Class Flags - Bit-flags for pseudo-class. This should only be used for querying if a page-rule applies.
- Page
Rule - A
@page
rule. - Page
Selector - Type of a single [
@page
][page selector] - Page
Selectors - A list of [
@page
][page selectors] - Rules
Iterator - An iterator over a list of rules.
- Sanitization
Data - A struct to hold the data relevant to style sheet sanitization.
- Starting
Style Rule - A
@starting-style
rule. - Style
Rule - A style rule, with selectors and declarations.
- Stylesheet
- The structure servo uses to represent a stylesheet.
- Stylesheet
Contents - The contents of a given stylesheet. This effectively maps to a StyleSheetInner in Gecko.
- TopLevel
Rule Parser - The parser for the top-level rules in a stylesheet.
- UrlExtra
Data - Extra data that the backend may need to resolve url values.
- User
Agent Stylesheets - This structure holds the user-agent and user stylesheets.
Enumsยง
- Allow
Import Rules - Whether @import rules are allowed.
- Cors
Mode - The CORS mode used for a CSS load.
- CssRule
- A CSS rule.
- CssRule
Type - https://drafts.csswg.org/cssom-1/#dom-cssrule-type
- Margin
Rule Type - [
@margin
][margin] rule names. - Rules
Mutate Error - Sanitization
Kind - The kind of sanitization to use when parsing a stylesheet.
- State
- The current state of the parser.
Traitsยง
- CssRules
Helpers - A trait to implement helpers for
Arc<Locked<CssRules>>
. - Nested
Rule Iteration Condition - RulesIterator.
- Stylesheet
InDocument - A trait to represent a given stylesheet in a document.
- Stylesheet
Loader - The stylesheet loader is the abstraction used to trigger network requests
for
@import
rules.
Functionsยง
- style_
or_ ๐page_ rule_ to_ css - Serialize a page or style rule, starting with the opening brace.
Type Aliasesยง
- Effective
Rules Iterator - An iterator over all the effective rules of a stylesheet.