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

Side by Side 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: instance not <use> subtree 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../resources/run-after-layout-and-paint.js"></script>
6 <style>
7 .a.b .c {
8 fill: red;
9 }
10 .a .c {
11 fill: green;
12 }
13 </style>
14 </head>
15 <body>
16 <svg width="50" height="50">
17 <use xlink:href="#main"></use>
18 </svg>
19 <svg id="main" width="100" height="100" class="a b">
20 <g>
21 <use xlink:href="#r"></use>
22 </g>
23 <defs>
24 <rect id="r" class="c" x="0" y="0" width="100" height="100"></rect>
25 </defs>
26 </svg>
27 <script>
28 runAfterLayoutAndPaint(function() {
29 main.classList.remove('b');
30 }, true);
31 </script>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698