Bug 201946 - SVG <foreignObject> renders the composited child even if its size is zero
Summary: SVG <foreignObject> renders the composited child even if its size is zero
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 200143
  Show dependency treegraph
 
Reported: 2019-09-18 14:52 PDT by Said Abou-Hallawa
Modified: 2022-09-22 16:21 PDT (History)
3 users (show)

See Also:


Attachments
foreignObject-composited-child (406 bytes, image/svg+xml)
2019-09-18 14:52 PDT, Said Abou-Hallawa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2019-09-18 14:52:06 PDT
Created attachment 379076 [details]
foreignObject-composited-child

Open the attached test case:

Result: The text "Test" appears twice: one inside a box and the other without a box.
Expected:  The text "Test" appears only once inside a box.

The test case has two <foreignObject> elements.

-- The first one has the dimension of 100x100. Inside this <foreignObject>, there is a <div> element with the text "Test". The border of <foreignObject> and the text of the <div> appear as expected.
-- The second one has the dimension of 0x0. Inside this <foreignObject>, there is a <div> element with the text "Test". The <div> element has the style="will-change: transform". The border of <foreignObject> does not appear as expected. But the text of the <div> element appears.
Comment 2 Said Abou-Hallawa 2019-09-18 16:15:07 PDT
This might be a duplicate of https://bugs.webkit.org/show_bug.cgi?id=201110
Comment 3 Ahmad Saleem 2022-09-22 16:21:34 PDT
All browsers differ from each other in this test case:

*** Safari Technology Preview 154 ***

Two "test" while first being in square / box

*** Chrome Canary 108 ***

Only single "test" in square / box

*** Firefox Nightly 107 ***

Just written "Test" but not in bordered square / box like other.

_____

Just wanted to share updated test results. Thanks!