mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 12:27:35 +00:00

There are two parts to this fix: - First, StyleProperties::transformations() would previously omit calc() values entirely when returning the list of transformations. This was very confusing to StackingContext which then tried to index into the list based on faulty assumptions. Fix this by emitting calc values. - Second, StackingContext::get_transformation_matrix() now always calls resolve() on length-percentages. This takes care of actually resolving calc() values. If no reference value for percentages is provided, we default to 0px. This stops LibWeb from asserting on websites with calc() in transform values, such as https://qt.io/ :^)
3 lines
230 B
Text
3 lines
230 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
|
BlockContainer <body> at (9,9) content-size 100x100 children: not-inline
|