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

Unified Diff: third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-class.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-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..918b6123e2ad48aa3e7f9f8e7c589af4630ab43b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-class.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<style>
+.a.b .c {
+ fill: red;
+}
+.a .c {
+ fill: green;
+}
+</style>
+<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>

Powered by Google App Engine
This is Rietveld 408576698