Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 67eb0d13a0dd4eae5a820cc626fa7f340c012184
https://github.com/WebKit/WebKit/commit/67eb0d13a0dd4eae5a820cc626fa7f340c012184
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/background-image-no-repeat-does-not-wrap-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/background-image-no-repeat-does-not-wrap-ref.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/background-image-no-repeat-does-not-wrap.html
M Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp
Log Message:
-----------
[GTK][WPE] Thin line of the opposite edge painted along scaled or transformed
no-repeat background images
https://bugs.webkit.org/show_bug.cgi?id=324961
Reviewed by Carlos Garcia Campos.
Composited background images were always drawn with a repeating shader, even
when the image does _not_ repeat. Whenever such an image is filtered, e.g.
under a scale or a fractional translation, sampling past its edge picks up
the opposite edge, painting a thin line of it along the border. The fix is
to only repeat tiles that actually repeat and clamp the rest.
This fixes the yellow line artifact above the gun in the CSS FPS example.
Added a new WPT test to cover this issue.
Test:
imported/w3c/web-platform-tests/css/css-backgrounds/background-image-no-repeat-does-not-wrap.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/background-image-no-repeat-does-not-wrap-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/background-image-no-repeat-does-not-wrap-ref.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/background-image-no-repeat-does-not-wrap.html:
Added.
* Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp:
(WebCore::SkiaCompositingLayer::paintContents):
Canonical link: https://commits.webkit.org/321709@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications