style: Allow calc in media queries.

This commit is contained in:
Emilio Cobos Álvarez 2016-08-26 23:10:46 -07:00
parent b318e61d5d
commit be7a44315d
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 72 additions and 30 deletions

View file

@ -6354,6 +6354,12 @@
"url": "/_mozilla/css/float_relative_to_position.html"
}
],
"css/media_calc_crash.html": [
{
"path": "css/media_calc_crash.html",
"url": "/_mozilla/css/media_calc_crash.html"
}
],
"css/meta_viewport_resize.html": [
{
"path": "css/meta_viewport_resize.html",

View file

@ -0,0 +1,17 @@
<!doctype html>
<meta charset="utf-8">
<title>Don't crash when a media query with calc() is found.</title>
<style>
@media (min-width: calc(60px)) {
pease-do {
not: crash;
}
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
assert_true(true, "Reached here without crashing");
})
</script>