This is a bug in the fast-path in LayoutSVGResourceClipper, where only SVGGeometryElements ae considered inside SVGUseElement::toClipPath. https://jsfiddle.net/1qh67fdL/1/
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e139f0e0cd2bcb12d398d05a3ddaf32de010477b commit e139f0e0cd2bcb12d398d05a3ddaf32de010477b Author: fs <fs@opera.com> Date: Wed Dec 07 14:16:05 2016 Don't allow <use> <text> references in clip-path fast-path The fast-path can't handle <text>, but a <use> referencing <text> was not properly checked resulting in an incorrect clip. Make the requiresMask(...) helper handle <use> elements and check the referenced element. BUG= 604677 , 604679 Review-Url: https://codereview.chromium.org/2560773002 Cr-Commit-Position: refs/heads/master@{#436941} [add] https://crrev.com/e139f0e0cd2bcb12d398d05a3ddaf32de010477b/third_party/WebKit/LayoutTests/svg/clip-path/clip-path-use-referencing-clipped-text-expected.html [add] https://crrev.com/e139f0e0cd2bcb12d398d05a3ddaf32de010477b/third_party/WebKit/LayoutTests/svg/clip-path/clip-path-use-referencing-clipped-text.html [add] https://crrev.com/e139f0e0cd2bcb12d398d05a3ddaf32de010477b/third_party/WebKit/LayoutTests/svg/clip-path/clip-path-use-referencing-text-expected.html [add] https://crrev.com/e139f0e0cd2bcb12d398d05a3ddaf32de010477b/third_party/WebKit/LayoutTests/svg/clip-path/clip-path-use-referencing-text.html [modify] https://crrev.com/e139f0e0cd2bcb12d398d05a3ddaf32de010477b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
Comment 1 by f...@opera.com
, Apr 19 2016