<!DOCTYPE html>
<link rel=stylesheet href="data:text/css,%23test { width: 100px }" media="screen">
<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 = "SUCCESS";
    else
        result.innerHTML = "FAILURE";
</script>
