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

Unified Diff: third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-pseudo.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-pseudo.html
diff --git a/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-pseudo.html b/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-pseudo.html
new file mode 100644
index 0000000000000000000000000000000000000000..19ceb88f52c3f17b966df6a862174b15a4dbeaec
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/css/use-replicates-changes-pseudo.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<style>
+#inputValid:valid + svg #r {
+ fill: green;
+}
+#r {
+ fill: red;
+}
+</style>
+<input id="inputValid" required></input>
+<svg width="100" height="100">
+ <use xlink:href="#g" transform="translate(50,50)"></use>
+ <g id="g">
+ <rect id="r" x="0" y="0" width="50" height="50"></rect>
+ </g>
+</svg>
+<script>
+runAfterLayoutAndPaint(function() {
+ inputValid.removeAttribute("required");
+}, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698