| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 2 <head> | 2 <head> |
| 3 <title>foreignObject can be transformed</title> | 3 <title>foreignObject can be transformed</title> |
| 4 <style type="text/css"> | 4 <style type="text/css"> |
| 5 p, div { color: navy; margin: 10px 0; } | 5 p, div { color: navy; margin: 10px 0; } |
| 6 .test { fill: lightgray; font-size: 10px; } | 6 .test { fill: lightgray; font-size: 10px; } |
| 7 .control { position: relative; left: 10px; top: 10px; width: 390px; heig
ht: 110px; background: lightgray; font-size: 100px; } | 7 .control { position: relative; left: 10px; top: 10px; width: 390px; heig
ht: 110px; background: lightgray; font-size: 100px; } |
| 8 .controlText { font-size: 100px; } | 8 .controlText { font-size: 100px; } |
| 9 </style> | 9 </style> |
| 10 </head> | 10 </head> |
| 11 <body> | 11 <body> |
| 12 <p>The word "TEST " should appear twice below, the same size each time.</p> | 12 <p>The word "TEST " should appear twice below, the same size each time.</p> |
| 13 <svg xmlns="http://www.w3.org/2000/svg" width="400" height="120" class="test
"> | 13 <svg xmlns="http://www.w3.org/2000/svg" width="400" height="120" class="test
"> |
| 14 <rect x="1" y="1" width="60" height="12" transform="scale(10)"/> | 14 <rect x="1" y="1" width="60" height="12" transform="scale(10)"/> |
| 15 <foreignObject x="1" y="1" width="60" height="10" transform="scale(10)"> | 15 <foreignObject x="1" y="1" width="60" height="10" transform="scale(10)"> |
| 16 <div xmlns="http://www.w3.org/1999/xhtml"> TEST </div> | 16 <div xmlns="http://www.w3.org/1999/xhtml"> TEST </div> |
| 17 </foreignObject> | 17 </foreignObject> |
| 18 </svg> | 18 </svg> |
| 19 <div class="control"> | 19 <div class="control"> |
| 20 <div class="controlText">TEST</div> | 20 <div class="controlText">TEST</div> |
| 21 </div> | 21 </div> |
| 22 <script> | 22 <script> |
| 23 if (window.testRunner) | 23 if (window.testRunner) |
| 24 window.testRunner.dumpSelectionRect(); | 24 window.testRunner.dumpSelectionRect(); |
| 25 document.execCommand("SelectAll"); | 25 var range = document.createRange(); |
| 26 range.selectNode(window.document.documentElement); |
| 27 var selection = window.getSelection(); |
| 28 selection.removeAllRanges(); |
| 29 selection.addRange(range); |
| 26 </script> | 30 </script> |
| 27 </body> | 31 </body> |
| 28 </html> | 32 </html> |
| OLD | NEW |