1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 21:25:07 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibWeb
Sam Atkins d6901d2119 Meta: Add range checking to all numeric CSS types
We did already have range checking for the `<integer>` and `<number>`
types, but this patch adds this functionality to all numeric types
(dimensions and percentages).

The syntax in Properties.json is taken from the spec:
https://www.w3.org/TR/css-values-3/#numeric-ranges

eg, `length [0,∞]` defines that a Length is allowed as long as it has a
positive value.

The implementation here allows for any number to be the positive or
negative limit, even though only 0 and positive/negative infinity are
meaningful values without a unit.
2022-03-26 18:15:08 +01:00
..
WrapperGenerator LibWeb: Support IDL default values of "null" for optional arguments 2022-03-22 02:08:15 +01:00
CMakeLists.txt Meta: Port Generate_CSS_PropertyID_cpp to LibMain/Core::Stream 2022-03-10 09:49:13 -05:00
Generate_CSS_MediaFeatureID_cpp.cpp Meta: Generate functions for validating media-query values 2022-03-09 23:06:30 +01:00
Generate_CSS_MediaFeatureID_h.cpp Meta: Generate functions for validating media-query values 2022-03-09 23:06:30 +01:00
Generate_CSS_PropertyID_cpp.cpp Meta: Add range checking to all numeric CSS types 2022-03-26 18:15:08 +01:00
Generate_CSS_PropertyID_h.cpp LibWeb: Only invalidate stacking context tree for opacity/z-index change 2022-03-21 13:03:33 +01:00
Generate_CSS_ValueID_cpp.cpp Meta: Port Generate_CSS_ValueID_cpp to LibMain/Core::Stream 2022-03-10 09:49:13 -05:00
Generate_CSS_ValueID_h.cpp Meta: Port Generate_CSS_ValueID_h to LibMain/Core::Stream 2022-03-10 09:49:13 -05:00
GeneratorUtil.h Meta: Generate CSS::MediaFeatureID enum 2022-03-09 23:06:30 +01:00