| Index: LayoutTests/fast/media/mq-js-media-forward-syntax.html
|
| diff --git a/LayoutTests/fast/media/mq-js-media-forward-syntax.html b/LayoutTests/fast/media/mq-js-media-forward-syntax.html
|
| index 5e74cdb9f8eb6840200573c0e02a26e3c9502171..9bda1e151a2076ed7cbf428343959632fb768449 100644
|
| --- a/LayoutTests/fast/media/mq-js-media-forward-syntax.html
|
| +++ b/LayoutTests/fast/media/mq-js-media-forward-syntax.html
|
| @@ -1,27 +1,23 @@
|
| <html>
|
| <head>
|
| -<title>CSS3 media query test: stylesheet media.mediaText = parsing, media descriptor fallback in document.StyleSheet.media.mediaText</title>
|
| -<link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/" />
|
| + <title>CSS3 media query test: stylesheet media.mediaText = parsing, media descriptor fallback in document.StyleSheet.media.mediaText</title>
|
| +<link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/">
|
|
|
| -<!-- the media property of stylesheet below will be manipulated, and
|
| - manipulation should respect html media descriptor forward-compatible syntax.
|
| - This means the manipulation should succeed. -->
|
| +<!-- the media property of stylesheet below will be manipulated, and the manipulation should fail. -->
|
| <style type="text/css">
|
|
|
| -p#result { color: green;}
|
| +p#result { color: blue }
|
|
|
| @media screen and resolution > 40dpi {
|
| /* media query with syntax error should fail */
|
| -/* corresponding DOM manipulation to the mediaText of the stylesheet will succeed */
|
| -p#result { color: red;}
|
| +p#result { color: red }
|
|
|
| }
|
| </style>
|
| -<script language="javascript">
|
| +<script>
|
| function test() {
|
| - // this should not throw, because StyleSheet should respect Media Description forward-compatible syntax
|
| document.styleSheets[0].media.mediaText = "screen and resolution > 40dpi";
|
| - document.getElementById("result").innerHTML = "This text should be green.";
|
| + document.getElementById("result").innerHTML = "This text should neither be blue nor red.";
|
| }
|
| </script>
|
|
|
|
|