stelar7
684c543ddb
LibWeb/IDB: Handle cursor iteration more correctly
2025-11-13 08:52:16 -05:00
Callum Law
d6bb247bf7
LibWeb: Reject non-exclusive none in text-decoration-line
...
This updates the `parse_text_decoration_line_value` to reject values
which non-exclusively include `none` e.g. `underline none`.
It also simplifies handling by always producing a Vector (except for
`none`) and adding VERIFY_NOT_REACHED in more places which shouldn't be
reachable.
2025-11-13 10:15:02 +01:00
Lorenz A
3bc061d028
LibWeb: Allow all elements with tabindex attribute to be focusable
2025-11-12 13:57:05 +01:00
Psychpsyo
e0b5bd7894
LibWeb: Make transition order return -1 and 1 instead of 0 and 1
...
The old behavior was plain incorrect for a sorting function.
2025-11-11 21:57:47 +01:00
Psychpsyo
2c4f2a3cb6
LibWeb: Make transition order consider property name
...
class_specific_composite_order() also has no reason to return an
Optional<int>, since it can just return 0.
2025-11-11 13:46:56 +01:00
Tete17
660e1b8cd2
LibWeb: Add a bunch of eval tests in the trusted-types category
2025-11-11 09:58:34 +01:00
Psychpsyo
b7a71ca950
LibWeb: Correctly sort animations returned by getAnimations()
2025-11-10 18:29:07 +01:00
Daniel Price
3a70a4735a
LibWeb: Create an execution context before registering import map
...
Fixes #6297
2025-11-06 17:07:22 -05:00
Sam Atkins
9ac0966fc6
Tests: Import serialize-consecutive-tokens test
...
This had significant regressions after #6646 , so let's import it to
track progress and prevent future regressions.
2025-11-04 14:05:31 +01:00
Sam Atkins
971c0d0126
LibWeb/CSS: Handle whitespace properly for scrollbar properties
...
Imported a WPT test that regressed without these changes.
2025-11-03 11:23:21 +00:00
Callum Law
fbcef936a9
LibWeb: Update style before getting animation play state
...
Pending style updates can influence this value
2025-11-02 23:54:00 +01:00
Callum Law
a95cde3660
LibWeb: Separate CSSAnimation::animationName from Animation::id
2025-11-02 23:54:00 +01:00
Callum Law
2447b8a759
LibWeb: Ignore non-animatable properties in keyframes
...
Gains us 21 WPT tests
2025-11-02 23:54:00 +01:00
Callum Law
56e2ac8a9d
LibWeb: Always do parent document layout updates before updating style
...
We were doing this manually within `Document::update_layout()` and
`CSSStyleProperties::get_direct_property()` but we should do it for all
callers of `Document::update_style()`
2025-11-02 23:54:00 +01:00
Timothy Flynn
019c529c07
Meta: Increase the line length enforced by prettier to 120
...
This matches our coding style recommendation in CodingStyle.md, and
matches our python formatting.
2025-10-31 19:55:50 -04:00
ayeteadoe
30729feebb
LibWeb: Prevent crash in content calculations for ListItemMarkerBox
...
In several content calculation methods in FormattingContext, we assumed
that if create_independent_formatting_context_if_needed() fails the
input Layout::Box is a BlockContainer; however, the web platform test
css/css-pseudo/parsing/marker-supported-properties-in-animation.html is
one scenario where the input is a Layout::ListItemMarkerBox instead and
there is no FormattingContext supported for it yet.
2025-10-30 18:21:24 +00:00
Callum Law
c2ca712406
LibWeb: Properly simplify sum nodes containing negated sum nodes
...
This is ad-hoc, see https://github.com/w3c/csswg-drafts/issues/13020
Gains us 5 WPT tests
2025-10-30 12:18:24 +00:00
Zaggy1024
fae2888103
Tests: Add a test for WebGL framebuffers retaining data after present
2025-10-29 22:06:31 -07:00
Lorenz A
14dba82202
LibWeb: Allow whitespace in not after a boolean-expr-group
2025-10-28 21:54:48 -07:00
stelar7
964c0ddde9
LibWeb/IDB: Import getAllRecords test
2025-10-28 19:25:26 -04:00
Luke Wilde
498e59f71d
LibWeb: Set width/height of ImageBitmap when deserializing or receiving
2025-10-28 10:05:56 -07:00
Tete17
b0e02af040
Tests: Add previously crashing TrustedTypes tests
...
Some of these fail, but we think it is due to a discrepancy between
what the spec says and what the WPT test.
Ref: https://github.com/w3c/trusted-types/issues/595
2025-10-28 13:46:54 +00:00
Tim Ledbetter
9da723b5c6
LibWeb: Ensure layout is up to date before resolving canvas colors
2025-10-27 16:56:01 -07:00
Tete17
b77f658c83
LibWeb: Add a bunch of new passing WPT tests
2025-10-27 16:14:20 +00:00
Callum Law
76dadd45d6
LibWeb: Favour !important property values over animated values
2025-10-27 09:51:50 +00:00
Callum Law
84762021b8
LibWeb: Support triggering multiple animations per animation property
...
We also now use the computed (rather than cascaded) values when
triggering animations.
2025-10-27 09:48:25 +00:00
Tim Ledbetter
8854bb62c6
LibGfx: Use CSS sRGB serialization for canvas fill styles
2025-10-26 18:55:22 +01:00
Tim Ledbetter
9dceb06992
LibWeb: Don't paint canvas objects with non-visible fill styles
2025-10-26 16:45:38 +01:00
Ben Eidson
01947ded23
LibWeb/WebAudio: Implement basic startRendering
...
Adds passing WPT. Does not handle actually rendering audio yet.
2025-10-26 14:19:21 +01:00
Lorenz A
fb258639d1
LibWeb: CSS selector read-write honor is_allowed_to_be_readonly
2025-10-24 19:15:58 +01:00
Tim Ledbetter
1c00279488
LibWeb: Reset Painter when resetting canvas to its initial state
2025-10-23 18:52:36 +02:00
Luke Wilde
85e8d2ba38
LibWeb/IndexedDB: Prevent copying and moving of RequestList
...
RequestList cannot be copied or moved, because m_pending_request_queue
contains lambdas that store pointers to the original RequestList and
completion steps that we don't have a reference to.
Fixes a bunch of WPT regressions and imports the ones that work.
2025-10-23 14:42:45 +02:00
Jelle Raaijmakers
9753b8e62c
Tests: Import WPT canvas repeating pattern test
2025-10-23 13:20:03 +01:00
mikiubo
5b2a71a712
LibWeb: Implement XMLFragmentParser
...
Implement XMLFragmentParser based on the specification:
https://html.spec.whatwg.org/multipage/xhtml.html
Fixes one WPT in:
domparsing/insert_adjacent_html-xhtml.xhtml
2025-10-23 11:06:39 +01:00
Callum Law
e78cb71eb3
LibWeb: Dont skip invalid properties when coordinating transition list
...
Unrecognized property names should still be kept in the list to preserve
matching of indices (e.g. that the Nth property should associate with
the Nth duration)
2025-10-23 10:09:11 +01:00
Callum Law
fd2f3b1f03
Tests: Import transition parsing tests
2025-10-23 10:09:11 +01:00
Callum Law
1977a976da
LibWeb: Handle inaccuracies resolving transformation matrix type
...
Doing trigonometric calculations with floating point numbers can
introduce small inaccuracies. This meant that we would sometimes
incorrectly generate a 3d rather than 2d matrix for the resolved value
of `transform`.
Gains us 3 WPT tests.
2025-10-23 09:34:12 +01:00
Tim Ledbetter
2fd424ccb6
LibWeb: Draw canvas arcs and ellipses correctly when radius is zero
...
In this case, we should just draw a line from the last point in the
path to the start point. Previously, a division by zero caused nothing
to be drawn.
2025-10-22 16:08:57 +02:00
Tim Ledbetter
976912f3e9
LibWeb: Normalize negative drawImage() source/destination dimensions
2025-10-22 12:29:04 +02:00
Tim Ledbetter
c4e56cc845
LibWeb: Throw error when calling drawImage() with a broken image
2025-10-22 10:44:58 +02:00
Lorenz A
96b34ea744
LibWeb: Add MathML Element presentational hints
2025-10-22 01:46:41 +02:00
Tim Ledbetter
f1571c4217
LibWeb: Ensure drawImage() always uses the first image frame
2025-10-22 01:25:46 +02:00
Tim Ledbetter
7db73118e9
LibWeb+LibGfx: Draw shadows for stroke joins and caps
2025-10-21 18:55:08 +02:00
Tim Ledbetter
0f295e8989
LibWeb: Take transforms into account when drawing shadows
2025-10-21 18:55:08 +02:00
Tim Ledbetter
0516c414d4
LibWeb: Don't draw shadows for transparent gradient fills
2025-10-21 18:55:08 +02:00
Tim Ledbetter
13f551612c
LibWeb: Don't draw shadows if shadow offset and blur are not set
2025-10-21 18:55:08 +02:00
Tim Ledbetter
eb44cca5bd
LibWeb: Ignore non-finite shadow offset values
2025-10-21 18:55:08 +02:00
Tim Ledbetter
b99c0c6a7f
LibWeb: Account for paint style and global alpha when drawing shadows
2025-10-21 18:55:08 +02:00
Tim Ledbetter
494fcc40ac
LibWeb: Account for transforms in isPointInPath()
2025-10-21 17:42:28 +02:00
Tim Ledbetter
d3ca038b2c
LibWeb: Ensure putImageData() is unaffected by drawing state
2025-10-21 09:52:16 +02:00