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::property_rule::PropertyRule;
pub use self::supports_rule::SupportsRule;
Modules
- A
@container
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
. - 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. - An
@media
rule. - The
@namespace
at-rule. - A
@page
rule. - A list of CSS rules.
- Parsing of the stylesheet contents.
- An iterator over a list of rules.
- A style rule.
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.
- An
@media
rule. - A
@namespace
rule. - A set of namespaces applying to a given stylesheet.
- 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 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.
- 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
- The kind of sanitization to use when parsing a stylesheet.
- The current state of the parser.
Constants
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.
Type Definitions
- An iterator over all the effective rules of a stylesheet.
- Extra data that the backend may need to resolve url values.