Sam Atkins
e62d692205
LibWeb: Implement helpers for parsing CSS numeric types
...
Frequently we want to parse "anything that's a `<length-percentage>`" or
similar, which could be a constant value or a calculation, but didn't
have a nice way of doing so. That meant repeating the same "try and
parse a dimension, see if it's the right type, then maybe try and parse
a calculation and see if that's the right type" boilerplate code. Or
more often, forgetting about calculations entirely.
These helpers should make that a lot more convenient to do. And they
also use TokenStream, so we can eventually drop the old `parse_length()`
method.
2023-12-30 20:11:24 +01:00
..
2023-12-30 20:11:24 +01:00
2023-12-30 20:11:24 +01:00
2023-12-30 20:11:24 +01:00
2023-12-30 20:11:24 +01:00
2023-10-30 10:40:30 +00:00
2023-11-28 17:15:27 -05:00
2023-10-25 19:45:41 +02:00
2023-12-23 23:02:10 +01:00
2023-11-28 17:15:27 -05:00
2023-10-25 19:45:41 +02:00
2023-11-28 17:15:27 -05:00
2023-10-25 19:45:41 +02:00
2023-12-15 22:04:46 +01:00
2023-12-01 20:48:13 +01:00
2023-10-25 19:45:41 +02:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-11-11 08:51:51 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-11-11 08:51:51 +01:00
2023-12-01 20:48:13 +01:00
2023-11-28 17:15:27 -05:00
2023-10-25 19:45:41 +02:00
2023-12-01 16:03:58 +01:00
2023-12-01 16:03:58 +01:00
2023-11-21 01:29:26 +01:00
2023-09-28 20:33:20 +01:00
2023-11-28 17:15:27 -05:00
2023-12-01 20:48:13 +01:00
2023-10-25 19:45:41 +02:00
2023-11-28 17:15:27 -05:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2023-12-17 23:12:34 +01:00
2023-12-17 23:12:34 +01:00
2023-10-25 19:45:41 +02:00
2023-12-01 20:48:13 +01:00
2023-12-01 20:48:13 +01:00
2023-10-25 19:45:41 +02:00
2023-12-01 16:03:58 +01:00
2023-11-24 10:57:17 +01:00
2023-11-11 08:51:51 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-10-25 19:45:41 +02:00
2023-12-23 10:12:36 +01:00
2023-09-11 17:03:22 +01:00
2023-09-11 17:03:22 +01:00
2023-11-21 01:29:26 +01:00
2023-09-28 20:33:20 +01:00
2023-09-28 20:33:20 +01:00
2023-12-10 17:32:04 +01:00
2023-12-10 17:32:04 +01:00
2023-09-28 20:33:20 +01:00
2023-09-28 20:33:20 +01:00
2023-10-09 07:28:18 +02:00
2023-12-10 17:32:04 +01:00
2023-12-01 20:48:13 +01:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2023-12-15 22:04:46 +01:00
2023-12-01 20:48:13 +01:00
2023-12-01 20:48:13 +01:00
2023-10-25 19:45:41 +02:00
2023-11-28 17:15:27 -05:00
2023-11-19 22:00:48 +01:00
2023-12-23 10:12:36 +01:00
2023-09-13 19:55:22 +02:00
2023-12-30 20:11:24 +01:00
2023-12-30 20:11:24 +01:00
2023-12-17 23:12:34 +01:00
2023-12-17 23:12:34 +01:00
2023-12-15 22:04:46 +01:00
2023-11-19 22:00:48 +01:00
2023-12-21 13:17:51 +01:00
2023-12-21 13:17:51 +01:00
2023-12-24 08:03:58 +00:00
2023-12-11 16:54:59 +01:00
2023-12-10 17:32:04 +01:00
2023-12-10 17:32:04 +01:00
2023-12-26 18:15:55 +01:00
2023-12-26 18:15:55 +01:00
2023-12-26 18:15:55 +01:00
2023-12-10 17:32:04 +01:00
2023-11-07 11:33:41 +01:00
2023-12-01 20:48:13 +01:00
2023-10-25 19:45:41 +02:00
2023-11-28 17:15:27 -05:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2023-09-28 20:33:20 +01:00
2023-09-28 20:33:20 +01:00
2023-11-30 22:54:02 +01:00
2023-10-15 07:14:39 +02:00
2023-11-30 22:54:02 +01:00
2023-11-28 17:15:27 -05:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00