mirror of
https://github.com/servo/servo.git
synced 2025-09-10 15:08:21 +01:00
style: Allow calc in media queries.
This commit is contained in:
parent
b318e61d5d
commit
be7a44315d
5 changed files with 72 additions and 30 deletions
|
@ -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",
|
||||
|
|
17
tests/wpt/mozilla/tests/css/media_calc_crash.html
Normal file
17
tests/wpt/mozilla/tests/css/media_calc_crash.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue