Sam Atkins
1051624084
LibWeb: Obey CSS aspect-ratio property during layout
...
Calculate a "preferred aspect ratio" based on the value of
`aspect-ratio` and the presence of a natural aspect ratio, and use that
in layout.
This is by no means complete or perfect, but we do now apply the given
aspect-ratio to things.
The spec is a bit vague, just saying to calculate sizes for
aspect-ratio'ed boxes the same as you would for replaced elements. My
naive solution here is to find everywhere we were checking for a
ReplacedBox, and then also accept a regular Box with a preferred aspect
ratio. This gets us pretty far. :^)
https://www.w3.org/TR/css-sizing-4/#aspect-ratio-minimum is not at all
implemented.
2023-06-09 20:37:51 +02:00
..
2023-06-07 11:20:42 +02:00
2023-06-08 13:54:11 +02:00
2023-06-08 07:14:47 +02:00
2023-05-21 12:40:27 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-07 06:28:47 +02:00
2023-06-01 18:13:42 +02:00
2023-06-09 20:37:51 +02:00
2023-06-09 20:37:51 +02:00
2023-06-09 20:37:51 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-05-29 21:36:17 +02:00
2023-05-03 13:14:36 +02:00
2023-05-17 07:40:17 +02:00
2023-06-02 20:03:28 +02:00
2023-05-03 20:44:30 +02:00
2023-05-03 20:44:30 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 20:44:30 +02:00
2023-05-03 13:14:36 +02:00
2023-05-29 21:36:17 +02:00
2023-05-29 21:36:17 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-03 13:14:36 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-03 13:14:36 +02:00
2023-06-01 13:33:35 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 20:44:30 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-10 17:27:07 +02:00
2023-05-24 14:40:35 +02:00
2023-05-03 13:14:36 +02:00
2023-05-09 12:11:28 +02:00
2023-06-05 09:00:00 +02:00
2023-05-27 16:02:33 +02:00
2023-05-25 14:42:24 +02:00
2023-05-30 21:28:18 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-06-01 09:20:05 +02:00
2023-05-03 13:14:36 +02:00
2023-06-02 17:46:35 +02:00
2023-05-03 20:44:30 +02:00
2023-05-28 12:11:10 +02:00
2023-06-01 09:06:13 +02:00
2023-05-03 20:44:30 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-05-17 20:37:29 +02:00
2023-05-17 20:37:29 +02:00
2023-05-03 20:44:30 +02:00
2023-06-08 13:54:11 +02:00
2023-05-26 21:20:56 +02:00
2023-05-30 10:09:47 +02:00
2023-05-24 14:40:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-02 05:21:22 +02:00
2023-05-15 19:31:09 +02:00
2023-06-01 18:13:42 +02:00
2023-05-31 10:56:32 +02:00