diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-03-26 14:51:00 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-26 18:15:08 +0100 |
commit | d6901d2119d05a7cc1dea8d52c67f49f0813264c (patch) | |
tree | 307b4a4e88f00dcd57ef5592d149290369f3de5b /AK/Demangle.h | |
parent | 16ff2d339a9d66cea1fbd8f3b85d101c4e4fb584 (diff) | |
download | serenity-d6901d2119d05a7cc1dea8d52c67f49f0813264c.zip |
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.
Diffstat (limited to 'AK/Demangle.h')
0 files changed, 0 insertions, 0 deletions