Sam Atkins
b65ccb4dc6
LibWeb: Introduce color-function-specific style values
...
Instead of CSSColorValue holding a Gfx::Color, make it an abstract class
with subclasses for each different color function, to match the Typed-OM
spec. This means moving the color calculations from the parsing code to
the `to_color()` method on the style value.
This lets us have calc() inside a color function, instead of having to
fully resolve the color at parse time. The canvas fillStyle tests have
been updated to reflect this.
The other test change is Screenshot/css-color-functions.html: previously
we produced slightly different colors for an alpha of 0.5 and one of
50%, and this incorrect behavior was baked into the test. So now it's
more correct. :^)
(cherry picked from commit 3af6a69f1e13803c64466a9b24b7bd7d75d459df;
amended to:
* resolve a minor conflict in Parser.cpp due to upstream not having
https://github.com/LadybirdBrowser/ladybird/pull/385#issuecomment-2227130015
* rebaseline canvas-fillstyle-rgb.png since the diff didn't apply due to
us not having https://github.com/LadybirdBrowser/ladybird/pull/999
* remove css-color-functions-ref.png and instead update
css-color-functions-ref.html since that file is still a reftest due to us
not having https://github.com/LadybirdBrowser/ladybird/pull/736
Makes it much easier to see what actually changed.
)
2024-10-11 10:12:33 -04:00
..
2024-10-10 10:08:59 -04:00
2024-03-30 08:15:49 +01:00
2024-07-13 18:21:45 -04:00
2024-10-11 09:27:51 -04:00
2024-10-10 10:08:59 -04:00
2024-09-14 13:30:27 +02:00
2023-11-06 11:37:08 +01:00
2023-12-12 23:01:08 +01:00
2024-05-30 09:29:20 -06:00
2024-10-11 09:27:51 -04:00
2023-10-08 08:11:48 -04:00
2024-07-28 16:44:22 -04:00
2024-03-30 19:28:20 +01:00
2024-04-26 12:21:57 -04:00
2023-11-19 22:00:48 +01:00
2024-04-26 12:21:57 -04:00
2024-04-26 12:21:57 -04:00
2024-07-28 16:44:35 -04:00
2024-07-28 16:44:35 -04:00
2024-07-28 16:44:35 -04:00
2024-06-26 08:48:11 +02:00
2024-05-07 16:45:28 -06:00
2024-04-16 07:40:01 +02:00
2023-12-05 09:38:32 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-05-21 19:29:04 +02:00
2024-10-08 07:21:19 -04:00
2024-10-01 19:53:31 -04:00
2024-09-27 15:05:30 -04:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2024-06-28 00:55:43 +02:00
2024-06-28 10:32:12 +02:00
2024-06-28 00:55:43 +02:00
2024-06-28 00:55:43 +02:00
2024-06-28 00:55:43 +02:00
2024-01-06 10:02:15 -07:00
2024-03-22 11:29:57 +01:00
2024-04-27 18:29:35 -04:00
2024-03-14 10:10:33 +01:00
2024-05-19 17:35:25 +02:00
2024-01-06 10:27:24 -07:00
2024-01-06 09:59:30 -07:00
2024-04-09 09:13:06 +02:00
2024-07-22 21:29:21 -04:00
2024-07-22 21:29:21 -04:00
2024-07-22 21:29:21 -04:00
2024-04-16 07:40:01 +02:00
2024-04-13 09:19:00 -07:00
2024-06-28 10:56:27 +02:00
2023-11-19 22:00:48 +01:00
2024-07-29 09:14:06 -04:00
2024-07-29 09:14:06 -04:00
2024-07-29 09:14:06 -04:00
2024-07-28 14:12:04 -04:00
2024-07-28 14:12:04 -04:00
2023-11-11 08:51:51 +01:00
2024-07-13 22:52:06 -04:00
2024-07-13 22:52:06 -04:00
2024-07-13 22:52:06 -04:00
2024-06-26 20:02:46 +02:00
2024-06-26 20:02:46 +02:00
2024-06-26 20:02:46 +02:00
2024-07-14 16:45:35 -04:00
2024-07-14 16:45:35 -04:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2024-06-26 14:13:20 +02:00
2024-05-26 18:29:24 +02:00
2024-05-26 18:29:24 +02:00
2024-05-26 18:29:24 +02:00
2024-03-16 08:42:33 +01:00
2024-03-16 08:42:33 +01:00
2024-06-26 08:48:11 +02:00
2023-12-17 18:25:10 +03:30
2024-05-07 16:45:28 -06:00
2024-07-14 14:01:11 -04:00
2024-07-28 07:30:26 -04:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-03-11 18:29:10 +01:00
2024-03-11 18:29:10 +01:00
2024-04-15 01:02:51 -07:00
2024-04-15 01:02:51 -07:00
2024-04-15 01:02:51 -07:00
2024-04-27 18:29:35 -04:00
2024-04-11 21:25:06 +02:00
2024-07-22 12:23:12 -04:00
2024-03-28 15:34:52 +01:00
2024-07-28 14:12:04 -04:00
2024-07-28 14:12:04 -04:00
2024-04-01 14:41:00 +02:00
2024-07-14 14:01:11 -04:00
2024-07-14 14:01:11 -04:00
2024-06-08 14:07:38 -04:00
2024-07-14 14:01:11 -04:00
2024-07-14 14:01:11 -04:00
2024-06-08 14:07:38 -04:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2024-07-14 14:01:11 -04:00
2024-07-14 14:01:11 -04:00
2024-10-11 10:12:33 -04:00
2024-07-14 14:01:11 -04:00
2023-10-25 19:45:41 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2023-11-20 15:00:19 +01:00
2024-05-19 16:24:11 +02:00
2024-10-10 10:08:59 -04:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2024-04-24 15:23:45 +02:00
2024-04-24 15:23:45 +02:00
2024-07-23 21:15:27 -04:00
2024-07-14 14:01:11 -04:00
2023-10-25 19:45:41 +02:00
2024-06-28 10:32:12 +02:00
2024-07-13 21:52:41 -04:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-10-10 10:08:59 -04:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2024-03-18 14:06:28 -04:00
2023-11-11 08:51:51 +01:00
2024-07-28 07:32:17 -04:00
2024-07-14 14:01:11 -04:00
2024-06-26 20:02:46 +02:00
2024-04-27 18:29:35 -04:00
2023-12-24 22:49:19 +01:00
2024-05-19 16:24:11 +02:00
2024-04-27 18:29:35 -04:00
2023-12-10 08:07:41 -05:00
2024-05-19 16:24:11 +02:00
2024-10-11 10:12:33 -04:00
2023-11-19 22:00:48 +01:00
2024-07-28 14:12:04 -04:00
2024-07-28 14:12:04 -04:00
2024-05-26 07:47:59 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-07-28 16:44:22 -04:00
2024-07-14 14:01:11 -04:00
2024-07-14 14:01:11 -04:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-10-10 10:08:59 -04:00
2024-01-03 10:13:47 +01:00
2023-10-25 19:45:41 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-06-08 14:07:38 -04:00
2024-06-08 14:07:38 -04:00
2024-07-14 14:01:11 -04:00
2024-07-14 14:01:11 -04:00
2024-06-08 14:07:38 -04:00
2024-09-27 22:27:02 -04:00
2024-06-26 23:09:54 +02:00
2024-07-22 12:23:12 -04:00
2024-10-10 10:08:59 -04:00
2024-09-27 22:27:02 -04:00
2024-06-27 17:13:16 +02:00
2024-05-18 11:04:04 +02:00
2024-05-18 11:04:04 +02:00
2024-05-18 11:04:04 +02:00
2024-04-27 18:29:35 -04:00
2023-12-03 20:29:14 +01:00
2023-12-03 20:29:14 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-09 16:10:54 +01:00
2024-07-14 14:01:11 -04:00
2024-07-14 14:01:11 -04:00
2024-06-27 14:49:29 +02:00
2024-04-27 18:29:35 -04:00
2024-04-24 15:23:45 +02:00
2024-04-24 15:23:45 +02:00
2024-10-11 10:12:33 -04:00
2024-07-28 16:44:22 -04:00
2024-07-28 16:44:22 -04:00
2024-09-29 11:13:23 -04:00
2024-09-29 11:13:23 -04:00
2024-07-28 07:32:58 -04:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-10-11 10:12:33 -04:00
2023-11-19 22:00:48 +01:00
2023-12-03 20:29:14 +01:00
2024-07-13 18:22:04 -04:00
2023-12-10 16:44:12 +01:00
2024-05-18 18:09:18 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-09-27 22:27:02 -04:00
2024-09-27 22:27:02 -04:00
2024-05-21 19:28:43 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-09 16:10:54 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-10-24 07:27:14 +02:00
2024-07-28 12:59:58 -04:00
2024-07-28 12:59:58 -04:00
2024-05-16 08:03:13 +02:00
2024-07-28 13:00:11 -04:00
2024-07-21 11:29:07 -04:00
2024-04-09 09:23:57 +02:00
2024-05-18 11:23:20 +02:00
2024-05-18 11:23:20 +02:00
2024-05-19 16:24:11 +02:00
2024-10-10 10:08:59 -04:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-10-10 10:08:59 -04:00
2024-05-21 19:28:43 +02:00
2024-05-21 19:28:43 +02:00
2024-07-22 21:29:38 -04:00
2024-07-22 21:29:38 -04:00
2024-05-18 18:09:18 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-07-28 07:30:38 -04:00
2024-07-14 14:01:11 -04:00
2024-06-08 14:07:38 -04:00
2024-07-28 12:59:58 -04:00
2024-07-28 12:59:58 -04:00
2024-06-28 00:56:17 +02:00
2024-05-07 16:45:28 -06:00
2024-05-07 16:45:28 -06:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-05-21 19:28:43 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-07-23 08:15:57 -04:00
2024-06-26 14:13:20 +02:00
2024-06-26 14:13:20 +02:00
2023-11-20 00:39:42 +01:00
2023-11-20 00:39:42 +01:00
2024-10-10 10:08:59 -04:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-10-11 10:12:33 -04:00
2023-11-19 22:00:48 +01:00
2024-05-19 17:35:25 +02:00
2024-04-27 18:29:35 -04:00
2023-12-03 20:29:14 +01:00
2023-12-03 20:29:14 +01:00
2024-10-11 10:12:33 -04:00
2024-07-14 14:01:11 -04:00
2023-10-25 19:45:41 +02:00
2024-10-11 10:12:33 -04:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-04-27 18:29:35 -04:00
2024-02-26 19:26:13 +00:00
2023-10-25 19:45:41 +02:00
2024-06-26 08:48:11 +02:00
2024-06-26 08:48:11 +02:00
2024-06-26 08:48:11 +02:00
2024-07-13 21:41:18 -04:00
2024-04-26 20:01:58 +02:00
2024-05-21 19:29:04 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2023-12-24 13:26:50 +01:00
2023-12-02 10:35:43 +01:00
2024-07-14 14:01:30 -04:00
2024-07-14 14:01:11 -04:00
2024-07-21 14:19:52 -04:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-07-14 14:01:11 -04:00
2024-07-14 14:01:11 -04:00
2024-05-21 19:28:43 +02:00
2024-04-27 18:29:35 -04:00
2024-04-08 14:25:36 +02:00
2024-04-08 14:25:36 +02:00
2024-04-27 18:29:35 -04:00
2024-03-30 19:29:14 +01:00
2024-05-19 16:24:11 +02:00
2024-09-27 22:27:02 -04:00
2024-09-27 22:27:02 -04:00
2023-12-01 10:28:02 +01:00
2024-03-18 14:06:28 -04:00
2024-05-30 09:29:20 -06:00
2024-05-04 21:42:59 +02:00
2024-05-30 09:29:20 -06:00
2024-05-19 16:24:11 +02:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-07-14 18:12:26 -04:00
2024-07-14 18:12:26 -04:00
2024-07-14 18:12:26 -04:00
2024-08-13 15:44:49 -04:00
2024-04-19 16:38:55 -04:00
2023-12-20 12:25:40 -07:00
2024-04-27 18:29:35 -04:00
2024-01-12 09:11:18 +01:00
2023-11-11 08:51:51 +01:00
2024-07-28 14:12:04 -04:00
2024-07-28 14:12:04 -04:00
2023-11-11 08:51:51 +01:00
2024-10-03 12:06:45 -04:00
2024-10-03 12:06:45 -04:00
2024-04-26 20:01:58 +02:00
2024-04-08 09:07:18 +02:00
2024-04-16 07:40:01 +02:00
2024-01-19 11:47:59 +01:00
2024-01-18 14:00:06 +01:00
2024-06-28 00:55:02 +02:00
2024-05-29 21:30:15 +02:00
2024-01-18 14:00:06 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-03-16 16:35:54 +01:00
2024-03-18 14:06:28 -04:00
2024-01-18 14:00:06 +01:00
2024-03-27 18:07:07 +01:00
2023-11-19 22:00:48 +01:00
2024-01-18 14:00:06 +01:00
2024-04-24 17:04:43 +02:00
2024-04-22 17:10:11 +02:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-01-18 14:00:06 +01:00
2024-01-18 14:00:06 +01:00
2024-05-29 09:32:59 -06:00
2024-05-29 09:32:59 -06:00
2024-05-29 09:32:59 -06:00
2024-04-27 07:08:14 +02:00
2024-04-06 07:20:22 +02:00
2024-01-18 14:00:06 +01:00
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2024-01-18 14:00:06 +01:00
2023-12-02 22:54:53 +01:00
2023-10-25 19:45:41 +02:00
2024-01-18 14:00:06 +01:00
2024-03-03 10:02:30 -05:00
2024-03-03 10:02:30 -05:00
2024-03-06 07:19:10 +01:00
2024-03-18 14:06:28 -04:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-07-28 14:12:04 -04:00
2024-07-28 14:12:04 -04:00
2023-11-11 08:51:51 +01:00
2024-07-28 14:12:04 -04:00
2024-07-28 14:12:04 -04:00
2023-11-11 08:51:51 +01:00
2024-03-06 07:19:10 +01:00
2024-07-14 16:45:35 -04:00
2024-04-11 21:25:06 +02:00
2024-04-11 21:25:06 +02:00
2024-05-19 16:24:11 +02:00
2024-03-18 14:06:28 -04:00
2024-03-18 14:06:28 -04:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2024-05-07 17:21:52 -06:00
2024-04-19 06:34:07 -04:00
2024-02-26 14:18:49 +01:00
2024-04-08 17:24:48 -04:00
2024-04-08 17:24:48 -04:00
2024-04-13 09:19:00 -07:00
2024-04-13 09:19:00 -07:00
2024-04-17 07:16:52 +02:00
2024-05-30 09:29:20 -06:00
2024-09-27 22:27:02 -04:00
2024-09-27 22:27:02 -04:00
2024-07-28 16:44:00 -04:00
2024-03-18 14:06:28 -04:00
2024-07-28 14:12:04 -04:00
2024-07-28 14:12:04 -04:00
2023-11-11 08:51:51 +01:00
2024-03-30 21:26:37 +01:00
2024-03-20 09:16:01 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-01-18 14:00:06 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-10-25 19:45:41 +02:00
2024-07-28 07:32:58 -04:00
2024-07-28 07:32:58 -04:00
2024-07-28 07:32:58 -04:00
2024-07-14 14:01:30 -04:00
2024-07-14 14:01:30 -04:00
2024-07-14 14:01:30 -04:00
2024-04-17 07:16:52 +02:00
2023-11-19 22:00:48 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-10-11 09:27:51 -04:00
2024-05-30 16:16:33 -04:00
2024-05-30 16:16:33 -04:00
2024-07-14 14:01:30 -04:00
2024-07-14 14:01:30 -04:00
2024-07-14 14:01:30 -04:00
2024-10-03 12:06:45 -04:00
2024-09-13 11:11:24 -04:00
2024-05-29 09:32:59 -06:00
2024-05-29 09:32:59 -06:00
2024-05-29 09:32:59 -06:00
2024-06-27 17:13:16 +02:00
2024-06-27 17:13:16 +02:00
2024-06-27 17:13:16 +02:00
2024-07-04 22:09:32 +02:00
2024-07-04 22:09:32 +02:00
2024-04-26 12:21:57 -04:00
2024-04-26 12:21:57 -04:00
2024-05-30 16:16:33 -04:00
2024-05-30 16:16:33 -04:00
2024-10-11 09:27:51 -04:00
2024-10-11 09:27:51 -04:00
2024-04-14 10:45:43 +02:00
2024-03-11 18:29:10 +01:00
2024-03-11 18:29:10 +01:00
2024-07-28 07:29:31 -04:00
2024-07-13 21:40:50 -04:00
2024-07-13 21:40:50 -04:00
2024-05-04 21:42:59 +02:00
2024-05-04 21:42:59 +02:00
2024-04-27 18:29:35 -04:00
2024-03-18 14:06:28 -04:00
2023-12-25 12:09:11 +01:00
2024-04-19 16:38:55 -04:00
2024-05-30 09:29:20 -06:00
2024-04-21 09:12:25 +02:00
2024-05-04 21:42:59 +02:00
2024-07-22 21:29:21 -04:00
2024-07-22 21:29:21 -04:00
2024-07-22 21:29:21 -04:00
2024-07-28 20:48:58 -04:00
2024-07-28 20:48:58 -04:00
2023-11-11 08:51:51 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00