/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
//! Specified types for CSS values related to backgrounds.
usecrate::parser::{Parse, ParserContext}; usecrate::values::generics::background::BackgroundSize as GenericBackgroundSize; usecrate::values::specified::length::{
NonNegativeLengthPercentage, NonNegativeLengthPercentageOrAuto,
}; use cssparser::Parser; use selectors::parser::SelectorParseErrorKind; use std::fmt::{self, Write}; use style_traits::{CssWriter, ParseError, ToCss};
/// A specified value for the `background-size` property. pubtype BackgroundSize = GenericBackgroundSize<NonNegativeLengthPercentage>;
/// One of the keywords for `background-repeat`. #[derive(
Clone,
Copy,
Debug,
Eq,
MallocSizeOf,
Parse,
PartialEq,
SpecifiedValueInfo,
ToComputedValue,
ToCss,
ToResolvedValue,
ToShmem,
)] #[allow(missing_docs)] #[value_info(other_values = "repeat-x,repeat-y")] pubenum BackgroundRepeatKeyword {
Repeat,
Space,
Round,
NoRepeat,
}
/// The value of the `background-repeat` property, with `repeat-x` / `repeat-y` /// represented as the combination of `no-repeat` and `repeat` in the opposite /// axes. /// /// https://drafts.csswg.org/css-backgrounds/#the-background-repeat #[derive(
Clone,
Debug,
MallocSizeOf,
PartialEq,
SpecifiedValueInfo,
ToComputedValue,
ToResolvedValue,
ToShmem,
)] pubstruct BackgroundRepeat(pub BackgroundRepeatKeyword, pub BackgroundRepeatKeyword);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.