| Index: third_party/WebKit/LayoutTests/fast/css/css-link-media-change.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/css-link-media-change.html b/third_party/WebKit/LayoutTests/fast/css/css-link-media-change.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..57f1e6b7304bdffb296a3727b6e2a5dcf97fe0cb
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/css-link-media-change.html
|
| @@ -0,0 +1,13 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<style>#t1 { color: green }</style>
|
| +<link id="link" rel="stylesheet" href="data:text/css,#t1{color:red}" media="(min-width: 1px)"></link>
|
| +<div id="t1">This text should be green</div>
|
| +<script>
|
| +description("Check that changing media attribute on loaded link works");
|
| +
|
| +shouldBeEqualToString("getComputedStyle(t1).color", "rgb(255, 0, 0)");
|
| +
|
| +link.setAttribute("media", "(max-width: 1px)");
|
| +shouldBeEqualToString("getComputedStyle(t1).color", "rgb(0, 128, 0)");
|
| +</script>
|
|
|