ladybird/Tests/LibWeb
Callum Law 3421cd76fa LibWeb: Store CSSStyleProperties properties in "specified order"
The spec requires us to store properties in their shorthand-expanded
form and in the "specified" order, removing duplicates prefering based
on "cascading order". We already enforced this in `set_property` but
not at creation time (e.g. in stylesheets) or in `set_css_text` (e.g.
updating style attribute).

This commit enforces the spec requirements at all the relevant points.

We no longer include logical properties in the return value of
`getComputedStyle` as they are mapped to their physical equivalents in
`StyleComputer::for_each_property_expanding_shorthands`, but resolving
that requires a relatively large rework of how we handle logical
properties, (namely moving when we map them to their physical
equivalents from parse time to style computation time).

This also exposes two false positive tests in
wpt-import/css/cssom/border-shorthand-serialization.html related to us
not yet supporting the border-image css property.
2025-06-09 10:43:50 +01:00
..
Assets LibWeb: Check if navigable has active window before navigating 2025-02-28 23:15:35 +01:00
Crash LibWeb: Disentangle both ends of a MessagePort at once 2025-05-24 10:47:06 +12:00
Fixtures Tests/LibWeb: Fix type for delay_ms property in HTTP echo server 2024-12-07 15:49:15 +00:00
Layout LibWeb: Don't claim that inline layout nodes can contain abspos elements 2025-06-07 16:51:07 +02:00
Ref LibWeb: Don't early return when masking area of StackingContext is empty 2025-06-06 00:52:19 +02:00
Screenshot Tests/LibWeb: Fix flaky css background test 2025-05-30 12:03:25 -04:00
Text LibWeb: Store CSSStyleProperties properties in "specified order" 2025-06-09 10:43:50 +01:00
add_libweb_test.py Everywhere: Document use of ladybird.py over ladybird.sh 2025-05-29 16:24:17 -04:00
CMakeLists.txt LibWeb: Only use code unit length for is_code_unit_prefix 2025-05-12 11:20:32 +02:00
TestConfig.ini LibWeb: Print FIXME instead of throwing NotSupportedError in WebAudio 2025-05-28 20:37:35 +02:00
TestCSSIDSpeed.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
TestCSSInheritedProperty.cpp Meta/LibWeb: Use correct shorthand range in is_inherited_property 2024-12-22 12:33:41 +01:00
TestCSSPixels.cpp LibWeb: Remove rounding division for CSSPixels 2024-01-06 21:40:27 +01:00
TestCSSTokenStream.cpp LibWeb/CSS: Bring TokenStream in line with spec 2024-10-09 17:29:29 +01:00
TestFetchInfrastructure.cpp LibWeb: Remove OOM propagation from Fetch::Infrastructure::HTTP 2024-04-27 07:08:14 +02:00
TestFetchURL.cpp Everywhere: Remove some use of the URL constructors 2025-02-19 08:01:35 -05:00
TestHTMLTokenizer.cpp LibWeb: Fix hex character references accepting all alphabetic ASCII 2025-01-07 00:43:41 +01:00
TestHTMLTokenizerSwift.swift LibWeb: Add remaining states to the Swift tokenizer 2024-11-15 10:51:45 -07:00
TestLibWebSwiftBindings.swift Tests: Use Swift.String extension instead of manual conversion 2024-10-14 16:55:09 -04:00
TestMicrosyntax.cpp LibWeb: Add test for week_number_of_the_last_day microsyntax 2023-12-11 14:04:27 -07:00
TestMimeSniff.cpp LibWeb/MimeSniff: Add WebM signature sniffing and VINT parsing 2025-05-15 09:39:19 -06:00
TestNumbers.cpp LibWeb: Add “valid floating-point number” for HTMLInputElement.value 2024-08-28 07:49:17 -04:00
TestStrings.cpp LibWeb: Only use code unit length for is_code_unit_prefix 2025-05-12 11:20:32 +02:00
tokenizer-test.html LibWeb: Fix assertion failure when tokenizing JS regex literals 2021-07-15 01:47:22 +02:00