1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators
Sam Atkins 7ce8a91341 Meta: Generate functions for validating media-query values
These work differently from how we validate StyleValues. There, we parse
a StyleValue from the CSS, and then see if it is allowed in the
property. That causes problems when the syntax is ambiguous - for
example, `0` can be a number or a Length.

Here instead, we ask what kinds of value are allowed for a
media-feature, and then only attempt to parse those kinds of value.
This makes the ambiguity problem go away. :^)

Each media-feature in the spec only accepts one type of value, and/or
some identifiers. This makes the switch statements for the type a bit
excessive, but the spec does not *require* that only one type is
allowed, so this is more future-proof.
2022-03-09 23:06:30 +01:00
..
IPCCompiler IPCCompiler: Don't loop endlessly on nameless parameters 2022-01-29 12:44:15 +01:00
LibEDID Meta+LibEDID: Download and generate the PNP ID database 2022-01-23 22:45:21 +00:00
LibTimeZone LibTimeZone: Port the TZDB generator to the stream API 2022-02-14 11:39:46 -05:00
LibUnicode LibUnicode: Use BCP 47 data to filter valid calendar names 2022-02-16 07:23:07 -05:00
LibWeb Meta: Generate functions for validating media-query values 2022-03-09 23:06:30 +01:00
StateMachineGenerator AK: Standardize the behaviour of GenericLexer::consume_until overloads 2022-01-25 13:41:09 +03:30
CMakeLists.txt Meta+LibEDID: Download and generate the PNP ID database 2022-01-23 22:45:21 +00:00