mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
CSSFontFaceRule now stores its values as a CSSFontFaceDescriptors, with a ParsedFontFace produced on request. This is exposed via the `style` attribute, so we pass a lot of tests that try to read values from that. We have one test regression, which we passed by mistake before: The test wanted to ensure we don't allow `@font-face` nested inside other rules. We passed it just because we discarded any `@font-face` without a `font-family`. What we're supposed to do is 1) keep at-rules with missing required descriptors and just not use them, and 2) reject certain ones when nested. We may want to cache the ParsedFontFace in the future, but I didn't here because 1) it's called rarely, and 2) that would mean knowing to invalidate it when the CSSFontFaceDescriptors changes, which isn't obvious to me right now. |
||
---|---|---|
.. | ||
ComponentValue.cpp | ||
ComponentValue.h | ||
DescriptorParsing.cpp | ||
Dimension.h | ||
GradientParsing.cpp | ||
Helpers.cpp | ||
MediaParsing.cpp | ||
Parser.cpp | ||
Parser.h | ||
PropertyParsing.cpp | ||
RuleParsing.cpp | ||
SelectorParsing.cpp | ||
Token.cpp | ||
Token.h | ||
Tokenizer.cpp | ||
Tokenizer.h | ||
TokenStream.h | ||
Types.cpp | ||
Types.h | ||
ValueParsing.cpp |