| Index: LayoutTests/fast/css/font-shorthand-keywords.html | 
| diff --git a/LayoutTests/fast/css/font-shorthand-keywords.html b/LayoutTests/fast/css/font-shorthand-keywords.html | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..b74d40766d3a2b5bccb10fd3b3e8def9b3dbb1fa | 
| --- /dev/null | 
| +++ b/LayoutTests/fast/css/font-shorthand-keywords.html | 
| @@ -0,0 +1,42 @@ | 
| +<html> | 
| +<head> | 
| +<script> | 
| +    if (window.testRunner) | 
| +        testRunner.dumpAsText(); | 
| +</script> | 
| +</head> | 
| +<body> | 
| +<div id="foo">Test</div> | 
| +<script> | 
| +function testFontValue(value) | 
| +{ | 
| +    document.write("Font for '" + value + "':<br>"); | 
| +    var element = document.getElementById("foo"); | 
| +    var decl = element.style; | 
| +    decl.font = ""; | 
| +    decl.font = value; | 
| +    for (var i = 0; i < decl.length; i++) { | 
| +        document.write(decl[i] + ": " + decl.getPropertyValue(decl[i])); | 
| +        document.write("<br>"); | 
| +    } | 
| +    document.write("<br>"); | 
| +} | 
| + | 
| +testFontValue("caption"); | 
| +testFontValue("icon"); | 
| +testFontValue("menu"); | 
| +testFontValue("message-box"); | 
| +testFontValue("small-caption"); | 
| +testFontValue("status-bar"); | 
| +testFontValue("-webkit-mini-control"); | 
| +testFontValue("-webkit-small-control"); | 
| +testFontValue("-webkit-control"); | 
| + | 
| +// Invalid values should yield no longhands. | 
| +testFontValue("caption italic"); | 
| +testFontValue("icon 12px"); | 
| +testFontValue("icon 12px serif"); | 
| +testFontValue("menu italic 12px"); | 
| +</script> | 
| +</body> | 
| +</html> | 
|  |