Aliaksandr Kalenik
5f74da6ae8
LibWeb: Fix "box-sizing: border-box" resolution for abspos items
...
The `calculate_inner_width()` and `calculate_inner_height()` resolve
percentage paddings using the width returned by
`containing_block_width_for()`. However, this function does not account
for grids where the containing block is defined by the grid area to
which an item belongs.
This change fixes the issue by modifying `calculate_inner_width()` and
`calculate_inner_height()` to use the already resolved paddings from the
layout state. Corresponding changes ensure that paddings are resolved
and saved in the state before box-sizing is handled.
As a side effect, this change also improves abspos layout for BFC where
now paddings are resolved using padding box of containing block instead
of content box of containing block.
2024-09-17 07:56:18 +02:00
..
2024-07-17 18:00:18 +02:00
2023-10-21 09:08:51 +02:00
2024-09-17 07:51:50 +02:00
2024-09-15 18:00:08 +02:00
2024-09-12 21:07:41 +02:00
2023-10-31 08:46:17 +01:00
2024-09-17 07:56:18 +02:00
2024-01-13 10:53:38 +01:00
2024-09-12 07:36:32 +02:00
2024-01-16 13:13:47 +01:00
2024-01-16 13:13:47 +01:00
2024-01-16 13:13:47 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2023-12-16 19:39:44 +01:00
2024-01-13 10:53:38 +01:00
2024-01-16 13:13:47 +01:00
2024-01-16 13:13:47 +01:00
2023-08-20 05:02:59 +02:00
2024-01-13 10:53:38 +01:00
2024-01-16 13:13:47 +01:00
2024-01-16 13:13:47 +01:00
2024-01-13 10:53:38 +01:00
2023-08-20 05:02:59 +02:00
2023-08-20 05:02:59 +02:00
2024-01-13 10:53:38 +01:00
2024-01-17 15:15:06 +01:00
2024-01-05 22:52:25 +01:00
2024-02-21 10:06:19 +01:00
2024-01-13 10:53:38 +01:00
2024-01-17 17:26:55 +01:00
2024-07-18 09:05:37 +02:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-07-25 13:12:26 +02:00
2024-09-09 11:41:10 +02:00
2024-09-09 11:41:10 +02:00
2024-09-09 22:05:30 +02:00
2024-01-13 10:53:38 +01:00
2023-10-29 09:43:13 +01:00
2024-01-13 10:53:38 +01:00
2023-11-22 09:45:51 +01:00
2023-11-22 09:45:51 +01:00
2023-12-26 11:13:38 +01:00
2024-01-16 13:13:47 +01:00
2024-01-16 13:13:47 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-16 13:13:47 +01:00
2024-01-06 21:06:21 +01:00
2024-01-13 10:53:38 +01:00
2024-08-29 07:00:00 +02:00
2024-01-13 10:53:38 +01:00
2023-11-22 09:45:51 +01:00
2023-08-20 05:02:59 +02:00
2024-08-16 22:28:34 +02:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-07-15 21:31:51 +02:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-16 21:54:23 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2023-10-24 07:25:20 +02:00
2023-08-20 05:02:59 +02:00
2023-10-24 07:25:20 +02:00
2023-08-20 05:02:59 +02:00
2024-01-13 10:53:38 +01:00
2023-10-27 07:14:34 +02:00
2024-09-13 11:59:51 +02:00
2024-01-13 10:53:38 +01:00
2024-09-10 10:40:07 +01:00
2024-09-10 10:40:07 +01:00
2024-09-10 10:40:07 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-09-04 22:41:15 +02:00
2024-09-13 11:59:51 +02:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2023-08-20 05:02:59 +02:00
2024-01-13 10:53:38 +01:00
2023-11-22 09:45:51 +01:00
2024-01-13 10:53:38 +01:00
2024-01-16 13:13:47 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-16 13:13:47 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-03-06 07:23:27 +01:00
2024-03-06 07:23:27 +01:00
2024-03-06 07:23:27 +01:00
2024-03-06 07:23:27 +01:00
2024-03-06 07:23:27 +01:00
2024-03-06 07:23:27 +01:00
2024-01-16 13:13:47 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-02-11 17:51:50 +01:00
2023-11-22 09:45:51 +01:00
2024-01-13 10:53:38 +01:00
2023-10-31 07:08:30 +01:00
2024-08-31 07:47:20 +02:00
2023-08-20 05:02:59 +02:00
2024-01-16 13:13:47 +01:00
2024-01-16 13:13:47 +01:00
2024-01-13 10:53:38 +01:00
2024-01-16 13:13:47 +01:00
2024-01-16 13:13:47 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-16 13:13:47 +01:00
2024-01-16 13:13:47 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00
2024-01-13 10:53:38 +01:00