OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/run-after-layout-and-paint.js"></script> | |
3 <svg> | |
4 <rect id="rect" width="200" height="100"/> | |
pdr.
2016/07/22 01:41:53
Nit: can you make this go from width=0 to width=10
| |
5 <use xlink:href="#rect" fill="green"/> | |
6 </svg> | |
7 <script> | |
8 runAfterLayoutAndPaint(function() { | |
9 var baseElement = document.createElement("base"); | |
10 baseElement.setAttribute("href", "http://www.example.com/"); | |
11 document.head.appendChild(baseElement); | |
12 document.querySelector('#rect').setAttribute("width", "100"); | |
13 }, true); | |
14 </script> | |
OLD | NEW |