serenity/Documentation/Browser
Luke Wilde 772be9dec0 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.

(cherry picked from commit aacf9b08ed8c4286c84145b52fa70f399ed0bdff;
amended to fix tiny conflict in libweb_generators.cmake, and to change
the default value of all gap-related properties from 'auto' to 'normal'
since serenity does not yet have LadybirdBrowser/ladybird#2253 and
cherry-picking that has a pretty long dependency tree. It's easy to
update the test once that is cherry-picked)
2024-11-23 22:07:22 -05:00
..
AddNewIDLFile.md Everywhere: Format Markdown with prettier 2024-10-04 10:46:42 -04:00
BrowsingContextsAndNavigables.md Everywhere: Format Markdown with prettier 2024-10-04 10:46:42 -04:00
classes.png
CSSGeneratedFiles.md LibWeb: Generate IDL attributes for all supported CSS properties 2024-11-23 22:07:22 -05:00
LibWebFromLoadingToPainting.md LibWeb: Rename StyleValue -> CSSStyleValue 2024-10-10 10:08:59 -04:00
Patterns.md Documentation: Describe how to use add_libweb_test.py for Text tests 2024-05-07 16:29:19 -06:00
ProcessArchitecture.md Documentation: Remove unnecessary newline in documentation 2024-10-31 19:57:33 -04:00
processes.png