WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 201946
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
Details
View All
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2019-09-18 15:00:23 PDT
Related WPT tests:
https://wpt.fyi/results/svg/extensibility/foreignObject/composited-inside-object.html?label=master&label=experimental&aligned
https://wpt.fyi/results/svg/extensibility/foreignObject/compositing-backface-visibility.html?label=master&label=experimental&aligned
https://wpt.fyi/results/svg/extensibility/foreignObject/position-svg-root-in-foreign-object.html?label=master&label=experimental&aligned
Said Abou-Hallawa
Comment 2
2019-09-18 16:15:07 PDT
This might be a duplicate of
https://bugs.webkit.org/show_bug.cgi?id=201110
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.
Top of Page
Format For Printing
XML
Clone This Bug