Skip to content

Commit 8d4c776

Browse files
committed
Expand documentaton for Color
1 parent 79d0cf5 commit 8d4c776

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/color.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,12 @@ impl ToCss for ColorFunction {
585585
}
586586
}
587587

588-
/// A <color> value.
588+
/// Describes one of the value <color> values according to the CSS
589+
/// specification.
590+
///
591+
/// Most components are `Option<_>`, so when the value is `None`, that component
592+
/// serializes to the "none" keyword.
593+
///
589594
/// https://drafts.csswg.org/css-color-4/#color-type
590595
#[derive(Clone, Copy, PartialEq, Debug)]
591596
pub enum Color {

0 commit comments

Comments
 (0)