Module style::stylesheets
source ยท 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ยง
- 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 - The
@font-feature-values
at-rule. - The
@font-palette-values
at-rule. - The
@import
at-rule. - Keyframes: https://drafts.csswg.org/css-animations/#keyframes
- 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. - A nested declarations rule. https://drafts.csswg.org/css-nesting-1/#nested-declarations-rule
- page_
rule ๐A@page
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. - 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 ๐
Structsยง
- A filter that processes all the rules in a rule list.
- Set of rule types.
- A list of CSS rules.
- A @-moz-document rule
- A simple wrapper over an
Arc<Stylesheet>
, with pointer comparison, and suitable for its use in aStylesheetSet
. - A struct that represents the condition that a rule applies to the document.
- The information we need particularly to do CSSOM insertRule stuff.
- A
@margin
rule. - An
@media
rule. - A
@namespace
rule. - A set of namespaces applying to a given stylesheet.
- A nested declarations rule.
- Bit-flags for pseudo-class. This should only be used for querying if a page-rule applies.
- A
@page
rule. - Type of a single [
@page
][page selector] - A list of [
@page
][page selectors] - An iterator over a list of rules.
- A struct to hold the data relevant to style sheet sanitization.
- A
@starting-style
rule. - A style rule, with selectors and declarations.
- The structure servo uses to represent a stylesheet.
- The contents of a given stylesheet. This effectively maps to a StyleSheetInner in Gecko.
- The parser for the top-level rules in a stylesheet.
- Extra data that the backend may need to resolve url values.
- This structure holds the user-agent and user stylesheets.
Enumsยง
- Whether @import rules are allowed.
- The CORS mode used for a CSS load.
- A CSS rule.
- https://drafts.csswg.org/cssom-1/#dom-cssrule-type
- [
@margin
][margin] rule names. - The kind of sanitization to use when parsing a stylesheet.
- The current state of the parser.
Traitsยง
- A trait to implement helpers for
Arc<Locked<CssRules>>
. - RulesIterator.
- A trait to represent a given stylesheet in a document.
- The stylesheet loader is the abstraction used to trigger network requests for
@import
rules.
Functionsยง
- Serialize a page or style rule, starting with the opening brace.
Type Aliasesยง
- An iterator over all the effective rules of a stylesheet.