ladybird/Tests/LibWeb
Aliaksandr Kalenik 863416e3ac LibWeb: Make FC of containing block responsible for abspos layout
Before this change, a formatting context was responsible for layout of
absolutely positioned boxes whose FC root box was their parent (either
directly or indirectly). This only worked correctly when the containing
block of the absolutely positioned child did not escape the FC root.
This is because the width and height of an absolutely positioned box are
resolved based on the size of its containing block, so we needed to
ensure that the containing block's layout was completed before laying
out an absolutely positioned box.

With this change, the layout of absolutely positioned boxes is delayed
until the FC responsible for the containing block's layout is complete.
This has affected the way we calculate the static position. It is no
longer possible to ask the FC for a box's static position, as this FC's
state might be gone by the time the layout for absolutely positioned
elements occurs. Instead, the "static position rectangle" (a concept
from the spec) is saved in the layout state, along with information on
how to align the box within this rectangle when its width and height are
resolved.
2024-09-12 07:36:32 +02:00
..
Layout LibWeb: Make FC of containing block responsible for abspos layout 2024-09-12 07:36:32 +02:00
Ref LibWeb: Use transform-box for resolving percentage transform values 2024-09-05 19:22:26 +02:00
Screenshot LibWeb: Add tests for ellipses with varying angles and directions 2024-09-07 11:11:31 +02:00
Text LibWeb/CSS: Implement revert-layer 2024-09-11 22:30:20 +01:00
add_libweb_test.py Tests/LibWeb: Add a script to create a new test, starting with Text 2024-04-10 17:17:40 -06:00
CMakeLists.txt Tests: Convert Swift tests to use Testing module where possible 2024-08-28 21:27:35 -06:00
rebaseline-libweb-test Tests: Allow specifying a build preset for rebaseline-libweb-test 2024-09-08 09:46:56 +02:00
TestConfig.ini LibWeb: Disable worker-blob and worker-location tests for now 2024-09-06 16:58:52 -04:00
TestCSSIDSpeed.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
TestCSSPixels.cpp LibWeb: Remove rounding division for CSSPixels 2024-01-06 21:40:27 +01:00
TestFetchInfrastructure.cpp LibWeb: Remove OOM propagation from Fetch::Infrastructure::HTTP 2024-04-27 07:08:14 +02:00
TestFetchURL.cpp LibWeb/Fetch: Use MimeType in DataURL 2024-06-02 19:55:53 +02:00
TestHTMLTokenizer.cpp Everywhere: Remove Serenity specific code from tests 2024-07-05 07:29:51 +02:00
TestHTMLTokenizerSwift.swift LibWeb: Implement the Data state for the Swift tokenizer 2024-08-29 06:31:25 +02:00
TestLibWebSwiftBindings.swift Tests: Convert Swift tests to use Testing module where possible 2024-08-28 21:27:35 -06:00
TestMicrosyntax.cpp LibWeb: Add test for week_number_of_the_last_day microsyntax 2023-12-11 14:04:27 -07:00
TestMimeSniff.cpp LibWeb/MimeSniff: Implement "minimize a supported MIME type" 2024-05-19 16:25:50 +02:00
TestNumbers.cpp LibWeb: Add “valid floating-point number” for HTMLInputElement.value 2024-08-28 07:49:17 -04:00
tokenizer-test.html LibWeb: Fix assertion failure when tokenizing JS regex literals 2021-07-15 01:47:22 +02:00