ladybird/Libraries/LibWeb
Sam Atkins ee647616b2 LibWeb/CSS: Serialize @font-face closer to spec
Read the descriptor style values instead of producing a ParsedFontFace
first, as this means we know if a descriptor is actually present, or
has been defaulted to an initial value. This lets us correctly skip the
unicode-range if it was not explicitly set.

Firefox and Chromium both serialize using the "font-stretch" name,
(which is an alias for font-width) which follows the outdated cssom
spec, so I've done so too to match them.

The one thing that we still do differently in this test is that those
browsers check explicitly if `font-stretch` was set, and ignore when
`font-width` is.

I've also inlined the `serialize_a_local()` function to the one place
it's used. The style value to_string() method was already wrapping the
string in quotes, so calling serialize_a_string() on it was producing
`local("\this mess\"")`. It's clearer what's happening when the code
isn't split up.
2025-04-07 10:00:21 +01:00
..
Animations LibWeb: Implement functional pseudo-element parsing 2025-03-25 07:54:13 +00:00
ARIA
Bindings LibGC+LibWeb+LibJS: Remove workaround for Swift boolean bitfield issue 2025-04-04 13:06:53 -06:00
Clipboard Everywhere: Replace miscellaneous references to the chrome process 2025-03-15 19:57:27 -04:00
Compression LibJS: Make Completion.[[Value]] non-optional 2025-04-05 11:20:26 +02:00
ContentSecurityPolicy AK+LibURL+LibWeb: Use simdutf to validate ASCII strings 2025-04-06 11:05:58 -04:00
Cookie
CredentialManagement
Crypto LibJS: Make Completion.[[Value]] non-optional 2025-04-05 11:20:26 +02:00
CSS LibWeb/CSS: Serialize @font-face closer to spec 2025-04-07 10:00:21 +01:00
DOM LibWeb: Limit usage of getElementById() cache to connected roots 2025-04-06 04:14:29 +02:00
DOMURL LibURL: Rename 'cannot have a base URL' to 'has an opaque path' 2025-04-06 08:24:54 -04:00
Editing LibWeb: Return CSSStyleProperties as a GC::Ref 2025-03-19 13:53:00 +00:00
Encoding LibJS: Make Completion.[[Value]] non-optional 2025-04-05 11:20:26 +02:00
EncryptedMediaExtensions
EntriesAPI
EventTiming
Fetch AK+LibURL+LibWeb: Use simdutf to validate ASCII strings 2025-04-06 11:05:58 -04:00
FileAPI LibJS: Make Completion.[[Value]] non-optional 2025-04-05 11:20:26 +02:00
Geometry
HighResolutionTime LibWeb: Implement Resource Timing 2025-03-06 09:00:53 -07:00
HTML LibURL: Rename 'cannot have a base URL' to 'has an opaque path' 2025-04-06 08:24:54 -04:00
IndexedDB Everywhere: Remove unused private fields 2025-04-04 12:40:07 +02:00
Infra LibJS: Use FlyString in PropertyKey instead of DeprecatedFlyString 2025-03-24 22:27:17 +00:00
Internals LibWeb+LibWebView+WebContent: Convert about:settings to a WebUI 2025-03-28 07:31:10 -04:00
IntersectionObserver LibWeb: Avoid allocating DOMRect objects for internal engine use 2025-03-22 14:33:59 -05:00
Layout LibWeb: Fix grid placement with named lines 2025-04-05 21:30:37 +02:00
Loader LibWeb+LibWebView+UI: Migrate to LibWebView's language settings 2025-04-04 10:16:32 +02:00
MathML
MediaCapabilitiesAPI LibJS: Replace PropertyKey(char[]) with PropertyKey(FlyString) 2025-03-24 22:27:17 +00:00
MediaSourceExtensions LibWeb: Pass along the init dictionary for error / buffer change events 2025-03-25 07:52:12 +00:00
MimeSniff
MixedContent
NavigationTiming
Page LibWeb+WebContent: Move display list rasterization off the main thread 2025-03-31 15:58:15 +01:00
Painting LibGC+LibWeb+LibJS: Remove workaround for Swift boolean bitfield issue 2025-04-04 13:06:53 -06:00
PerformanceTimeline LibWeb: Implement Resource Timing 2025-03-06 09:00:53 -07:00
PermissionsPolicy LibWeb: Remove OOM handling from the AutoplayAllowlist 2025-03-30 16:18:57 +01:00
Platform LibWeb: Protect audio codec callbacks against its own destruction 2025-03-14 12:02:29 -05:00
ReferrerPolicy
RequestIdleCallback
ResizeObserver
ResourceTiming LibWeb: Implement Resource Timing 2025-03-06 09:00:53 -07:00
SecureContexts
Selection
ServiceWorker LibJS: Make Completion.[[Value]] non-optional 2025-04-05 11:20:26 +02:00
SRI
StorageAPI
Streams LibJS: Make Value() default-construct the undefined value 2025-04-05 11:20:26 +02:00
SVG LibWeb/SVG: Mark SVG factory functions as [NewObject] 2025-04-02 17:28:45 +01:00
TrustedTypes
UIEvents
URLPattern LibWeb/LibURL: Use an IgnoreCase enum for URLPatternOptions 2025-04-06 08:24:54 -04:00
UserTiming
WebAssembly LibJS: Make Completion.[[Value]] non-optional 2025-04-05 11:20:26 +02:00
WebAudio
WebDriver AK: Add an AK::find helper to return a reference to the found value 2025-04-06 13:45:10 +02:00
WebGL LibJS: Replace PropertyKey(char[]) with PropertyKey(FlyString) 2025-03-24 22:27:17 +00:00
WebIDL LibJS: Make Completion.[[Value]] non-optional 2025-04-05 11:20:26 +02:00
WebSockets
WebVTT
Worker
XHR LibWeb: Do not store network errors as a StringView 2025-04-02 11:43:53 +02:00
XLink
XML LibJS+LibWeb: Remove more uses of DeprecatedFlyString 2025-03-24 22:27:17 +00:00
CMakeLists.txt LibGC+LibWeb+LibJS: Remove workaround for Swift boolean bitfield issue 2025-04-04 13:06:53 -06:00
Dump.cpp LibWeb/CSS: Only attempt to load valid @font-face fonts 2025-04-04 10:40:32 +01:00
Dump.h LibWeb/CSS: Merge style declaration subclasses into CSSStyleProperties 2025-03-19 13:53:00 +00:00
Forward.h LibWeb/CSS: Add CSSFontFaceDescriptors type 2025-04-04 10:40:32 +01:00
idl_files.cmake LibWeb/CSS: Add CSSFontFaceDescriptors type 2025-04-04 10:40:32 +01:00
InvalidateDisplayList.h
Namespace.cpp
Namespace.h
PixelUnits.cpp
PixelUnits.h
TraversalDecision.h
TraversalOrder.h
TreeNode.h