mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-08 09:09:42 +00:00
If the font-family property is set to a StyleValueList, we now iterate through it, looking up each font in turn until one is found. StyleResolver no longer needs to handle FontFamily specifically, which is a nice bonus. Serenity's current dependence on bitmap fonts leads to some weirdness here - for example, the `if (!found_font)` path can trigger even if a generic font family like "sans-serif" is used, since our default sans-serif font might not be available in the desired size or weight. The `monospace` variable only exists for that reason. This is not a complete solution, by a long way! Serenity's font support is still quite basic, so more work needs to be done there before we can start implementing the spec's font-matching algorithm. But this is still an improvement. :^) |
||
---|---|---|
.. | ||
Parser | ||
.gitignore | ||
ComputedValues.h | ||
CSSImportRule.cpp | ||
CSSImportRule.h | ||
CSSRule.cpp | ||
CSSRule.h | ||
CSSStyleDeclaration.cpp | ||
CSSStyleDeclaration.h | ||
CSSStyleDeclaration.idl | ||
CSSStyleRule.cpp | ||
CSSStyleRule.h | ||
CSSStyleSheet.cpp | ||
CSSStyleSheet.h | ||
CSSStyleSheet.idl | ||
Default.css | ||
Identifiers.json | ||
Length.cpp | ||
Length.h | ||
LengthBox.h | ||
Properties.json | ||
QuirksMode.css | ||
Screen.cpp | ||
Screen.h | ||
Screen.idl | ||
Selector.cpp | ||
Selector.h | ||
SelectorEngine.cpp | ||
SelectorEngine.h | ||
StyleInvalidator.cpp | ||
StyleInvalidator.h | ||
StyleProperties.cpp | ||
StyleProperties.h | ||
StyleResolver.cpp | ||
StyleResolver.h | ||
StyleSheet.cpp | ||
StyleSheet.h | ||
StyleSheet.idl | ||
StyleSheetList.cpp | ||
StyleSheetList.h | ||
StyleSheetList.idl | ||
StyleValue.cpp | ||
StyleValue.h |