Bug 14492 - Inspector's red outline drawn around inline SVGs is confusing due to preserveAspectRatio
Summary: Inspector's red outline drawn around inline SVGs is confusing due to preserve...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-01 16:06 PDT by Jay McCarthy
Modified: 2008-03-06 03:42 PST (History)
2 users (show)

See Also:


Attachments
The xhtml file with the problem (14.88 KB, application/xhtml+xml)
2007-07-01 16:07 PDT, Jay McCarthy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jay McCarthy 2007-07-01 16:06:52 PDT
I will attach the file. Look at the div with the id "problem" in the inspector. It says the height is 588px. Now, look at the SVG contained therein, it says the height is 584px. However, the containing div is CLEARLY not 588px. (This is with a window that is 720px high and 1170px wide.) 

I do not believe I am doing anything tricky or hacky, so I believe this is a major problem.
Comment 1 Jay McCarthy 2007-07-01 16:07:25 PDT
Created attachment 15341 [details]
The xhtml file with the problem
Comment 2 Eric Seidel (no email) 2007-09-26 07:37:50 PDT
It looks fine to me in both Safari 3.0 beta and feature-branch.

I think the confusion comes because the SVG is actually filling the whole div, it's just only drawing in the center (due to preserveAspectRatio's default value of xMidyMid.  see http://www.w3.org/TR/SVG/coords.html#PreserveAspectRatioAttribute for more info)

So I guess this bug is reporting that the red outline should go around the whole SVG instead of just the area where it's drawing?
Comment 3 Robert Blaut 2008-03-06 03:42:33 PST
I tested the reported problem in Webkit r30790 and I cannot confirm described problem. Inspector highlights entire window hight. WORKSFORME.