Skip to content

Commit 34a66f0

Browse files
emiliomoz-wptsync-bot
authored andcommitted
SVG text shouldn't allow generated content.
Restores pre-regression and interoperable behavior. Pull request: mozilla-firefox/firefox#342 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2065136 gecko-commit: eb12e80b6c5cd8340aa47bf40131e062bb95907f gecko-commit-git: b9537570d78577ed7f170bd85395c1034bb5ec76 gecko-reviewers: dshin
1 parent 8f1efd2 commit 34a66f0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=2065136">
3+
<style>
4+
#outer {
5+
position: relative;
6+
}
7+
text::before {
8+
position: absolute;
9+
content: "FOO";
10+
}
11+
</style>
12+
<div id="outer">
13+
<svg width=100 height=100>
14+
<text x=0 y=50 fill=red>ABC</text>
15+
</svg>
16+
</div>
17+
<script>
18+
let svg = document.querySelector("svg");
19+
svg.getBoundingClientRect();
20+
svg.remove();
21+
</script>

0 commit comments

Comments
 (0)