mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 08:48:49 +00:00
We don't support all parts of the font formats we assume as "supported" in the CSS parser. For example, if an open type font has a CFF table, we reject loading it. This meant that until now, when such an unsupported-supported font url was first in the list of urls, we couldn't load it at all, even when we would support a later url. To resolve that, try loading all font urls one after each other, in case we are not able to load the higher priority one. This also resolves a FIXME related to spec compliant url prioritization. Our CSS parser already filters and prioritizes font src urls in compliance with the spec. However, we still had to resort to brittle file extension matching, because some websites don't set the `format` and if the first url in a src list happened to be one we don't support, the font could not be loaded at all. This now is unnecessary because we can try and discard the urls instead. |
||
---|---|---|
.. | ||
Block.cpp | ||
Block.h | ||
ComponentValue.cpp | ||
ComponentValue.h | ||
Declaration.cpp | ||
Declaration.h | ||
DeclarationOrAtRule.cpp | ||
DeclarationOrAtRule.h | ||
Function.cpp | ||
Function.h | ||
Parser.cpp | ||
Parser.h | ||
Rule.cpp | ||
Rule.h | ||
Token.cpp | ||
Token.h | ||
Tokenizer.cpp | ||
Tokenizer.h | ||
TokenStream.h |