Bug 123012 - REM unit down scaling is incorrect
Summary: REM unit down scaling is incorrect
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2013-10-18 01:30 PDT by jon.ronnenberg
Modified: 2015-02-06 05:42 PST (History)
1 user (show)

See Also:


Attachments
Shows 2 HTML elements with their pre calculated height, run time calculated height and actual height. (2.97 KB, text/html)
2013-10-18 01:30 PDT, jon.ronnenberg
no flags Details
Test-case shows that up scaling is not an issue (3.25 KB, text/html)
2013-10-18 01:31 PDT, jon.ronnenberg
no flags Details
A real example of the issue (2.38 KB, application/x-zip-compressed)
2013-10-18 01:32 PDT, jon.ronnenberg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.