blob: c0ce2da05cc76e39487efb9c4e204bcb86ddee77 [file] [log] [blame]
<!DOCTYPE html>
<link rel=stylesheet href="data:text/css,#test { width: 100px }" media="(width invalid)">
<div id=result></div>
<div id=test></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var test = document.getElementById("test");
var result = document.getElementById("result");
if (test.offsetWidth == 100)
result.innerHTML = "FAILURE";
else
result.innerHTML = "SUCCESS";
</script>