ladybird/Libraries/LibWeb
Callum Law 027c9f53be LibWeb: Handle text-overflow: ellipsis with trailing whitespace
We should calculate whether we need to truncate text with an ellipsis
exclusive of any trailing collapsible whitespace.

This was causing issues where an inline element was automatically sized
(e.g. min-content) as we would calculate available width exclusive of
trailing collapsible whitespace and then our text chunk would be wider,
always inserting an ellipsis.

Fixes the visual element of #4048 but we still are incorrect in how we
collapse whitespace more generally
2025-08-18 11:00:26 +01:00
..
Animations LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
ARIA Everywhere: Run clang-format 2025-05-14 02:01:59 -06:00
Bindings LibJS: Port the Identifier AST (and related) nodes to UTF-16 2025-08-13 09:56:13 -04:00
Clipboard LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
Compression LibCompress: Error out when encounters and incomplete stream 2025-06-14 18:26:56 -04:00
ContentSecurityPolicy LibWeb: Use document's global object in is_base_allowed_for_document 2025-08-16 14:19:05 +02:00
Cookie LibWeb+LibWebView: Move RFC6265 helpers to LibWeb 2025-08-08 13:09:58 -04:00
CookieStore LibWeb+LibURL: Default empty string paths to URL's path in CookieStore 2025-08-17 22:17:36 +02:00
CredentialManagement Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
Crypto LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
CSS LibWeb: Invalidate layout on opacity change to/from zero 2025-08-18 10:21:44 +01:00
DOM LibWeb: Allow style inheritance through slots 2025-08-16 21:03:31 +02:00
DOMURL LibWeb: Use infra sorting for URLSearchParam's sort() 2025-05-12 11:20:32 +02:00
Editing LibWeb: Delete entire graphemes when the delete/backspace key is pressed 2025-08-14 22:21:51 +02:00
Encoding LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
EncryptedMediaExtensions LibWeb: Improve Enum generation in IDLGenerator 2025-03-04 16:35:04 +00:00
EntriesAPI LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
EventTiming Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
Fetch LibWeb: Enforce Integrity Policy on Fetch requests 2025-08-14 13:37:38 +01:00
FileAPI LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
Gamepad LibWeb: Stub Navigator.getGamepads() 2025-07-22 11:55:29 -04:00
Geolocation LibWeb: Implement emulated Geolocation position retrieval 2025-06-24 11:33:41 +02:00
Geometry LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
HighResolutionTime LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
HTML LibWeb/HTML: Check all radio buttons in group for required attribute 2025-08-17 22:27:14 +02:00
IndexedDB LibWeb/IDB: Add debug dump to Keys 2025-08-14 09:31:56 +01:00
Infra AK+LibWeb: Add a UTF-16 starts/ends with wrapper for a single code unit 2025-08-07 02:05:50 +02:00
Internals LibWeb: Add Internals.getShadowRoot(element) 2025-08-07 22:15:36 +02:00
IntersectionObserver LibWeb: Add missing null check in root_intersection_rectangle() 2025-08-17 19:09:50 +02:00
Layout LibWeb: Handle text-overflow: ellipsis with trailing whitespace 2025-08-18 11:00:26 +01:00
Loader LibWeb+WebContent: Add IPC to re-establish RequestServer connections 2025-08-10 11:02:50 +02:00
MathML LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
MediaCapabilitiesAPI LibJS+LibWeb+WebContent: Port JS::PropertyKey to UTF-16 2025-08-05 07:07:15 -04:00
MediaSourceExtensions LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
MimeSniff LibWeb/MimeSniff: Update Rar signature to match spec 2025-07-31 16:21:20 +02:00
MixedContent AK+Everywhere: Rename verify_cast to as 2025-01-21 11:34:06 -05:00
NavigationTiming LibWeb: Only expose performance.{timing,navigation} on Window 2025-07-25 11:46:58 +02:00
Page LibWeb: Implement up/down arrow navigation in textarea 2025-08-15 06:32:11 -04:00
Painting LibWeb: Remove unnecessary as_if<SVGGradientPaintStyle>() on paint_style 2025-08-17 21:18:28 +01:00
PerformanceTimeline LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
PermissionsPolicy LibWeb: Remove OOM handling from the AutoplayAllowlist 2025-03-30 16:18:57 +01:00
Platform LibCore: Remove macro-generated EventReceiver::try_create(...) factories 2025-08-11 16:55:25 +02:00
ReferrerPolicy LibURL+LibWeb: Make URL::serialize return a String 2024-12-04 16:34:13 +00:00
RequestIdleCallback LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
ResizeObserver LibWeb: Unregister ResizeObserver from Document when it has no targets 2025-07-30 00:54:57 +02:00
ResourceTiming LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
SecureContexts Everywhere: Use URL::about_XXX factory functions 2025-02-15 17:05:55 +00:00
Selection LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
Serial LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
ServiceWorker LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
SRI LibWeb: Fix SRI handling of badly-formatted strings 2025-05-06 13:02:58 -04:00
StorageAPI Everywhere: Implement persistence of localStorage using sqlite 2025-06-12 17:04:35 +02:00
Streams LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
SVG LibWeb: Implement the color-interpolation property for SVG gradients 2025-08-17 10:51:05 +02:00
TrustedTypes LibWeb: Migrate TrustedTypes to Utf16String 2025-08-11 12:21:31 +01:00
UIEvents LibWeb: Port document.execCommand and InputEvent to UTF-16 2025-07-26 00:40:06 +02:00
URLPattern LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
UserTiming LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
WebAssembly LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
WebAudio LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
WebDriver WebDriver: Stop using the ancient Core::EventReceiver parent/child API 2025-08-11 16:55:25 +02:00
WebGL LibJS+LibWeb+WebContent: Port JS::PropertyKey to UTF-16 2025-08-05 07:07:15 -04:00
WebIDL LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
WebSockets LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
WebVTT LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
Worker LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
XHR LibJS+LibWeb: Port interned bytecode strings to UTF-16 2025-08-14 10:27:08 +02:00
XLink LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
XML LibWeb+LibUnicode+WebContent: Port DOM:CharacterData to UTF-16 2025-07-24 19:00:20 +02:00
CMakeLists.txt LibWeb/CSS: Stub out StylePropertyMap 2025-08-13 09:47:50 +01:00
Dump.cpp LibWeb/CSS: Add support for pseudo-classes taking <an+b># 2025-08-13 09:47:28 +01:00
Dump.h LibWeb/CSS: Add basic implementation of CSSMarginRule 2025-05-16 11:01:39 +01:00
Forward.h LibWeb/CSS: Stub out StylePropertyMap 2025-08-13 09:47:50 +01:00
idl_files.cmake LibWeb/CSS: Stub out StylePropertyMap 2025-08-13 09:47:50 +01:00
InvalidateDisplayList.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Namespace.cpp LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
Namespace.h LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
PixelUnits.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
PixelUnits.h LibWeb: Clamp layout content sizes to a max value instead of crashing 2025-02-05 18:28:55 +01:00
TraversalDecision.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
TraversalOrder.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
TreeNode.h LibWeb: Fix off-by-one offset error in NodeIterator forward traversal 2025-08-02 07:38:27 +02:00