3 ms·
Also, if the name had been two words, it would need to be quoted, right? e.g. this wouldn't work either? font-family: Times New Roman; Edit: Well this an
by andai 1y ago
Also, if the name had been two words, it would need to be quoted, right?
e.g. this wouldn't work either?
font-family: Times New Roman;
Edit: Well this and just "times" does work fine, which makes me wonder if it's been special cased due to being an older font, or if the matching is very permissive.
- lblume 1y agoThe matching is very permissive, and the example just works: https://codepen.io/leo848blume/pen/RNrppdj https://codepen.io/leo848blume/pen/RNrppdj
- deleted 1y ago[deleted]
- bmacho 1y agoFor me it defaults to Times New Roman when it doesn't understand the font, so to check if it indeed works I had to change the default font in my browser
- someothherguyy 1y agohttps://drafts.csswg.org/css-fonts/#family-name-syntax https://drafts.csswg.org/css-fonts/#family-name-syntax