Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SVG Text NG: Fix text scaling by :root scaling changes
Scaling changes on :root should trigger layout of SVG <text>s. This CL fixes a regression by crrev.com/1011855. Bug: 1365243 Change-Id: Ied64facb518b9534567609961d37fbe6dcc2d3b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4113625 Auto-Submit: Kent Tamura <tkent@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1084853}
- Loading branch information
1 parent
085d048
commit a4da97d
Showing
3 changed files
with
31 additions
and
1 deletion.
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
6 changes: 6 additions & 0 deletions
6
...rty/blink/web_tests/external/wpt/svg/text/reftests/transform-dynamic-change-root-ref.html
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,6 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<svg><text y=30>Text</text></svg> | ||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
...d_party/blink/web_tests/external/wpt/svg/text/reftests/transform-dynamic-change-root.html
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,20 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
<link rel="help" href="https://crbug.com/1365243"> | ||
<link rel="match" href="transform-dynamic-change-root-ref.html"> | ||
<style> | ||
:root { scale: 1 5; } | ||
</style> | ||
|
||
<body> | ||
<svg><text y=30>Text</text></svg> | ||
<script> | ||
requestAnimationFrame(() => { | ||
requestAnimationFrame(() => { | ||
document.styleSheets[0].removeRule(0); | ||
document.documentElement.classList.remove('reftest-wait'); | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |