[Webkit-unassigned] [Bug 277228] filters are not inherited by children when one of the children is a block element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 29 13:16:14 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=277228

--- Comment #5 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
This combination is the problem:

<a class="inline-parent" href="https://w3.org/">
    <div>
        <span>TEST</span>
    </div>
</a>

The bounding box of the <a> element is zero since its renderer is RenderInline and it has no inline children. So we fail to create a sourceImage for the filtered element.

If the inner <div> element becomes inline, the filter will be drawn. This can be done by adding `style="display: inline-block;"` to the inner <div> element: 

<a class="inline-parent" href="https://w3.org/">
    <div style="display: inline-block;">
        <span>TEST</span>
    </div>
</a>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240729/2bdbcff3/attachment.htm>


More information about the webkit-unassigned mailing list