1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-15 09:51:00 +00:00
serenity/Tests/LibWeb
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
..
Layout LibWeb: Obey CSS aspect-ratio property during layout 2023-06-09 20:37:51 +02:00
Text LibWeb: Remove outdated layout/text test scripts 2023-06-09 20:36:54 +02:00
CMakeLists.txt LibWeb+Tests: Demonstrate slowness of CSS::value_id_from_string 2023-01-14 15:43:27 -07:00
rebaseline-libweb-test Tests/LibWeb: Import my test rebaselining script 2023-06-01 08:26:33 +02:00
TestCSSIDSpeed.cpp LibWeb: Make value_id_from_string() return Optional 2023-05-25 06:36:10 +02:00
TestHTMLTokenizer.cpp Everywhere: Remove unintentional partial stream reads and writes 2023-03-13 15:16:20 +00:00
tokenizer-test.html LibWeb: Fix assertion failure when tokenizing JS regex literals 2021-07-15 01:47:22 +02:00