New issue
Advanced search Search tips

Issue 710487 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 779409
Owner: ----
Closed: Oct 31
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug
Team-Accessibility


Participants' hotlists:
Watched

Show other hotlists

Other hotlists containing this issue:
layout-backlog


Sign in to add a comment

window.getComputedStyle reports non-scaled size when using Accessibility Text Scaling

Reported by parmstr...@twitter.com, Apr 11 2017

Issue description

Steps to reproduce the problem:
1. Serve the test.html file to a Chrome Android browser
2. Tap "Get Computed Font Size"
3. Enter Chrome Settings > Accessibility and scale the text (any direction)
4. Return to test tab. Tap "Get Computed Font Size"

What is the expected behavior?
After step 4, the computed font size should be the *scaled* font size.

What went wrong?
The computed font size is always the original font size without the scaling applied.

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 57.0.2987.132  Channel: stable
OS Version: 7.0
Flash Version: 

Getting the correct size is important for web apps that use window.getComputedStyle to correctly determine and change the height of textareas, so that they appear to "auto grow" instead of show a scrollbar.
 
test.html
978 bytes View Download
Cc: acindhe@chromium.org
Components: UI>Accessibility
Labels: triage-te
Labels: Needs-Bisect
parmstrong@ Thanks for filing the bug. you mean to say that "Reported Size" is not changing according to scaling ?
text.png
185 KB View Download
Correct, the reported size, as you circled never changes, no matter what the text-scaling value is set to.
Cc: -acindhe@chromium.org
Labels: -triage-te -Needs-Bisect
we are able to repro this issue on all the devices with the above mentioned steps. "Reported Size" never changes, no matter what the text-scaling value is set to. 

Please find the logs and screen record -> http://go/chrome-androidlogs1/7/710487

This issue is repro on Old chrome builds too (I have checked on M51 build). Not a regression issue. 
Labels: triage-android-remaining
Labels: -triage-android-remaining
Status: Untriaged (was: Unconfirmed)
Chrome 63.0.3220.0 (Official Build) canary (32-bit)
Android OS 8.0.0; Nexus 5X

Hello,

I am able to reproduce this issue using these steps:

# push test.html to device
# open in Chrome Canary
# Type text into field
# Tap Get Computed Font Size
Reported size: 16px

# Go to Settings > Accessibility and scale to 170%
Reported size: 16px
Making available for development. 
Status: Available (was: Untriaged)
Components: Blink>CSS
Mergedinto: 779409
Status: Duplicate (was: Available)
leberly: the issue this was merged into looks very different. The other issue is saying that fonts don't scale at all. This issue is strictly regarding the reported style from `window.getComputedStyle` when the fonts *do* scale.

Sign in to add a comment