[webkit-dev] innerWidth Behavior and webkit transform
simon.fraser at apple.com
Fri Aug 19 07:58:20 PDT 2011
This is a bug, recently fixed:
On Aug 19, 2011, at 4:31 AM, Charles Pritchard wrote:
> Related to my work on innerWidth, outerWidth and devicePixelRatio:
> It seems that running -webkit-transform on an iframe now sets
> the innerWidth of that iframe to the post-transformation value.
> e.g.: <iframe style="width: 100px; -webkit-transform: scale(.5,.5)">
> will result in innerWidth = outerWidth / 2 (approximately).
> (innerWidth == 25) document.body.width is still 100px.
> I believe this is new behavior (I'm not sure). I'm not sure that this is correct behavior.
> From what I recall, webkit-transform should not be exposing itself to
> the iframe's environment.
> To get the actual width for painting, within the iframe, I now have to run something like:
More information about the webkit-dev