mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto-generate parsing/serialization code for grid-auto-{rows,columns}
This commit is contained in:
parent
7099743bbf
commit
048f1f3316
3 changed files with 25 additions and 1 deletions
|
@ -11,6 +11,7 @@ use properties::ComputedValues;
|
|||
use std::fmt;
|
||||
use style_traits::ToCss;
|
||||
use super::{CSSFloat, RGBA, specified};
|
||||
use super::specified::grid::{TrackBreadth as GenericTrackBreadth, TrackSize as GenericTrackSize};
|
||||
|
||||
pub use cssparser::Color as CSSColor;
|
||||
pub use self::image::{AngleOrCorner, EndingShape as GradientShape, Gradient, GradientKind, Image};
|
||||
|
@ -326,6 +327,12 @@ impl ToCss for ClipRect {
|
|||
/// rect(...) | auto
|
||||
pub type ClipRectOrAuto = Either<ClipRect, Auto>;
|
||||
|
||||
#[allow(missing_docs)]
|
||||
pub type TrackBreadth = GenericTrackBreadth<LengthOrPercentage>;
|
||||
|
||||
#[allow(missing_docs)]
|
||||
pub type TrackSize = GenericTrackSize<LengthOrPercentage>;
|
||||
|
||||
impl ClipRectOrAuto {
|
||||
/// Return an auto (default for clip-rect and image-region) value
|
||||
pub fn auto() -> Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue