| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!-- | 2 <!-- |
| 3 Verify default overflow rules on foreignObject | 3 Verify default overflow rules on foreignObject |
| 4 You should see a 300x300 green rectangle at 100x100 and no scrollbars. | 4 You should see a 300x300 green rectangle at 100x100 and no scrollbars. |
| 5 | |
| 6 NOTE: This is currently BROKEN in WebKit. We're clipping the viewport of <forei
gnObject> correctly, | |
| 7 though for each positioned object a Layer is created, that has no knownle
dge of the | |
| 8 size of the <foreignObject> viewport - as <foreignObject> doesn't create
a Layer. | |
| 9 So for now, you'll see an unclipped content area, just as if overflow was
visible. | |
| 10 --> | 5 --> |
| 11 <svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml
" width="500" height="500"> | 6 <svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml
" width="500" height="500"> |
| 12 <foreignObject x="100" y="100" width="300" height="300"> | 7 <foreignObject x="100" y="100" width="300" height="300"> |
| 13 <html:div style="border: solid; position: absolute; width:6000px; height
:6000px;background-color: green;"/> | 8 <html:div style="border: solid; position: absolute; width:6000px; height
:6000px;background-color: green;"/> |
| 14 </foreignObject> | 9 </foreignObject> |
| 15 </svg> | 10 </svg> |
| OLD | NEW |