Aliaksandr Kalenik
7e2308d290
LibWeb: Treat null as empty string in CSSStyleDeclaration::internal_set
...
Spec defines `[LegacyNullToEmptyString]` on `value` argument of
`setProperty` but since `internal_set` calls `setProperty` directly
instead of using IDL generated binding, we need to make sure that null
is treated as empty string.
Fixes items grid loading on https://d.rsms.me/stuff/
2024-01-21 21:03:39 +01:00
Aliaksandr Kalenik
c1161111a7
LibWeb: Stop assuming navigable's existance in FrameBox
...
If the loading of iframe's navigable has not finished by the time
FrameBox layout occurs, we should not crash.
Fixes https://github.com/SerenityOS/serenity/issues/22874
2024-01-20 20:34:30 +00:00
Aliaksandr Kalenik
64a48065b0
LibWeb: Check if corners have radius after converting to device pixels
...
Check needs to happen after conversion because non-zero radius in
CSSPixels could turn into zero in device pixels.
Fixes https://github.com/SerenityOS/serenity/issues/22765
2024-01-15 15:21:17 +01:00
Andreas Kling
3ac77dac99
Tests/LibWeb: Remove the "scroll.html" layout test for now
...
This test is flaky, so let's remove it until we have a stable version.
2023-11-06 09:42:41 +01:00
Andreas Kling
c01c4b41e2
LibWeb: Add ViewportPaintable to represent viewports in the paint tree
...
This patch just adds the new root paintable and updates the tests
expectations. The next patch will move painting logic from the layout
viewport to the paint viewport.
2023-08-20 05:02:59 +02:00
Aliaksandr Kalenik
dc08e9138c
LibWeb/Tests: Add basic test for Element::scroll(x, y)
2023-08-07 05:23:31 +02:00
Andreas Kling
09eed8eea2
LibWeb+headless-browser: Include paint tree in layout test output
...
This will give us a more comprehensive look at what actually gets
rendered in the end, and also allows us to catch more behavior changes.
2023-08-03 13:21:26 +02:00
Andi Gallo
db121c7af1
LibWeb: Handle leading whitespace in grid-template-* block components
...
We're already handling whitespace between components, do the same for
leading whitespace. Fixes crash on https://distill.pub/2021/gnn-intro .
2023-06-18 13:41:15 +02:00
Andreas Kling
6cb9d755d9
LibWeb: Don't crash on percentage values for CSS stroke-width
...
Fixes a crash when loading https://vercel.com/
2023-05-21 12:40:27 +02:00