Summary: | <object> tags should treat width/height on a referenced SVG as intrinsic width/height | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> | ||||
Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | hyatt, jamesr, jeffschiller, leviw, pascal22p, zimmermann | ||||
Priority: | P2 | ||||||
Version: | 420+ | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
Bug Depends on: | 10526, 12207, 15849 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Eric Seidel (no email)
2006-12-26 00:04:20 PST
Created attachment 12026 [details]
test case to demonstrate the desired behavior
I should note, that I know of no browser which behaves the way this test case expects it to be have. Opera does not seem to use width for intrinsic size (at least 9.01 does not). Opera does seem to use the height attribute on the SVG for intrinsic height however.
Either way, this should be done after the SVGRenderRoot split, bug 12207. (In reply to comment #1) > Created an attachment (id=12026) [edit] > test case to demonstrate the desired behavior > > I should note, that I know of no browser which behaves the way this test case > expects it to be have. Opera does not seem to use width for intrinsic size (at > least 9.01 does not). Opera does seem to use the height attribute on the SVG > for intrinsic height however. I am not sure this testcase is correct. Needs discussion with Eric I think. Cheers, Rob. I think this is basically the same bug as: http://bugs.webkit.org/show_bug.cgi?id=10526 One could probably be duped against the other. We discussed the test case. It's correct. void RenderHTMLCanvas::canvasSizeChanged() is a good example of how we could do this. It is called when <canvas> changes size. We just need to add a similar method to RenderPartObject and have SVGSVGElement call it appropriately. This bug is still not solved. I have hit the problem myself. Here is an example: http://pascal.parois.net/public/webkit/arbre.html Firefox 3 and opera 10 render it properly (not opera 9). I don't about IE with the appropriate plugin. This has been tested on the last nighty build : r41707 on linux. Cheers, Pascal Fixed in r87526. Re-opening because the fix that was originally landed is being reverted. See Bug 64974. Feel free to close this and open one of the many related ones if they do a better job describing the problem. Closing again, the test case works fine and is covered by tests in trunk. |