Andreas Kling
1a6a4ca7d4
LibWeb: Round lengths to 3 decimals after resolving from percentage
...
This is a hack to emulate the behavior of other engines that use
fixed-point math. By rounding to 3 decimals, we retain a fair amount of
detail, while still allowing overshooting 100% without breaking lines.
This is both gross and slow, but it fixes real sites. Notably, the
popular Bootstrap library uses overshooting percentages in their
12-column grid system.
This hack can be removed when CSSPixels is made a fixed-point type.
2023-06-01 18:13:42 +02:00
..
2023-05-29 21:29:25 +02:00
2023-06-01 15:11:48 +02:00
2023-06-01 18:13:42 +02:00
2023-05-21 12:40:27 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-07 06:28:47 +02:00
2023-06-01 18:13:42 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-05-29 21:36:17 +02:00
2023-05-03 13:14:36 +02:00
2023-05-17 07:40:17 +02:00
2023-05-03 20:44:30 +02:00
2023-05-03 20:44:30 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 20:44:30 +02:00
2023-05-03 13:14:36 +02:00
2023-05-29 21:36:17 +02:00
2023-05-29 21:36:17 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-03 13:14:36 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-03 13:14:36 +02:00
2023-06-01 13:33:35 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 20:44:30 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-10 17:27:07 +02:00
2023-05-24 14:40:35 +02:00
2023-05-03 13:14:36 +02:00
2023-05-09 12:11:28 +02:00
2023-05-27 16:02:33 +02:00
2023-05-25 14:42:24 +02:00
2023-05-30 21:28:18 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-06-01 09:20:05 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 20:44:30 +02:00
2023-05-28 12:11:10 +02:00
2023-06-01 09:06:13 +02:00
2023-05-03 20:44:30 +02:00
2023-05-03 13:14:36 +02:00
2023-05-03 13:14:36 +02:00
2023-05-17 20:37:29 +02:00
2023-05-17 20:37:29 +02:00
2023-05-03 20:44:30 +02:00
2023-05-26 21:20:56 +02:00
2023-05-30 10:09:47 +02:00
2023-05-24 14:40:35 +02:00
2023-06-01 13:33:35 +02:00
2023-05-15 19:31:09 +02:00
2023-06-01 18:13:42 +02:00
2023-05-31 10:56:32 +02:00