serenity/Userland/Libraries
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
..
LibArchive
LibAudio LibAudio: Load WAV metadata 2023-05-31 16:23:07 +02:00
LibC Ports: Add lowdown 1.0.2 2023-06-07 13:44:44 +02:00
LibCards
LibChess
LibCMake
LibCodeComprehension
LibCompress
LibConfig
LibCore LibCore: Ensure exec() keeps a reference to the executable path 2023-06-08 00:11:01 +02:00
LibCoredump LibCoredump: Avoid unnecessary conversion to DeprecatedString 2023-05-27 17:30:55 +02:00
LibCpp
LibCrypt
LibCrypto Kernel: Move Random.{h,cpp} code to Security subdirectory 2023-06-04 21:32:34 +02:00
LibDebug
LibDesktop
LibDeviceTree
LibDiff
LibDNS
LibDSP
LibEDID Everywhere: Move global Kernel pattern code to Kernel/Library directory 2023-06-04 21:32:34 +02:00
LibELF Everywhere: Move global Kernel pattern code to Kernel/Library directory 2023-06-04 21:32:34 +02:00
LibFileSystem LibFileSystem+Everything: Remove resolve_executable_from_environment 2023-06-06 23:46:36 +02:00
LibFileSystemAccessClient FileSystemAccessServer: Don't transmit unused data 2023-05-29 13:17:22 +02:00
LibGemini
LibGfx WebP: Add test for vertical ALPH chunk filtering_method 2023-06-09 04:35:19 -07:00
LibGL
LibGLSL
LibGPU
LibGUI Applications+Demos+LibGUI: Migrate to fallible WizardDialogs and Pages 2023-06-09 17:21:43 +02:00
LibHTTP
LibIDL
LibImageDecoderClient
LibIMAP
LibIPC
LibJS LibJS: Remove unused DeprecatedFile include 2023-06-07 12:55:00 +02:00
LibKeyboard
LibLine LibLine: Ignore ENOENT errors when loading old history 2023-06-03 05:52:52 +02:00
LibLocale
LibMain
LibManual
LibMarkdown
LibPartition LibPartition: Migrate from DeprecatedFile to File 2023-06-05 14:50:09 +02:00
LibPCIDB
LibPDF
LibProtocol
LibRegex
LibSanitizer
LibSoftGPU
LibSQL
LibSymbolication
LibSyntax
LibSystem
LibTest LibTest: Use the 16 standard ANSI colors in status output 2023-05-28 06:31:59 -07:00
LibTextCodec
LibThreading
LibTimeZone
LibTLS
LibUnicode
LibUSBDB
LibVideo Everywhere: Only use local includes where appropriate 2023-06-06 23:19:50 +02:00
LibVirtGPU
LibVT
LibWasm LibWasm: Create AK::StackInfo once per AbstractMachine 2023-05-28 13:20:56 +02:00
LibWeb LibWeb: Obey CSS aspect-ratio property during layout 2023-06-09 20:37:51 +02:00
LibWebSocket
LibWebView Browser+Ladybird+LibWebView: Consolidate title handling in LibWebView 2023-06-08 07:21:08 +02:00
LibX86
LibXML LibXML: Prevent entering the root node of an SVG document twice 2023-06-09 01:12:48 +02:00
CMakeLists.txt