Expand description
A property declaration block.
Structsยง
- Animation
Declarations - A set of property declarations including animations and transitions.
- Animation
Value Iterator - Iterator for AnimationValue to be generated from PropertyDeclarationBlock.
- Declaration
Importance Iterator - Iterator over
(PropertyDeclaration, Importance)
pairs. - Declaration
Parser State - The state needed to parse a declaration block.
- Property
Declaration Block - Overridden declarations are skipped.
- Property
Declaration IdSet - A set of properties.
- Property
Declaration IdSet Iterator - An iterator over a set of longhand ids.
- Property
Declaration ๐Parser - A struct to parse property declarations.
- Source
Property Declaration Update - A struct describes how a declaration block should be updated by
a
SourcePropertyDeclaration
.
Enumsยง
- Appendable
Value - A convenient enum to represent different kinds of stuff that can represent a value in the serialization of a property declaration.
- Declaration
Update ๐ - An enum describes how a declaration should update the declaration block.
- Importance
- A declaration importance.
Functionsยง
- alias_
of_ ๐known_ property - append_
declaration_ value - Append a given kind of appendable value to a serialization.
- append_
serialization - Append a given property and value pair to a serialization.
- handle_
first_ ๐serialization - Potentially appends whitespace after the first (property: value;) pair.
- is_
non_ ๐mozilla_ vendor_ identifier - Based on NonMozillaVendorIdentifier from Geckoโs CSS parser.
- parse_
one_ declaration_ into - Parse a given property declaration. Can result in multiple
PropertyDeclaration
s when expanding a shorthand, for example. - parse_
property_ declaration_ list - Parse a list of property declarations and return a property declaration block.
- parse_
style_ attribute - A helper to parse the style attribute of an element, in order for this to be shared between Servo and Gecko.
- report_
one_ ๐css_ error
Type Aliasesยง
- Small
Parse ๐Error Vec