Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 23bb224c5de47acfb0ec4de735615ff1520606de
      
https://github.com/WebKit/WebKit/commit/23bb224c5de47acfb0ec4de735615ff1520606de
  Author: Karl Dubost <[email protected]>
  Date:   2026-06-24 (Wed, 24 Jun 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/filtered-inline-applies-to-block-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/filtered-inline-applies-to-block-ref.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/filtered-inline-applies-to-block.html

  Log Message:
  -----------
  filter on an inline element does not apply to a block-level descendant
https://bugs.webkit.org/show_bug.cgi?id=277228
rdar://132671670

Reviewed by Simon Fraser.

This adds a WPT test for the case where a filter set on an inline
element should apply to a block-level descendant, even when the inline
ancestor has no inline children of its own. The CSS `filter` property
is non-inherited per css-filter-effects-1 — the descendants are not
"inheriting" the filter; the filter applies to the element together
with its painting subtree, which includes the block descendant and its
own inline grandchild.

The shape exercised is:
    <a filter> → <div> → <span class="box">

With the bug, the inline `<a>` had a zero bounding box (RenderInline
with no inline children), so the source image was never built and the
descendant never rendered through the filter. It is now fixed in
WebKit, but no WPT test guarded the regression.

* 
LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/filtered-inline-applies-to-block-expected.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/filtered-inline-applies-to-block-ref.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/filtered-inline-applies-to-block.html:
 Added.

Canonical link: https://commits.webkit.org/315788@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to