<!DOCTYPE html>
<html>
<head>
<style>
.foo[disabled] {}
</style>
</head>
<body>
<input type="file" id="fileUpload">
<div id=console></div>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
document.getElementById('fileUpload').disabled = true;
document.getElementById('console').innerText = 'PASS if this text is visible.';
</script>
</body>
</html>
