18 lines
540 B
HTML
18 lines
540 B
HTML
<head>
|
|
<style type="text/css">
|
|
/* Valid media query expression, background-color must be green. */
|
|
@media (min-width: 100px) {
|
|
div { background-color: green; }
|
|
}
|
|
|
|
/* Invalid media query expression, width media feature accepts length
|
|
or number value. Media query should not match and div should not be blue. */
|
|
@media (min-width: blah) {
|
|
div { background-color: blue; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div style="width: 200px; height: 200px;"\>
|
|
</body>
|