@@ -4755,7 +4755,7 @@ describe("CssSyntax minify — the value transforms' rejection paths", () => {
47554755 // A family reads each slot by what it takes, so a width and a color are
47564756 // answered for as well as a keyword: both of these hold their initial.
47574757 ["a{column-rule:medium none red}", "a{column-rule:red}"],
4758- ["a{outline:medium none}", "a{outline:0 }"],
4758+ ["a{outline:medium none}", "a{outline:none }"],
47594759 ["a{flex-flow:row wrap}", "a{flex-flow:wrap}"],
47604760 // Both slots hold their initial, so the shortest one says both — whichever
47614761 // order they were written in.
@@ -4787,7 +4787,7 @@ describe("CssSyntax minify — the value transforms' rejection paths", () => {
47874787 ["a{border:medium solid red}", "a{border:solid red}"],
47884788 ["a{border:medium none currentcolor}", "a{border:0}"],
47894789 ["a{border:none medium}", "a{border:0}"],
4790- ["a{column-rule:medium none currentcolor}", "a{column-rule:0 }"],
4790+ ["a{column-rule:medium none currentcolor}", "a{column-rule:none }"],
47914791 // ...and a sibling that is one keeps it.
47924792 ["a{border:medium 1px}", "a{border:medium 1px}"],
47934793 ["a{border:currentcolor red}", "a{border:currentcolor red}"]
@@ -9369,10 +9369,10 @@ describe("CssSyntax minify — vendor prefixes (spellings an engine dropped)", (
93699369 // `-moz-outline` went in Firefox 3.6; the property it stood for is filed as
93709370 // complete only from 88, which is not where the spelling stopped working.
93719371 expect(minifyFor("a{outline:none}", ["firefox 40"])).toBe(
9372- "a{outline:0 }"
9372+ "a{outline:none }"
93739373 );
93749374 expect(minifyFor("a{outline:none}", ["firefox 3"])).toBe(
9375- "a{-moz-outline:0 ;outline:0 }"
9375+ "a{-moz-outline:none ;outline:none }"
93769376 );
93779377 });
93789378
@@ -15070,10 +15070,12 @@ describe("CssSyntax minify — what a comparison with other minifiers found", ()
1507015070
1507115071 it.each([
1507215072 ["a{border:none}", "a{border:0}"],
15073- ["a{outline :NONE!important}", "a{outline :0!important}"],
15073+ ["a{border :NONE!important}", "a{border :0!important}"],
1507415074 ["a{border-top:none}", "a{border-top:0}"],
1507515075 ["a{border-block-end:none}", "a{border-block-end:0}"],
15076- ["a{column-rule:none}", "a{column-rule:0}"],
15076+ // `medium` computes as 3px for these whatever the style, so `0` differs.
15077+ ["a{outline:none}", "a{outline:none}"],
15078+ ["a{column-rule:none}", "a{column-rule:none}"],
1507715079 // No width beside the style here, so `none` stays the one word.
1507815080 ["a{border-style:none}", "a{border-style:none}"],
1507915081 ["a{text-decoration:none}", "a{text-decoration:none}"]
0 commit comments