ladybird/Tests/LibWeb/Text/expected/wpt-import/html/semantics
Erik Kurzinger 42339be999 LibWeb: Use intrinsic size for current_image_bitmap
Currently, ImageProvider::current_image_bitmap takes a Gfx::IntSize
argument which determines the size of the returned bitmap. The default
value of this argument is 0x0 which causes the function to return
nullptr. This behavior is evidently unintuitive enough that it has lead
to incorrect usage in multiple places. For example, the 2D canvas
drawImage method will never actually draw anything because it calls
current_image_bitmap with no arguments. And the naturalWidth and
naturalHeight of an image will always return 0 (even after the image has
loaded) for the same reason.

To correct this and hopefully avoid similar issues in the future,
ImageProvider::current_image_bitmap will be renamed to
current_image_bitmap_sized, and the default value for the size argument
will be removed. For consistency, a similar change will be made to
SVGImageElement::default_image_bitmap.

The existing current_image_bitmap function will no longer take a size
argument. Instead it will always return a bitmap of the image's
intrinsic size. This seems to be what most existing callers had already
assumed was the function's behavior.
2025-08-30 15:49:11 +02:00
..
document-metadata LibWeb/HTML: Correctly set base elements frozen base url 2025-06-23 18:56:42 +12:00
embedded-content LibWeb: Use intrinsic size for current_image_bitmap 2025-08-30 15:49:11 +02:00
forms LibWeb: Implement validation_message for form associated elements 2025-08-29 19:27:30 +01:00
interactive-elements/the-dialog-element LibWeb/HTML: Implement and use "optional value" 2025-07-08 17:08:39 +01:00
popovers LibWeb: Implement the ToggleEvent.source attribute 2025-06-07 04:06:01 +01:00
scripting-1/the-script-element LibWeb/SVG: Respect script element type attribute 2025-02-26 16:08:35 +01:00
selectors/pseudo-classes LibWeb: Implement the :default pseudo-class 2025-05-24 10:31:34 +01:00
the-button-element/command-and-commandfor Tests: Synchronize imported tests with the WPT repository 2025-06-22 23:51:34 +02:00
interfaces.txt LibWeb: Run the object representation task when the active state changes 2024-12-11 17:38:31 -07:00
rellist-feature-detection.txt LibWeb: Improve relList feature detection support 2024-12-06 18:09:53 +00:00