Skip to content

Commit

Permalink
Bug 1598932 - Fix grid-area-valid.html test to not accept serializati…
Browse files Browse the repository at this point in the history
…on results that are clearly invalid. r=emilio

w3c/csswg-drafts#2858

Differential Revision: https://phabricator.services.mozilla.com/D54417
  • Loading branch information
Mats Palmgren committed Nov 24, 2019
1 parent 0667f1f commit 2d5c074
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@
test_valid_value("grid-row", "1 / auto", "1");
test_valid_value("grid-column", "2 j / span 3 k");


// https://github.com/w3c/csswg-drafts/issues/2858
// '\\31 st' in Blink, Firefox, '1st' in Edge, '"1st"' in Safari.
test_valid_value("grid-column-end", "\\31st", ["\\31 st", "1st", '"1st"']);
test_valid_value("grid-column-end", "\\31 st", ["\\31 st", "1st", '"1st"']);
// '\\31 st' in Blink, Firefox, EdgeHTML and Safari serialize invalid values.
test_valid_value("grid-column-end", "\\31st", ["\\31 st", "\\31st"]);
test_valid_value("grid-column-end", "\\31 st", ["\\31 st", "\\31st"]);
test_valid_value("grid-column", "\\31st / \\31 st", ["\\31 st", "\\31st"]);

</script>
</body>
</html>

0 comments on commit 2d5c074

Please sign in to comment.