Skip to content

Commit fab58ff

Browse files
emiliomoz-wptsync-bot
authored andcommittedSep 20, 2019
Always serialize aspect-ratio and font shorthand with spaces around the slash.
Differential Revision: https://phabricator.services.mozilla.com/D46568 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1582627 gecko-commit: d9f97662c30fea113245263f96b27de210bb81ed gecko-integration-branch: autoland gecko-reviewers: heycam
1 parent 57d1b42 commit fab58ff

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Media Queries Test: 'aspect-ratio' serializes with spaces around ' / '.</title>
4+
<link rel="help" href="https://drafts.csswg.org/cssom/#serialize-a-css-component-value">
5+
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
6+
<link rel="author" href="https://mozilla.org" title="Mozilla">
7+
<script src="/resources/testharness.js"></script>
8+
<script src="/resources/testharnessreport.js"></script>
9+
<script>
10+
test(function() {
11+
assert_equals(matchMedia("(aspect-ratio: 1/3)").media, "(aspect-ratio: 1 / 3)");
12+
}, "<ratio> serializes with spaces around the integer.");
13+
</script>

0 commit comments

Comments
 (0)
Please sign in to comment.