-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: removeHiddenElems - treat <path> with opacity:0 as non-rendering…
… node. (#1948)
- Loading branch information
1 parent
10e5e5e
commit f7436c7
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Preserve referenced path, even when path has opacity=0. | ||
|
||
=== | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<defs> | ||
<path id="path2" d="M200 200 l50 -300" style="opacity:0"/> | ||
</defs> | ||
<text style="font-size:24px;"> | ||
<textPath xlink:href="#path2"> | ||
this is path 2 | ||
</textPath> | ||
</text> | ||
<path id="path1" d="M200 200 l50 -300" style="opacity:0"/> | ||
</svg> | ||
|
||
@@@ | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<defs> | ||
<path id="path2" d="M200 200 l50 -300" style="opacity:0"/> | ||
</defs> | ||
<text style="font-size:24px;"> | ||
<textPath xlink:href="#path2"> | ||
this is path 2 | ||
</textPath> | ||
</text> | ||
</svg> |