Skip to content

Commit d9c853a

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/color.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,11 @@ 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+
/// Most components are `Option<_>`, so when the value is `None`, that component
591+
/// serializes to the "none" keyword.
592+
///
589593
/// https://drafts.csswg.org/css-color-4/#color-type
590594
#[derive(Clone, Copy, PartialEq, Debug)]
591595
pub enum Color {

0 commit comments

Comments
 (0)