Skip to content

Commit

Permalink
improve wording
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Jan 10, 2024
1 parent 3db620d commit 397ee28
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/rules/property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,25 @@ impl<'i> ToCss for PropertyRule<'i> {
dest.write_str("initial-value:")?;
match initial_value {
ParsedComponent::Token(crate::properties::custom::Token::WhiteSpace(value)) => {
// Only emit a single whitespace if the value has one or more spaces. This happens in
// the scenario where initial-value was defined as:
// Only emit a single whitespace character if the value has one or more spaces. This
// happens in the scenario where initial-value was defined as:
//
// ```css
// @property --foo {
// initial-value: ;
// }
// ```
// or with more spaces
//
// or with more spaces:
//
// ```css
// @property --foo {
// initial-value: ;
// }
// ```
//
// If no spaces were defined at all, then we don't want to emit any whitespace.
// If no spaces were defined at all, then we don't want to emit any whitespace:
//
// ```css
// @property --foo {
// initial-value:;
Expand Down

0 comments on commit 397ee28

Please sign in to comment.