SVG <foreignObject> renders the composited child even if its size is zero
https://bugs.webkit.org/show_bug.cgi?id=201946
Summary SVG <foreignObject> renders the composited child even if its size is zero
Said Abou-Hallawa
Reported 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.
Attachments
foreignObject-composited-child (406 bytes, image/svg+xml)
2019-09-18 14:52 PDT, Said Abou-Hallawa
no flags
Said Abou-Hallawa
Comment 2 2019-09-18 16:15:07 PDT
Ahmad Saleem
Comment 3 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!
Note You need to log in before you can comment on or make changes to this bug.