"When applied to a graphics element or text content element, setting visibility to hidden or collapse results in the element not being painted." (https://svgwg.org/svg2-draft/render.html#VisibilityControl) Test: https://jsfiddle.net/c95k6k9u/2/ Should show nothing but the text: PASS if NOT underline (And the text should not have an underline painted.)
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/32cb486ad01dcc6963ddec89a4d562f60f17e6d9 commit 32cb486ad01dcc6963ddec89a4d562f60f17e6d9 Author: shanmuga.m <shanmuga.m@samsung.com> Date: Thu Jun 09 07:41:38 2016 Handle 'visibility:collapse' for SVG shapes/images/text-decorations SVG shapes/images/text-decoration does not handle 'visibility:collapse' properly. It was just handled only 'visibility:hidden'. BUG= 604687 Review-Url: https://codereview.chromium.org/2042703002 Cr-Commit-Position: refs/heads/master@{#398808} [add] https://crrev.com/32cb486ad01dcc6963ddec89a4d562f60f17e6d9/third_party/WebKit/LayoutTests/svg/custom/visibility-collapse-expected.html [add] https://crrev.com/32cb486ad01dcc6963ddec89a4d562f60f17e6d9/third_party/WebKit/LayoutTests/svg/custom/visibility-collapse.html [modify] https://crrev.com/32cb486ad01dcc6963ddec89a4d562f60f17e6d9/third_party/WebKit/Source/core/paint/SVGImagePainter.cpp [modify] https://crrev.com/32cb486ad01dcc6963ddec89a4d562f60f17e6d9/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp [modify] https://crrev.com/32cb486ad01dcc6963ddec89a4d562f60f17e6d9/third_party/WebKit/Source/core/paint/SVGShapePainter.cpp
Comment 1 by f...@opera.com
, Apr 19 2016