Index: third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-class.html |
diff --git a/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-class.html b/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-class.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..878cb46afc8f2fff7d08424ea9bc87123206dd37 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-class.html |
@@ -0,0 +1,33 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<meta charset="utf-8"> |
+<script src="../../resources/run-after-layout-and-paint.js"></script> |
+<style> |
+.a.b .c { |
+ fill: red; |
+} |
+.a .c { |
+ fill: green; |
+} |
+</style> |
+</head> |
+<body> |
+<svg width="50" height="50"> |
+ <use xlink:href="#main"></use> |
+</svg> |
+<svg id="main" width="100" height="100" class="a b"> |
+ <g> |
+ <use xlink:href="#r"></use> |
+ </g> |
+ <defs> |
+ <rect id="r" class="c" x="0" y="0" width="100" height="100"></rect> |
+ </defs> |
+</svg> |
+<script> |
+runAfterLayoutAndPaint(function() { |
+ main.classList.remove('b'); |
+}, true); |
+</script> |
+</body> |
+</html> |