<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
</head>
<body>
This test passes if it doesn't hit assert.
<input type="color" id=colorinput>
<script>
colorinput.offsetWidth;
</script>
<style>
#colorinput { width: 200px; }
</style>
<script>
if (window.internals)
    internals.invalidateFontCache();

colorinput.offsetWidth;
</script>
</body>
</html>
