Bug 123012

Summary: REM unit down scaling is incorrect
Product: WebKit Reporter: jon.ronnenberg
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal CC: jon.ronnenberg
Priority: P2 Keywords: HasReduction
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Shows 2 HTML elements with their pre calculated height, run time calculated height and actual height.
none
Test-case shows that up scaling is not an issue
none
A real example of the issue none

Description jon.ronnenberg 2013-10-18 01:30:01 PDT
Created attachment 214548 [details]
Shows 2 HTML elements with their pre calculated height, run time calculated height and actual height.

Steps to reproduce the problem:
1. Go to http://dotnetcarpenter.bitbucket.org/bugz/rem-bug/
2. Resize the window to a smaller size.
3. Watch the height text inside the blue and green squares - at some point, all rem scales are askew.
Or on a small screen device, e.i. iPhone/Android phone:
1. Go to http://dotnetcarpenter.bitbucket.org/bugz/real-example/
2. Notice that the right pointing arrow will drop down below the other controls.
3. Touch the histogram icon
4. The icon legend to the right of the screen is rendered on top of the histogram bars.

What is the expected behavior?
Go to the aforementioned URI's with a gecko based browser.
Scaling should always be correct.

What went wrong?
As demonstrated in the attached test case and on the live links, webkit browsers stop down-scaling correctly at a certain point.

Did this work before?
I don't know.


Any other comments?
This is observed on iPhone Safari iOS6, Android stock browser 4.0.4 and 4.2.2, Chrome 30 for Android, and Opera 16. 
webkit doesn't seem to having any issues with up-scaling content. As seen in the second 
attachment: rem-height-workaround.html I've also commented on a similar issue in the webkit bug tracker:  https://bugs.webkit.org/show_bug.cgi?id=117680
Comment 1 jon.ronnenberg 2013-10-18 01:31:04 PDT
Created attachment 214549 [details]
Test-case shows that up scaling is not an issue
Comment 2 jon.ronnenberg 2013-10-18 01:32:38 PDT
Created attachment 214550 [details]
A real example of the issue

Can be used as a test case when the reduced test case passes.
Comment 3 jon.ronnenberg 2015-02-06 05:42:06 PST
-webkit-text-size-adjust:none; might solve the issue. But haven't checked since this means going through hundreds of lines of SASS to change the factor.