mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
35 lines
No EOL
789 B
HTML
35 lines
No EOL
789 B
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
|
|
<title>
|
|
CSS Values and Units and Media Queries Test:
|
|
Calc function inside media queries
|
|
</title>
|
|
<meta content="
|
|
The calc() expression is supported in the min-width media query properly (=with range clamping).
|
|
" name="assert">
|
|
|
|
<link href="mailto:fremycompany.developer@yahoo.fr" rel="author" title="François REMY">
|
|
|
|
<link href="http://www.w3.org/TR/css3-values/#calc-notation" rel="help">
|
|
<link href="http://www.w3.org/TR/css3-mediaqueries/#width" rel="help">
|
|
|
|
<link href="reference/all-green.htm" rel="match">
|
|
|
|
<style type="text/css">
|
|
|
|
html { background: red; }
|
|
@media (min-width: calc(-100px)) { /* should clamp to 0px */
|
|
html { background: green; }
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<div id="target"></div>
|
|
|
|
|
|
|
|
</body></html> |