mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
863416e3ac
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. |
||
---|---|---|
.. | ||
Layout | ||
Ref | ||
Screenshot | ||
Text | ||
add_libweb_test.py | ||
CMakeLists.txt | ||
rebaseline-libweb-test | ||
TestConfig.ini | ||
TestCSSIDSpeed.cpp | ||
TestCSSPixels.cpp | ||
TestFetchInfrastructure.cpp | ||
TestFetchURL.cpp | ||
TestHTMLTokenizer.cpp | ||
TestHTMLTokenizerSwift.swift | ||
TestLibWebSwiftBindings.swift | ||
TestMicrosyntax.cpp | ||
TestMimeSniff.cpp | ||
TestNumbers.cpp | ||
tokenizer-test.html |