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

Unified Diff: third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-inline.html

Issue 2251073002: CSS: SVG use elements replicate updates to style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 years, 4 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/css/use-replicates-changes-inline.html
diff --git a/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-inline.html b/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-inline.html
new file mode 100644
index 0000000000000000000000000000000000000000..2f41f28891435e5bbc6a2f6422ee3f53e2820729
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-inline.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<style>
+ rect {
+ fill: red;
+ }
+</style>
+<svg width="100" height="100">
+ <g>
+ <use xlink:href="#r"></use>
+ </g>
+ <defs>
+ <rect id="r" x="0" y="0" width="100" height="100"></rect>
+ </defs>
+</svg>
+<script>
+runAfterLayoutAndPaint(function() {
+ r.style.fill = 'green';
+}, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698