Callum Law
eab7935686
LibWeb: Explicitly pass calculation context when parsing
...
Previously we would generate the calculation context based on the
current value parsing context. The main problem with this was that
contexts were defined per property by default and had to be overriden
per component value using "special" contexts, which was easy to forget.
We now generate the calculation context per component value in the
relevant `parse_foo_value` methods.
The new failures in `typed_arithmetic.html` are because we no longer
treat percentages as resolving to their property-level type when
computing what the resolved type of a calculation is i.e. when we are
parsing the `<number>` portion of `line-height` we treat percentages as
raw percentages, not lengths. This brings us in line with WebKit but no
longer with Chrome and WPT, I am not sure what the correct behavior is.
2026-04-22 14:24:12 +01:00
..
2026-04-22 14:24:12 +01:00
2026-04-22 14:24:12 +01:00
2025-08-23 16:04:36 -06:00
2026-04-13 19:24:43 +02:00
2026-04-13 19:24:43 +02:00
2026-04-21 07:36:13 +02:00
2026-03-25 16:02:04 +00:00
2026-03-09 14:36:18 +00:00
2026-03-09 14:36:18 +00:00
2025-10-22 00:01:30 +02:00
2026-03-25 12:53:22 +00:00
2026-03-25 12:53:22 +00:00
2025-09-04 13:31:24 +01:00
2026-04-22 11:52:56 +01:00
2026-04-22 11:52:56 +01:00
2026-04-22 11:52:56 +01:00
2026-04-16 12:06:10 +02:00
2026-04-22 14:24:12 +01:00
2026-04-15 11:07:38 +01:00
2026-04-15 11:07:38 +01:00
2026-03-30 14:49:24 +01:00
2026-03-30 14:49:24 +01:00
2026-03-21 18:20:09 -05:00
2026-03-21 18:20:09 -05:00
2026-04-15 11:07:38 +01:00
2026-04-15 11:07:38 +01:00
2026-03-26 12:30:01 +01:00
2026-04-15 11:07:38 +01:00
2026-03-30 19:57:36 +01:00
2025-10-02 13:46:04 +01:00
2026-03-25 16:02:04 +00:00
2026-04-21 07:36:13 +02:00
2026-03-21 23:16:32 -05:00
2026-03-25 16:02:04 +00:00
2026-04-21 07:36:13 +02:00
2026-04-21 07:36:13 +02:00
2026-03-30 14:49:24 +01:00
2026-03-30 14:49:24 +01:00
2026-04-21 07:36:13 +02:00
2026-04-15 11:07:38 +01:00
2026-02-03 09:58:47 +00:00
2026-03-27 11:19:28 +00:00
2026-03-27 11:19:28 +00:00
2026-04-21 07:36:13 +02:00
2026-01-05 16:15:58 +00:00
2026-04-21 07:36:13 +02:00
2026-02-24 15:44:32 +00:00
2026-03-20 16:08:32 -05:00
2026-04-21 07:36:13 +02:00
2026-02-17 12:25:27 +00:00
2026-04-21 07:36:13 +02:00
2026-03-20 16:08:32 -05:00
2026-02-17 12:25:27 +00:00
2026-04-21 07:36:13 +02:00
2026-03-27 11:19:28 +00:00
2026-03-27 11:19:28 +00:00
2026-04-21 07:36:13 +02:00
2026-03-27 11:19:28 +00:00
2026-03-27 11:19:28 +00:00
2026-04-21 07:36:13 +02:00
2026-03-27 11:19:28 +00:00
2026-03-27 11:19:28 +00:00
2026-04-21 07:36:13 +02:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-15 08:47:10 +01:00
2026-04-21 07:36:13 +02:00
2026-02-12 16:23:12 +01:00
2025-12-08 13:30:53 +00:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2026-04-21 07:36:13 +02:00
2026-01-09 17:14:20 +00:00
2025-08-21 10:21:54 +01:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2026-04-21 07:36:13 +02:00
2026-01-09 17:14:20 +00:00
2025-08-29 11:57:10 +02:00
2026-04-21 07:36:13 +02:00
2026-01-12 11:51:15 +00:00
2025-08-29 11:57:10 +02:00
2026-04-21 07:36:13 +02:00
2026-01-12 11:51:15 +00:00
2025-08-29 11:57:10 +02:00
2026-04-21 07:36:13 +02:00
2026-01-12 11:51:15 +00:00
2025-08-29 11:57:10 +02:00
2026-04-21 07:36:13 +02:00
2026-01-12 11:51:15 +00:00
2025-08-29 11:57:10 +02:00
2026-04-21 07:36:13 +02:00
2026-01-12 11:51:15 +00:00
2025-08-29 11:57:10 +02:00
2026-04-21 07:36:13 +02:00
2026-01-12 11:51:15 +00:00
2025-08-29 11:57:10 +02:00
2025-10-14 13:41:47 +01:00
2026-04-21 07:36:13 +02:00
2025-08-29 11:57:10 +02:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2025-07-11 10:57:19 +02:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2026-03-25 16:02:04 +00:00
2026-04-21 07:36:13 +02:00
2026-03-27 11:19:28 +00:00
2026-04-21 07:36:13 +02:00
2025-08-29 11:57:10 +02:00
2025-09-02 10:41:33 +01:00
2026-04-22 14:24:12 +01:00
2026-04-21 07:36:13 +02:00
2026-01-12 11:51:15 +00:00
2026-04-21 07:36:13 +02:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2026-01-09 10:54:37 +00:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2026-03-30 14:49:24 +01:00
2026-03-25 16:02:04 +00:00
2026-04-21 07:36:13 +02:00
2025-10-07 10:32:59 +01:00
2026-03-25 16:02:04 +00:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2026-02-11 20:02:28 +01:00
2026-04-22 11:52:56 +01:00
2026-02-11 20:02:28 +01:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2025-08-13 09:47:50 +01:00
2026-04-21 07:36:13 +02:00
2026-04-15 11:07:38 +01:00
2026-02-24 14:36:40 +01:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-08-21 10:21:54 +01:00
2026-04-21 07:36:13 +02:00
2025-12-04 16:24:04 +00:00
2025-07-11 10:57:19 +02:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2026-02-18 08:02:45 -05:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-24 12:27:05 +01:00
2026-04-21 07:36:13 +02:00
2026-01-09 17:14:20 +00:00
2025-08-22 09:48:30 +01:00
2026-04-21 07:36:13 +02:00
2025-10-14 13:41:47 +01:00
2025-09-02 10:41:33 +01:00
2026-04-21 07:36:13 +02:00
2025-09-24 12:27:05 +01:00
2025-08-21 10:21:54 +01:00
2026-02-13 14:57:15 +01:00
2026-02-13 14:57:15 +01:00
2026-01-09 10:54:37 +00:00
2026-03-21 07:40:25 +00:00
2025-08-08 15:19:03 +01:00
2026-03-27 11:19:28 +00:00
2026-03-27 11:19:28 +00:00
2026-03-30 19:57:36 +01:00
2026-02-21 15:53:22 +01:00
2026-02-21 15:53:22 +01:00
2026-03-30 14:05:10 +01:00
2026-03-26 12:30:01 +01:00
2026-03-30 14:05:10 +01:00
2026-03-30 14:05:10 +01:00
2025-08-13 09:47:50 +01:00
2026-03-26 12:15:36 +00:00
2025-08-07 16:38:29 +02:00
2026-03-04 19:35:45 +01:00
2026-01-09 10:54:11 +00:00
2026-02-16 12:09:23 +00:00
2026-02-16 12:09:23 +00:00
2026-04-09 21:41:49 +01:00
2026-04-09 21:41:49 +01:00
2026-04-18 23:46:20 +02:00
2026-04-18 23:46:20 +02:00
2026-04-21 07:36:13 +02:00
2026-04-21 07:36:13 +02:00
2026-04-21 07:36:13 +02:00
2026-04-21 07:36:13 +02:00
2026-03-27 15:28:59 +00:00
2026-04-21 07:36:13 +02:00
2026-01-06 12:24:42 +01:00
2026-01-06 12:24:42 +01:00
2026-03-20 16:08:32 -05:00
2026-03-22 14:05:44 +01:00
2026-04-18 23:46:20 +02:00
2026-04-18 23:46:20 +02:00
2026-04-13 19:24:43 +02:00
2026-04-13 19:24:43 +02:00
2026-03-30 14:05:10 +01:00
2026-03-30 14:05:10 +01:00
2026-04-09 21:41:49 +01:00
2026-04-09 21:41:49 +01:00
2026-04-22 14:24:12 +01:00
2026-04-21 07:36:13 +02:00
2026-04-20 13:20:41 +02:00
2026-04-20 13:20:41 +02:00
2026-03-18 13:21:57 +00:00
2026-04-08 14:31:43 +01:00
2026-03-31 10:06:18 +02:00
2025-09-04 13:31:24 +01:00
2025-09-04 13:31:24 +01:00
2026-03-25 16:02:04 +00:00
2026-03-25 12:53:22 +00:00
2025-12-01 11:00:33 +00:00
2026-04-21 07:36:13 +02:00
2026-02-09 21:44:47 +01:00
2026-03-25 16:02:04 +00:00
2026-03-24 14:00:01 +00:00
2026-03-30 14:05:10 +01:00
2026-04-21 07:36:13 +02:00
2026-03-11 21:16:44 +01:00
2026-04-21 07:36:13 +02:00
2026-03-26 12:30:01 +01:00
2026-03-26 12:30:01 +01:00
2026-04-22 14:24:12 +01:00
2025-09-12 13:45:41 +02:00
2025-10-27 14:50:54 +00:00
2026-03-27 11:19:28 +00:00
2026-03-26 12:30:01 +01:00
2026-03-30 14:05:10 +01:00
2026-03-30 14:05:10 +01:00
2026-04-13 19:24:43 +02:00
2026-04-22 14:24:12 +01:00
2025-08-13 09:47:50 +01:00
2025-10-27 14:50:54 +00:00
2026-02-23 18:44:26 +00:00
2026-02-23 18:44:26 +00:00
2026-04-08 10:37:05 +01:00
2025-08-18 16:52:39 +01:00
2026-03-24 14:00:01 +00:00
2026-03-24 14:00:01 +00:00
2026-04-21 07:36:13 +02:00
2025-12-12 10:17:00 +00:00
2026-04-21 07:36:13 +02:00
2026-04-21 07:36:13 +02:00
2026-04-10 15:00:58 +01:00
2026-04-10 15:00:58 +01:00
2026-04-20 13:20:41 +02:00
2026-04-20 13:20:41 +02:00
2025-09-07 15:55:16 +01:00
2026-04-10 15:00:58 +01:00
2026-01-09 10:00:58 +01:00
2026-04-09 21:41:49 +01:00
2026-04-09 21:41:49 +01:00
2026-03-03 17:14:19 +01:00
2026-02-18 08:02:45 -05:00
2026-04-22 14:24:12 +01:00
2026-04-22 14:24:12 +01:00
2026-04-22 14:24:12 +01:00
2026-04-15 11:07:38 +01:00
2026-04-20 13:20:41 +02:00
2026-04-20 13:20:41 +02:00
2025-11-12 11:19:37 +01:00
2025-11-12 11:19:37 +01:00
2026-04-21 07:36:13 +02:00
2025-10-04 22:57:00 +02:00
2025-08-13 09:47:50 +01:00
2026-04-21 07:36:13 +02:00
2025-10-02 13:46:04 +01:00
2025-08-15 09:21:28 +02:00
2026-04-20 13:20:41 +02:00
2026-04-20 13:20:41 +02:00
2026-04-21 07:36:13 +02:00
2025-08-23 16:04:36 -06:00
2025-09-26 22:30:20 +02:00
2026-04-21 07:36:13 +02:00
2025-08-23 16:04:36 -06:00
2026-03-29 21:27:20 +01:00
2026-03-29 21:27:20 +01:00
2026-02-06 10:47:50 +00:00
2025-08-23 16:04:36 -06:00
2026-04-13 19:24:43 +02:00
2026-04-13 19:24:43 +02:00
2025-06-15 15:59:02 +02:00
2026-04-21 07:36:13 +02:00
2025-09-11 17:06:44 +01:00
2026-02-19 11:27:06 +00:00
2026-02-19 11:27:06 +00:00
2026-04-22 14:24:12 +01:00
2026-04-22 14:24:12 +01:00
2026-04-21 07:36:13 +02:00
2026-03-31 10:37:23 +02:00