mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-23 09:22:30 +00:00
Instead of trying to manually determine which parts of a bitmap fall within the box of the `<img>` element, just draw the whole bitmap and let Skia clip the draw-area to the correct rectangle. This fixes a bug where the entire bitmap was squashed into the rectangle of the image box instead of being clipped. With this change, image rendering is now correct enough to import some of the WPT tests for object-fit and object-position. To get some good coverage I have imported all tests for the `<img>` tag. I also wanted to import a subset of the tests for the `<object>` tag, since those are passing as well now. Unfortunately, they are flaky for unknown reasons. This is the second attempt at this bugfix. The prior one was |
||
---|---|---|
.. | ||
support | ||
object-fit-contain-png-001-ref.html | ||
object-fit-contain-png-002-ref.html | ||
object-fit-cover-png-001-ref.html | ||
object-fit-cover-png-002-ref.html | ||
object-fit-fill-png-001-ref.html | ||
object-fit-fill-png-002-ref.html | ||
object-fit-none-png-001-ref.html | ||
object-fit-none-png-002-ref.html | ||
object-fit-scale-down-png-001-ref.html | ||
object-fit-scale-down-png-002-ref.html | ||
object-position-png-001-ref.html | ||
object-position-png-002-ref.html |