Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Unified Diff: third_party/WebKit/LayoutTests/svg/text/text-positioning-mutate-textnode.html

Issue 1854123002: Rebuild layout attributes on layout instead of on layout tree updates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/text/text-positioning-mutate-textnode.html
diff --git a/third_party/WebKit/LayoutTests/svg/text/text-positioning-mutate-textnode.html b/third_party/WebKit/LayoutTests/svg/text/text-positioning-mutate-textnode.html
new file mode 100644
index 0000000000000000000000000000000000000000..2808c1f4c565fc431573a08e23e4912772b5f89e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/text/text-positioning-mutate-textnode.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<svg width="400px" height="400px">
+ <text font-size="40">
+ <tspan dy="40">1</tspan>
+ <tspan dy="40">4</tspan>
+ </text>
+</svg>
+<script>
+runAfterLayoutAndPaint(function() {
+ var tspans = document.querySelectorAll('tspan');
+ tspans[0].textContent = '123';
+ tspans[1].textContent = '456';
+}, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698