ladybird/Userland/Libraries/LibWeb/CSS
Andreas Kling 1f9aed2617 LibWeb: Load and use fonts described by @font-face rules :^)
When encountering a @font-face rule, StyleComputer will now fire off
a resource request and download the first source URL specified.

Once downloaded, we try to parse it as a TrueType font file, and if it
works, it's added to a cache in StyleComputer. This effectively makes
fonts per-document since every document has its own StyleComputer.

This is very unoptimized and could definitely use some caching, etc.
But it does work on Acid3. :^)
2022-03-29 02:14:20 +02:00
..
Parser LibWeb: Parse @font-face rules 2022-03-28 22:25:25 +02:00
SyntaxHighlighter
.gitignore
Angle.cpp LibWeb: Implement CSS Angle class 2022-02-24 08:04:25 +01:00
Angle.h LibWeb: Implement CSS Angle class 2022-02-24 08:04:25 +01:00
ComputedValues.h LibWeb: Rename ComputedValues::offset() => inset() 2022-03-27 18:16:08 +02:00
CSSConditionRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSConditionRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSConditionRule.idl
CSSFontFaceRule.cpp LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
CSSFontFaceRule.h LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
CSSFontFaceRule.idl LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
CSSGroupingRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSGroupingRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSGroupingRule.idl
CSSImportRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSImportRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSMediaRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSMediaRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSRule.h LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
CSSRule.idl
CSSRuleList.cpp LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
CSSRuleList.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSRuleList.idl
CSSStyleDeclaration.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleDeclaration.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleDeclaration.idl
CSSStyleRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleRule.idl
CSSStyleSheet.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleSheet.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleSheet.idl
CSSSupportsRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSSupportsRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
Default.css LibWeb: Use ThreedShadow1 palette color for input border in Default.css 2022-03-26 01:35:39 +00:00
Display.cpp LibWeb: Don't crash on unknown CSS display types, fall back to inline 2022-02-13 01:03:49 +01:00
Display.h
FontFace.cpp LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
FontFace.h LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
Frequency.cpp LibWeb: Implement CSS Frequency class 2022-02-24 08:04:25 +01:00
Frequency.h LibWeb: Implement CSS Frequency class 2022-02-24 08:04:25 +01:00
GeneralEnclosed.h
Identifiers.json LibWeb: Add MEDIAQUERIES-5 identifiers 2022-03-16 22:07:53 +01:00
Length.cpp LibWeb: Add fast-path for absolute lengths in Length::to_px() 2022-03-24 18:14:01 +01:00
Length.h LibWeb: Move length-unit-from-string code into Length 2022-02-24 08:04:25 +01:00
LengthBox.h
MediaFeatures.json LibWeb: Add missing MEDIAQUERIES-5 media-features 2022-03-16 22:07:53 +01:00
MediaList.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
MediaList.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
MediaList.idl
MediaQuery.cpp LibWeb: Use floats instead of doubles for CSS numbers 2022-03-22 15:47:36 +01:00
MediaQuery.h LibWeb: Use floats instead of doubles for CSS numbers 2022-03-22 15:47:36 +01:00
MediaQueryList.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
MediaQueryList.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
MediaQueryList.idl
MediaQueryListEvent.h
MediaQueryListEvent.idl
Number.h LibWeb: Implement a CSS::Number class 2022-03-22 15:47:36 +01:00
Percentage.cpp LibWeb: Implement CSS Time class 2022-02-24 08:04:25 +01:00
Percentage.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
PreferredColorScheme.cpp
PreferredColorScheme.h
Properties.json LibWeb: Assign limits to CSS properties that cannot be negative 2022-03-26 18:15:08 +01:00
QuirksMode.css
Ratio.cpp LibWeb: Introduce and parse CSS Ratio type 2022-03-07 13:42:25 +01:00
Ratio.h LibWeb: Introduce and parse CSS Ratio type 2022-03-07 13:42:25 +01:00
Resolution.cpp LibWeb: Implement CSS Resolution class 2022-02-24 08:04:25 +01:00
Resolution.h LibWeb: Implement CSS Resolution class 2022-02-24 08:04:25 +01:00
ResolvedCSSStyleDeclaration.cpp LbWeb: Rename BoxShadowFoo => ShadowFoo 2022-03-24 18:08:34 +01:00
ResolvedCSSStyleDeclaration.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
Screen.cpp LibWeb: Move Window from DOM directory & namespace to HTML 2022-03-08 00:30:30 +01:00
Screen.h LibWeb: Move Window from DOM directory & namespace to HTML 2022-03-08 00:30:30 +01:00
Screen.idl
Selector.cpp LibWeb: Remove now-unused null values from Selector enums 2022-03-22 15:47:36 +01:00
Selector.h LibWeb: Remove now-unused null values from Selector enums 2022-03-22 15:47:36 +01:00
SelectorEngine.cpp LibWeb: Remove now-unused null values from Selector enums 2022-03-22 15:47:36 +01:00
SelectorEngine.h LibWeb: Match styles for pseudo-elements 2022-02-25 19:35:34 +01:00
Serialize.cpp
Serialize.h
StyleComputer.cpp LibWeb: Load and use fonts described by @font-face rules :^) 2022-03-29 02:14:20 +02:00
StyleComputer.h LibWeb: Load and use fonts described by @font-face rules :^) 2022-03-29 02:14:20 +02:00
StyleProperties.cpp LibWeb: Parse and compute text-shadow property 2022-03-24 18:08:34 +01:00
StyleProperties.h LibWeb: Parse and compute text-shadow property 2022-03-24 18:08:34 +01:00
StyleSheet.cpp
StyleSheet.h LibWeb: Add the StyleSheet.href attribute 2022-03-09 19:56:08 +01:00
StyleSheet.idl LibWeb: Add the StyleSheet.href attribute 2022-03-09 19:56:08 +01:00
StyleSheetList.cpp LibWeb: Use StyleComputer::invalidate_rule_cache() directly everywhere 2022-03-15 19:48:19 +01:00
StyleSheetList.h LibWeb: Use StyleComputer::invalidate_rule_cache() directly everywhere 2022-03-15 19:48:19 +01:00
StyleSheetList.idl
StyleValue.cpp LbWeb: Rename BoxShadowFoo => ShadowFoo 2022-03-24 18:08:34 +01:00
StyleValue.h LbWeb: Rename BoxShadowFoo => ShadowFoo 2022-03-24 18:08:34 +01:00
Supports.cpp
Supports.h
Time.cpp LibWeb: Implement CSS Time class 2022-02-24 08:04:25 +01:00
Time.h LibWeb: Implement CSS Time class 2022-02-24 08:04:25 +01:00