Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../resources/js-test.js"></script> | |
| 4 <style> | |
| 5 @font-face { | |
| 6 font-family: sans-serif; | |
| 7 src: local(Arial); | |
| 8 } | |
| 9 | |
| 10 @font-face { | |
| 11 font-family: serif; | |
| 12 src: local(Arial); | |
| 13 } | |
| 14 | |
| 15 @font-face { | |
| 16 font-family: fantasy; | |
| 17 src: local(Arial); | |
| 18 } | |
| 19 | |
| 20 @font-face { | |
| 21 font-family: cursive; | |
| 22 src: local(Arial); | |
| 23 } | |
| 24 | |
| 25 @font-face { | |
| 26 font-family: monospace; | |
| 27 src: local(Arial); | |
| 28 } | |
| 29 | |
| 30 @font-face { | |
| 31 font-family: inherit; | |
| 32 src: local(Arial); | |
| 33 } | |
| 34 | |
| 35 @font-face { | |
| 36 font-family: initial; | |
| 37 src: local(Arial); | |
| 38 } | |
| 39 | |
| 40 @font-face { | |
| 41 font-family: unset; | |
| 42 src: local(Arial); | |
| 43 } | |
| 44 | |
| 45 @font-face { | |
| 46 font-family: default; | |
| 47 src: local(Arial); | |
| 48 } | |
| 49 </style> | |
| 50 <script> | |
| 51 description('Tests that font-face with invalid family names are not added to Fon tFaceSet.'); | |
| 52 | |
| 53 function runTests() { | |
| 54 shouldBe('document.fonts.size', '0'); | |
| 55 } | |
| 56 | |
| 57 if (document.fonts) | |
| 58 runTests(); | |
| 59 else | |
| 60 testFailed('document.fonts does not exist'); | |
| 61 | |
| 62 </script> | |
| 63 </head> | |
| 64 <body> | |
| 65 </body> | |
| 66 </html> | |
| OLD | NEW |