@@ -316,7 +316,7 @@ impl CssDefinitions {
316316 } => {
317317 // A quoted reference (`<'name'>`) denotes a PROPERTY per the CSS value
318318 // definition syntax, so resolve it from the property grammar before
319- // anything else — a same-named value type (e.g. the `<top>` used by
319+ // anything else - a same-named value type (e.g. the `<top>` used by
320320 // `<shape>`) must not shadow the property reference in `inset: <'top'>{1,4}`.
321321 if * quoted && datatype != prop_name {
322322 if let Some ( resolved) = self . resolve_property_reference ( datatype, multipliers) {
@@ -904,7 +904,7 @@ mod tests {
904904 ] ,
905905 ) ,
906906 (
907- // `<'margin-top'>{1,4}` — the 1-to-4 value box shorthand (ranged multiplier).
907+ // `<'margin-top'>{1,4}` - the 1-to-4 value box shorthand (ranged multiplier).
908908 "margin" ,
909909 & [
910910 ( "10px" , true ) ,
@@ -924,7 +924,7 @@ mod tests {
924924 & [ ( "10px" , true ) , ( "1px 2px 3px 4px" , true ) , ( "auto" , false ) ] ,
925925 ) ,
926926 (
927- // `none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]` — a `||`
927+ // `none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]` - a `||`
928928 // any-order group with an embedded optional operand.
929929 "flex" ,
930930 & [
@@ -954,7 +954,7 @@ mod tests {
954954 ) ,
955955 (
956956 // `[ ... <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | ...`
957- // — exercises the `/` line-height separator inside a shorthand.
957+ // - exercises the `/` line-height separator inside a shorthand.
958958 "font" ,
959959 & [
960960 ( "12px serif" , true ) ,
@@ -977,7 +977,7 @@ mod tests {
977977 ] ,
978978 ) ,
979979 (
980- // `[ <bg-layer> , ]* <final-bg-layer>` — a single layer needs no comma, and
980+ // `[ <bg-layer> , ]* <final-bg-layer>` - a single layer needs no comma, and
981981 // additional layers are comma-separated. The generator rewrites the
982982 // linearized `<bg-layer>#? , <final-bg-layer>` idiom into this spec form.
983983 "background" ,
@@ -1016,7 +1016,7 @@ mod tests {
10161016 }
10171017
10181018 /// Coverage for the multipliers not exercised by the combinator regression test
1019- /// (`*` zero-or-more, `!` at-least-one-in-group, and the ranged `{min,max}` form —
1019+ /// (`*` zero-or-more, `!` at-least-one-in-group, and the ranged `{min,max}` form -
10201020 /// as opposed to the fixed `{2}` count tested elsewhere).
10211021 #[ test]
10221022 fn test_multiplier_coverage ( ) {
@@ -1025,19 +1025,19 @@ mod tests {
10251025 }
10261026 let ( a, b) = ( || str !( "a" ) , || str !( "b" ) ) ;
10271027
1028- // `*` — zero or more, so the empty input is valid.
1028+ // `*` - zero or more, so the empty input is valid.
10291029 assert ! ( m( "a*" , & [ ] ) ) ;
10301030 assert ! ( m( "a*" , & [ a( ) ] ) ) ;
10311031 assert ! ( m( "a*" , & [ a( ) , a( ) , a( ) ] ) ) ;
10321032
1033- // `!` — the group must produce at least one value even though every operand
1033+ // `!` - the group must produce at least one value even though every operand
10341034 // inside it is individually optional.
10351035 assert ! ( !m( "[ a? b? ]!" , & [ ] ) ) ;
10361036 assert ! ( m( "[ a? b? ]!" , & [ a( ) ] ) ) ;
10371037 assert ! ( m( "[ a? b? ]!" , & [ b( ) ] ) ) ;
10381038 assert ! ( m( "[ a? b? ]!" , & [ a( ) , b( ) ] ) ) ;
10391039
1040- // `{min,max}` — a genuine range (not the fixed `{2}` count): 1..=3 here.
1040+ // `{min,max}` - a genuine range (not the fixed `{2}` count): 1..=3 here.
10411041 assert ! ( !m( "a{1,3}" , & [ ] ) ) ;
10421042 assert ! ( m( "a{1,3}" , & [ a( ) ] ) ) ;
10431043 assert ! ( m( "a{1,3}" , & [ a( ) , a( ) , a( ) ] ) ) ;
@@ -1134,7 +1134,7 @@ mod tests {
11341134 }
11351135
11361136 /// The `/` separating two `<grid-line>`s (and font-size/line-height etc.) is a
1137- /// structural delimiter. The `<custom-ident>` catch-all used to consume it — the
1137+ /// structural delimiter. The `<custom-ident>` catch-all used to consume it - the
11381138 /// optional ident tail in `[ <integer> && <custom-ident>? ]` ate the slash, so any
11391139 /// `grid-column` with a numeric or span left side and a second grid-line failed.
11401140 /// calc() bodies are preserved as raw text (the old stream-slice approach returned
@@ -1146,10 +1146,10 @@ mod tests {
11461146 /// the easing before the property name), and vendor-prefixed math functions.
11471147 /// Micro-gaps surfaced by the 66k-file external corpus: `background-clip: text`
11481148 /// (webref's <visual-box> misses it; use MDN's <bg-clip>), case-insensitive color
1149- /// keywords, and percentage scale() — the bare legacy `scale()` value def shadowed
1149+ /// keywords, and percentage scale() - the bare legacy `scale()` value def shadowed
11501150 /// the modern bracketed `<scale()>` under one loader key (Definition-typed entries
11511151 /// now win). The corpus's `margin-top: 0 \9` rejections are the IE hack, whose whole
1152- /// point is that modern parsers reject it — correct behavior, not a gap.
1152+ /// point is that modern parsers reject it - correct behavior, not a gap.
11531153 #[ test]
11541154 fn test_external_corpus_micro_gaps ( ) {
11551155 let defs = get_css_definitions ( ) ;
@@ -1259,7 +1259,7 @@ mod tests {
12591259 assert ! ( ok( "clip" , "auto" ) ) ;
12601260 assert ! ( !ok( "clip" , "banana" ) ) ;
12611261 // <'top'> property references keep resolving to the property grammar, which
1262- // accepts percentages — the <top> value type (`<length> | auto`) does not.
1262+ // accepts percentages - the <top> value type (`<length> | auto`) does not.
12631263 assert ! ( ok( "inset" , "10% 20%" ) ) ;
12641264 assert ! ( ok( "inset" , "auto" ) ) ;
12651265 }
@@ -1354,7 +1354,7 @@ mod tests {
13541354
13551355 /// `<alpha()>` in `<color-function>` denotes a function named `alpha`, not a bare
13561356 /// numeric. When its builtin arm matched Zero/Number/Percentage, any bare `0` matched
1357- /// `<color>` — so box-shadow's `&&` group let a leading `0` offset claim the
1357+ /// `<color>` - so box-shadow's `&&` group let a leading `0` offset claim the
13581358 /// shadow-color slot, rejecting every zero-offset shadow.
13591359 #[ test]
13601360 fn test_zero_offset_shadows_and_alpha_function ( ) {
@@ -1435,7 +1435,7 @@ mod tests {
14351435 }
14361436
14371437 /// A value containing a `var()`/`env()` substitution is valid at parse time for any
1438- /// property, wherever the substitution appears — its grammar cannot be checked until
1438+ /// property, wherever the substitution appears - its grammar cannot be checked until
14391439 /// substitution happens (CSS Variables L1 §3).
14401440 #[ test]
14411441 fn test_var_substitution ( ) {
0 commit comments