| <!DOCTYPE html> |
| <style> |
| @font-face { |
| font-family: webkit-ahem; |
| src: url(../../resources/Ahem.ttf) format(truetype); |
| } |
| @font-face { |
| font-family: default foo; |
| src: url(../../resources/Ahem.ttf) format(truetype); |
| } |
| @font-face { |
| font-family: bar default; |
| src: url(../../resources/Ahem.ttf) format(truetype); |
| } |
| </style> |
| <body> |
| <p> |
| https://bugs.webkit.org/b/107231 - CSSParser::parseFontFamily should allow |
| the keyword "default" as part of a font name |
| </p> |
| <p> |
| The next 4 lines should use the default font (same as this line):<br> |
| Test 1<br> |
| <span style="font-family: default">Test 2</span><br> |
| <span style="font-family: default, invalid">Test 3</span><br> |
| <span style="font-family: invalid, default">Test 4</span> |
| </p> |
| <p> |
| The next 6 lines should use the font Arial:<br> |
| <span style="font-family: arial">Test 1</span><br> |
| <span style="font-family: default, arial">Test 2</span><br> |
| <span style="font-family: default foobar, arial">Test 3</span><br> |
| <span style="font-family: arial, default">Test 4</span><br> |
| <span style="font-family: arial, default foobar">Test 5</span><br> |
| <span style="font-family: invalid, default, arial">Test 6</span> |
| </p> |
| <p> |
| The next 9 lines should use the font Ahem (black boxes):<br> |
| <span style="font-family: webkit-ahem">Test 1</span><br> |
| <span style="font-family: default foo">Test 2</span><br> |
| <span style="font-family: default foo, invalid">Test 3</span><br> |
| <span style="font-family: invalid, default foo">Test 4</span><br> |
| <span style="font-family: invalid, default foo, foobar">Test 5</span><br> |
| <span style="font-family: bar default">Test 6</span><br> |
| <span style="font-family: bar default, invalid">Test 7</span><br> |
| <span style="font-family: invalid, bar default">Test 8</span><br> |
| <span style="font-family: invalid, bar default, foobar">Test 9</span> |
| </p> |
| </body> |
| </html> |