Timothy Flynn
f8b593a7df
LibJS: Implement Temporal.PlainDate.prototype.toPlainMonthDay/YearMonth
2024-11-23 14:46:00 +01:00
Timothy Flynn
3aa4cdd314
LibJS: Implement Temporal.PlainDate.prototype.until/since
2024-11-23 14:46:00 +01:00
Timothy Flynn
abc6b679c3
LibJS: Check both the quotient and remainder for rounding negativity
...
Our BigInt implementation can store the negativity of the division
result in either the quotient or the remainder. This is exposed by an
upcoming prototype, which will reach this division with:
-432000000000000 / 86400000000000000000000
Which has the BigInt division result:
quotient = 0
remainder = -432000000000000
(Our old Temporal implementation also had this bug).
2024-11-23 14:46:00 +01:00
Timothy Flynn
b319d45566
LibJS: Optimize the CalendarDateUntil AO for large year differences
...
For example, consider the following operation:
const instance = new Temporal.PlainDate(2000, 5, 2);
instance.until("-271821-04-19");
The spec would have us enter a loop to compute the difference between
these dates by incrementing an intermediate date one day at a time.
Instead, we can do some math to skip ahead much closer to the desired
date.
2024-11-23 14:46:00 +01:00
Timothy Flynn
f280a96e35
LibJS: Implement Temporal.PlainDate.prototype.with/withCalendar
2024-11-23 14:46:00 +01:00
Timothy Flynn
c2ead84bd9
LibJS: Implement Temporal.PlainDate.prototype.add/subtract/equals
2024-11-23 14:46:00 +01:00
Timothy Flynn
9fbb5a57fa
LibJS: Implement stringification Temporal.PlainDate prototypes
2024-11-23 14:46:00 +01:00
Timothy Flynn
a0c55f76e7
LibJS: Implement the Temporal.PlainDate constructor
...
And the simple Temporal.PlainDate.prototype getters, so that the
constructed Temporal.PlainDate may actually be validated.
2024-11-23 14:46:00 +01:00
Andreas Kling
30fb2bf2e1
Tests: Skip html/rendering/pixel-length-attributes.html for now
...
This test is too slow for GCC CI.
2024-11-23 14:41:41 +01:00
Andreas Kling
1b4763f75f
LibWeb: Allow border="0" on HTMLObjectElement
2024-11-23 14:41:41 +01:00
Andreas Kling
6e85363a84
LibWeb: Allow border="0" on HTMLInputElement
2024-11-23 14:41:41 +01:00
Andreas Kling
1288452bc3
LibWeb: Honor border
attribute on HTMLImageElement
2024-11-23 14:41:41 +01:00
Andreas Kling
e781aab274
LibWeb: Honor the various margin attributes in HTMLBodyElement
...
This one is particularly weird as there's a priority order, and we even
have to look at attributes from the container element if we're inside a
subframe.
2024-11-23 14:41:41 +01:00
Andreas Kling
97aa608c13
Tests: Import WPT test for pixel length attributes
2024-11-23 14:41:41 +01:00
Andreas Kling
7ea7352bf3
LibWeb: Bail on applying the history step when no active window
...
This is an ad-hoc hack papering over the fact that we can apparently
end up in these places without an active window, and proceeding without
one leads to assertions on WPT.
2024-11-23 14:41:41 +01:00
rmg-x
59c8e0cd5a
Documentation: Remove SerenityOS references where appropriate
2024-11-23 14:29:48 +01:00
rmg-x
d389fb440f
CI: Ignore changes to Documentation related files
...
This will prevent CI from running if:
- the only changes included are under the Documentation folder, or
- the only changes included are *.md files in the root
See:
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#example-excluding-paths
2024-11-23 10:44:54 +01:00
Psychpsyo
3e536a4cd7
LibWeb: Implement more IntersectionObserver attributes
2024-11-23 09:52:32 +01:00
Gingeh
7444f76b0d
LibWeb: Make querySelectorAll match each element at most once
2024-11-23 09:49:33 +01:00
Gingeh
bb678e75f9
LibWeb: Reject selectors with named namespaces in querySelectorAll
2024-11-23 09:49:33 +01:00
Gingeh
ba0cc7fe46
LibWeb: Use correct case-sensitivity when matching attribute selectors
...
Also removed get_attribute_with_lowercase_qualified_name
because it was buggy, duplicated logic, and now unused.
2024-11-23 09:49:33 +01:00
Gingeh
a2cf1d17fd
LibWeb: Require CSS combinators to be followed by a simple selector
2024-11-23 09:49:33 +01:00
Gingeh
bb5678a175
LibWeb: Don't allow trailing commas in selector lists
...
comma-separated list != #-multiplier
2024-11-23 09:49:33 +01:00
sideshowbarker
8965698ce7
LibWeb: Support accessible-name computation for SVG elements
...
This change adds support for computing accessible names for SVG
elements, per the https://w3c.github.io/svg-aam/#mapping_additional_nd
spec requirements. Otherwise, without this change, accessible names for
SVG elements don’t get exposed as expected.
2024-11-23 04:34:23 +00:00
Psychpsyo
b22341fc77
LibGfx: Support AVIF images with missing pixi property
2024-11-23 03:57:54 +00:00
Shannon Booth
3fffd1129c
LibWeb: Implement overload resolution for sequence types
...
Fixes : #2508
2024-11-23 02:38:21 +00:00
Psychpsyo
e2b2115722
LibWeb: Fix spec link in FlexFormattingContext
2024-11-23 01:37:32 +00:00
Andreas Kling
9a7c9286c4
LibWeb: Support individual scale
CSS property
2024-11-22 20:06:44 +01:00
Andreas Kling
66a821e731
LibWeb: Support individual translate
CSS property
2024-11-22 20:06:44 +01:00
Andreas Kling
6836d4edb1
LibWeb: Fix incomplete plumbing for individual rotate
CSS property
2024-11-22 20:06:44 +01:00
Andreas Kling
d6f7fccf49
Tests: Import a bunch of WPT tests from /css/css-transforms
2024-11-22 20:06:44 +01:00
Timothy Flynn
b64ccb95ec
LibJS: Implement Temporal.PlainYearMonth.prototype.valueOf
2024-11-22 19:55:24 +01:00
Timothy Flynn
35f22dcf79
LibJS: Implement Temporal.PlainYearMonth.prototype.add/subtract
2024-11-22 19:55:24 +01:00
Timothy Flynn
cb5d1b5086
LibJS: Implement Temporal.PlainYearMonth.prototype.until/since
2024-11-22 19:55:24 +01:00
Timothy Flynn
203269fae2
LibJS: Implement Temporal.PlainYearMonth.prototype.with/equals
2024-11-22 19:55:24 +01:00
Timothy Flynn
2da526423f
LibJS: Implement stringification Temporal.PlainYearMonth prototypes
2024-11-22 19:55:24 +01:00
Timothy Flynn
b68d67693e
LibJS: Implement the Temporal.PlainYearMonth constructor
...
And the simple Temporal.PlainYearMonth.prototype getters, so that the
constructed Temporal.PlainYearMonth may actually be validated.
2024-11-22 19:55:24 +01:00
Pavel Shliak
1c733993e0
LibGfx: Do not provide BPP
2024-11-22 15:05:46 +01:00
Psychpsyo
3f5fff79ae
LibWeb: Update checkbox focus lost test
2024-11-22 13:58:36 +00:00
Psychpsyo
c75dda8f8b
LibWeb: Stop radio buttons firing change events when losing focus
2024-11-22 13:58:36 +00:00
Shannon Booth
75b7a3e413
LibWeb: Add definitions for PointerEvent event handlers
...
Also removing a FIXME about not covering all of the event names as it is
not exactly clear when such a FIXME would be addressed, especially as
these come from multiple specifications.
2024-11-22 14:33:58 +01:00
Jonne Ransijn
4d38e04e48
LibMedia: Remove LibMedia::Audio::LoaderError
...
This class was used as little more than a wrapper around `Error`,
so we might as well use `Error` in the first place.
2024-11-22 12:43:57 +01:00
Nico Weber
f4b0d17e4b
LibWeb: Plumb svg stroking state to DisplayListPlayerSkia
...
The state is still ignored there, so no behavior change, but this
should make it fairly easy to actually implement complete stroking
support for SVGs.
2024-11-22 12:21:29 +01:00
Borna Lang
201648485f
LibGfx: Reimplement from_hsla
...
- Hue now wraps properly when negative or larger than 360
- The hsl to rgb conversion now closely mirrors the code example from
the spec.
This fixes a number of WPT tests in
/css/css-color/parsing/color-computed-hsl.html
2024-11-22 12:10:30 +01:00
Timothy Flynn
bc846d933d
CI: Use correct path to upload ref test dumps
2024-11-22 09:57:27 +01:00
Timothy Flynn
c6fccc04e1
LibJS: Use Temporal's ISO8601 parser to parse UTC offset strings
...
We now have the Temporal facilities to implement the Date AOs which
parse UTC offset strings using the ISO8601 parser. This patch updates
those AOs and their callers in accordance with the Temporal spec.
2024-11-21 19:24:25 -05:00
Timothy Flynn
64811ab7b6
LibJS: Implement Temporal.PlainMonthDay.prototype.valueOf
2024-11-21 19:24:25 -05:00
Timothy Flynn
5389acc231
LibJS: Implement Temporal.PlainMonthDay.prototype.with/equals
2024-11-21 19:24:25 -05:00
Timothy Flynn
5bccb36a6f
LibJS: Implement stringification Temporal.PlainMonthDay prototypes
2024-11-21 19:24:25 -05:00
Timothy Flynn
1a386e78c3
LibJS: Implement the Temporal.PlainMonthDay constructor
...
And the simple Temporal.PlainMonthDay.prototype getters, so that the
constructed Temporal.PlainMonthDay may actually be validated.
2024-11-21 19:24:25 -05:00