Andreas Kling
f72805398b
LibWeb: Add the bare minimum to render SVGAElement (<a>
)
...
(cherry picked from commit 85a4cfc59bc901e860ba60c51ad1fc9c0cf4e669)
2024-06-26 14:13:40 +02:00
Andreas Kling
19e4b138af
LibWeb: Treat width: {min,max,fit}-content as auto if ratio unresolvable
...
This appears to match other engines.
(cherry picked from commit ae906ca4974da309c362e61ce7b6b393b8c4aed1)
2024-06-26 14:13:40 +02:00
Andreas Kling
97edca4e4e
LibWeb: Fix overeager fallback to stretch-fit width for some flex items
...
If a flex item has a preferred aspect ratio and the flex basis is not
definite, we were falling back to using stretch-fit for the main size,
since that appeared to match other browsers.
However, we missed the case where we actually have a definite cross size
through which the preferred aspect ratio can be naturally resolved.
(cherry picked from commit db1faef786dbd1722bbe6a1f4a5616f3069bdb6a)
2024-06-26 14:13:40 +02:00
Andreas Kling
47d7a3648e
LibWeb: Allow flex-basis: {min,max,fit}-content
...
(cherry picked from commit 9c02ace89785cbc185553dc2711f79c4ad1bf389)
2024-06-26 14:13:40 +02:00
Andreas Kling
f1dcf567e4
Tests: Add a basic test for Declarative Shadow DOM
...
(cherry picked from commit 7ce350b8c069c13540c50631413b2150bab967d4)
2024-06-26 08:48:11 +02:00
circl
462abc242e
Tests/LibWeb: Add test to verify correctness of getImageData
...
(cherry picked from commit dbc94ce92e09e987f8a07a5b1e978250286b015a)
2024-06-14 18:18:40 -04:00
Kenneth Myhra
702ff7eb46
LibWeb: Implement and wire up TransformStream's cancel callback
...
(cherry picked from commit e70886595ab83d650662f46be2ac2e147603c790)
2024-06-10 08:23:32 -04:00
Kenneth Myhra
2668aa90da
Test/LibWeb: Add test to prove a ReadableStream can be cancelled
...
(cherry picked from commit fc37bc328e065465f4d60cf90a3185973be10598)
2024-06-10 08:23:32 -04:00
Andreas Kling
3d61428bb0
Tests: Skip Text/input/HTML/form-image-submission.html (flaky)
...
Issue: https://github.com/LadybirdWebBrowser/ladybird/issues/100
(cherry picked from commit LadybirdBrowser/ladybird@533eea1958 )
2024-06-09 19:48:43 -04:00
Kenneth Myhra
7cbe5c9d4a
LibWeb: Implement static method ReadableStream.from(asyncIterable)
...
(cherry picked from commit 0ec0e92b100faf92256e704b9e94e9c90a04b642)
2024-06-09 16:24:09 +01:00
Jamie Mansfield
ea69ec8e52
LibWeb: Use a single test for loading attribute
2024-06-08 14:16:48 -04:00
Jamie Mansfield
e5a1f1e582
LibWeb: Test fetchPriority attribute on all elements
2024-06-08 14:16:48 -04:00
Jamie Mansfield
91c7920b34
LibWeb: Implement HTMLAreaElement.referrerPolicy
2024-06-08 14:07:38 -04:00
Jamie Mansfield
07cd441e95
LibWeb: Implement HTMLIFrameElement.referrerPolicy
2024-06-08 14:07:38 -04:00
Jamie Mansfield
c8e87352d8
LibWeb: Implement HTMLImageElement.referrerPolicy
2024-06-08 14:07:38 -04:00
Jamie Mansfield
901fb0d068
LibWeb: Implement HTMLLinkElement.referrerPolicy
2024-06-08 14:07:38 -04:00
Jamie Mansfield
a6fd653afa
LibWeb: Use Reflect for HTMLAnchorElement.referrerPolicy
2024-06-08 14:07:38 -04:00
Jamie Mansfield
ade7c6c8fb
LibWeb: Use Enumerated for HTMLScriptElement.referrerPolicy
2024-06-08 14:07:38 -04:00
Timothy Flynn
a497f65578
Test: Skip flakey Text/input/WebAnimations/misc/DocumentTimeline test
...
Ref https://github.com/LadybirdWebBrowser/ladybird/issues/19
(cherry picked from commit 41c9cb032f56a306bdc3098a2a0d203acb0dd0ff)
2024-06-08 13:40:47 -04:00
Jamie Mansfield
82fba65faa
LibWeb: Implement HTMLImageElement.crossOrigin
2024-06-05 05:02:55 +01:00
Jamie Mansfield
5adce08003
LibWeb: Implement HTMLLinkElement.crossOrigin
2024-06-05 05:02:55 +01:00
Jamie Mansfield
5ae9b49099
LibWeb: Implement HTMLImageElement.fetchPriority
2024-06-05 05:02:55 +01:00
Matthew Olsson
b5c682bc2e
LibWeb: Copy the keyframes in KeyframeEffect's copy constructor
2024-06-03 10:53:32 +02:00
Matthew Olsson
37322baf54
LibWeb: Ensure all DocumentTimeline objects have the same time value
...
The DocumentTimeline constructor used the current millisecond time to
initialize its currentTime, but that means that a newly created timeline
would always have a different time value than other timelines that have
been through the update_animations_and_send_events function.
2024-06-03 10:53:32 +02:00
Jamie Mansfield
295c4ef51a
LibWeb/Fetch: Use MimeType in DataURL
2024-06-02 19:55:53 +02:00
Matthew Olsson
0acf89234c
LibWeb: Try to fix a flaky animation test
...
Not sure if this'll fix it fully, as the flake has only ever been
observed on CI.
2024-06-02 16:07:12 +02:00
Matthew Olsson
73aadddbc1
LibWeb: Reject invalid keyframe offset values
2024-06-02 16:07:12 +02:00
Matthew Olsson
e13cd914a9
LibWeb: Handle animating the 'all' property
2024-06-02 16:07:12 +02:00
Matthew Olsson
6859826e3d
LibWeb: Handle persisting an animation after it has been removed
2024-06-02 16:07:12 +02:00
Matthew Olsson
a80af938eb
LibWeb: Support subtree option in Animatable.getAnimations()
2024-06-02 16:07:12 +02:00
Matthew Olsson
e2cb25e35c
LibWeb: Support interpolation of mixed percentage dimension units
2024-06-02 15:12:17 +02:00
Tim Ledbetter
4f0d6559f6
WPT: Update test expectations to match current test results
2024-05-30 11:03:56 -06:00
Tim Ledbetter
d7ea308664
WPT: Update to latest master
...
Previously, it was not possible to run `wpt` locally with a python
version >= 3.12.
2024-05-30 11:03:56 -06:00
Matthew Olsson
1965943026
LibWeb: Reject invalid AnimationEffect duration string values
2024-05-29 08:18:24 +02:00
Matthew Olsson
3e221fbb2d
IDLGenerators: Handle restricted/unrestricted floating point types
2024-05-29 08:18:24 +02:00
Matthew Olsson
2bd8093449
LibWeb: Detect explicit null timeline given in KeyframeAnimationOptions
...
We already do this for the timeline argument in the KeyframeEffect
constructor
2024-05-29 08:18:24 +02:00
Tim Ledbetter
bb923983fc
LibWeb: Implement WorkerGlobalScope.importScripts()
...
This method allows workers to synchronously import one or more scripts.
2024-05-29 08:17:18 +02:00
MacDue
f7bf14605c
LibWeb: Remove PaintBorders
recording painter command
...
`Painting::paint_all_borders()` only uses `.draw_line()` for simple
borders and `.fill_path()` for more complex cases. These are both
already supported by the `RecordingPainter` so removing this command
simplifies the painting API.
Two test changes:
css-background-clip-text: Borders are now drawn via the AA painter
(which makes them closer to how they appear in other browsers).
corner-clip-inside-scrollable: Borders removed (does not change test)
due to imperceptible sub-pixel changes.
2024-05-29 08:17:01 +02:00
Tim Ledbetter
d6297ec074
LibWeb: Cast to the correct type in Element::auto_directionality()
...
Previously, we always cast to a HTMLInputElement when getting the value
of an auto directionality form associated element. This caused
undefined behavior when determining the directionality of an element
that wasn't a HTMLInputElement.
2024-05-28 09:51:07 +02:00
Tim Ledbetter
0b0ad5c9db
LibWeb: Calculate width property resolved value correctly
...
This means that relative width values are now correctly resolved when
calling `getComputedStyle()`.
2024-05-28 08:08:31 +02:00
Tim Ledbetter
7d192ed8c1
LibWeb: Don't crash on clicking a label with an associated text input
...
Previously, we assumed that all label control paintables were of type
`LabelablePaintable`. This caused a crash when clicking on a label with
a text input control.
2024-05-28 08:07:05 +02:00
Shannon Booth
6466fca20a
LibWeb: Implement BaseAudioContext.createGain
2024-05-28 08:06:09 +02:00
Kenneth Myhra
dacba5e610
Tests/LibWeb: Initialize 'arrayBuffer' to an UInt8Array
...
This initializes 'arrayBuffer' to an UInt8Array so that we can
manipulate the contents of 'arrayBuffer'. The test verifies that the
internal buffer is an ArrayBuffer.
Also:
* Correct comparison in test so that we compare arrayBuffer to
arrayClone, not to itself.
* Remove FIXME, this outputs [object ArrayBuffer] in Firefox and Chrome
too.
2024-05-27 17:37:27 +02:00
Jamie Mansfield
600daea544
LibWeb: Implement HTMLIFrameElement.loading
2024-05-27 17:34:59 +02:00
Jamie Mansfield
9ee061ea14
LibWeb: Implement HTMLImageElement.loading
...
Removes some console noise while loading mmu.ac.uk :)
2024-05-27 17:34:59 +02:00
Andreas Kling
802af5ad9d
LibWeb: Allow Element.insertAdjacentHTML on the document element
...
This fixes wpt/domparsing/insert_adjacent_html.html
2024-05-27 17:33:29 +02:00
Andreas Kling
e7febd347b
LibWeb: Don't advertise the empty string as HTMLCollection property name
...
This fixes wpt/dom/collections/HTMLCollection-empty-name.html
2024-05-27 17:33:29 +02:00
Aliaksandr Kalenik
663cc753a7
LibWeb: Fix clip box calculation in PaintableWithLines
...
All painting commands except SetClipRect are shifted by scroll offset
before command list execution. This change removes scroll offset
translation for sample/blit corner commands in
`PaintableWithLines::paint` so it is only applied once in
`CommandList::apply_scroll_offsets()`.
2024-05-26 16:11:53 +01:00
MacDue
18d39deefe
Tests/LibWeb: Add ref test for clip-path: polygon(...)
2024-05-26 07:55:50 +02:00
Shannon Booth
17ae65cedc
LibWeb: Implement AudioBuffer.copyToChannel
2024-05-26 07:48:37 +02:00