ladybird/Tests/LibWeb
Luke Wilde aacf9b08ed LibWeb: Generate IDL attributes for all supported CSS properties
The CSSOM spec tells us to potentially add up to three different IDL
attributes to CSSStyleDeclaration for every CSS property we support:
- A camelCased attribute, where a dash indicates the next character
  should be uppercase
- A camelCased attribute for every -webkit- prefixed property, with the
  first letter always being lowercase
- A dashed-attribute for every property with a dash in it.

Additionally, every attribute must have the CEReactions and
LegacyNullToEmptyString extended attributes specified on it.

Since we specify every property we support with Properties.json, we can
use that file to generate the IDL file and it's implementation.

We import it from the Build directory with the help of multiple import
base paths. Then, we add it to CSSStyleDeclaration via the mixin
functionality and inheriting the generated class in
CSSStyleDeclaration.
2024-11-14 19:50:22 +01:00
..
Assets Tests/LibWeb: Move assets used by multiple test types into Assets/ 2024-11-05 14:02:07 +00:00
Fixtures Meta: Add an HTTP echo server to help with testing Browser JS 2024-11-09 13:08:31 -07:00
Layout LibWeb: Fix percentage insets resolution for grid items 2024-11-11 20:20:39 +01:00
Ref LibWeb/CSS: Resolve percentage values against 1 in CSSColor 2024-11-14 09:26:28 +00:00
Screenshot Tests/LibWeb: Restructure Ref and Screenshot test dirs to match others 2024-11-05 14:02:07 +00:00
Text LibWeb: Generate IDL attributes for all supported CSS properties 2024-11-14 19:50:22 +01:00
add_libweb_test.py Tests/LibWeb: Add a script to create a new test, starting with Text 2024-04-10 17:17:40 -06:00
CMakeLists.txt LibWeb/CSS: Bring TokenStream in line with spec 2024-10-09 17:29:29 +01:00
TestConfig.ini Tests: Skip flaky text-as-flexitem-size test 2024-11-14 14:35:30 +00:00
TestCSSIDSpeed.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +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 LibWeb: Make more MimeSniff::MimeType APIs infallible 2024-10-14 20:47:35 +02:00
TestHTMLTokenizer.cpp Everywhere: Remove Serenity specific code from tests 2024-07-05 07:29:51 +02:00
TestHTMLTokenizerSwift.swift LibWeb: Add support for parsing comments in the Swift HTML tokenizer 2024-10-16 08:31:42 +02: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: Make MimeSniff::Resource::sniff() infallible 2024-10-14 20:47:35 +02:00
TestNumbers.cpp LibWeb: Add “valid floating-point number” for HTMLInputElement.value 2024-08-28 07:49:17 -04:00
tokenizer-test.html LibWeb: Fix assertion failure when tokenizing JS regex literals 2021-07-15 01:47:22 +02:00