Percentage widths and heights should work inside of svg:foreignObject, since it does have fixed width and height. Patch and testcase coming.
Created attachment 213157 [details] [diff] [review] patch This pulls forward some things that I'd done on the reflow branch and does them a good bit better than what I have there. There are still bugs as described by the "XXXldb" comment, but that's probably better fixed in a separate patch (probably that reflows foreignObject descendants at Reflow time).
Can't you use nsAutoSpaceManager here?
I started to use nsAutoSpaceManager, but realized there wasn't much point, since we always create a space manager, and most of the work it does is to deal with the case of sometimes creating a space manager.
Created attachment 213304 [details] testcase (not simplified)
Attachment #213156 - Attachment is obsolete: true
Comment on attachment 213157 [details] [diff] [review] patch ah right. Thanks
Checked in to trunk.
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
Filed bug 328829 as the followup issue on style changes requiring reflow.
You need to log in before you can comment on or make changes to this bug.