New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 617512 link

Starred by 12 users

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

'getComputedStyle' returns different value in chrome 50 and 51

Reported by manimara...@gmail.com, Jun 6 2016

Issue description

Chrome Version       :  51.0.2704.79 m
URLs (if applicable) :https://jsfiddle.net/p3qw3u5L/7/
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari:
    Firefox:
         IE:
Chrome : 50.0.2661.102 - OK 

What steps will reproduce the problem?
(1)create element with position as 'absolute'
(2)Calculate the element's value for top and bottom using 'getComputedStyle' api

What is the expected result?
It should return the value as 'auto'

What happens instead?
It's returning the value (e.g: '70px')


Please provide any additional information below. Attach a screenshot if
possible.

 
This is a break with backward compatibility. Please fix this.

Comment 2 by ajha@chromium.org, Jun 7 2016

Cc: msten...@opera.com gov...@chromium.org ajha@chromium.org
Components: Blink>CSS
Labels: -Type-Bug -Pri-3 ReleaseBlock-Stable M-51 OS-Linux OS-Mac OS-Windows Pri-1 Type-Bug-Regression
Owner: kh...@codeaurora.org
Status: Assigned (was: Unconfirmed)
Able to reproduce this on the latest canary(53.0.2761.2) and the latest stable(51.0.2704.84) on Windows-7, Mac OS 10.11.5 and Linux Ubuntu 14.04.

This is a regression issue broken in M-51.

Last good build: 51.0.2701.0
First bad build: 51.0.2702.0

Changelog:https://chromium.googlesource.com/chromium/src/+log/51.0.2701.0..51.0.2702.0?pretty=fuller&n=10000

On manual inspection this looks to be caused by https://codereview.chromium.org/1826423003

Kevin@: Could you please take a look at this.

Marking this as RB-Stable for next stable refresh if there is one.

Comment 3 by ajha@chromium.org, Jun 7 2016

Labels: hasbisect
Till now, we trusted chrome. But from last 5-6 releases, Chrome is getting unstable and losing the developers trust.. We are logging issues for every stable release.

Can you please release a fix for the latest stable channel - minor update? 

See  issue 589347 , this is not a regression.
Labels: -Pri-1 -ReleaseBlock-Stable Pri-2
As per comment 5, this is working as intended. My understanding is that the behavior change means Chrome now matches the behaviour in the specifications as well as Firefox.

I'm going to leave this bug open for now so it's easier to search for, but as the change increases compatibility with FF and the specs I don't expect that we'd revert to the old behaviour.

Comment 7 by timloh@chromium.org, Jun 15 2016

Cc: kh...@codeaurora.org
 Issue 616834  has been merged into this issue.

Comment 8 by pgrevi...@gmail.com, Jun 15 2016

I guess the workaround is to set the element's display property to none, call getComputedStyle, which will now return auto where expected, then unset the display property again.
Just a note to confirm that this is working as intended.
Status: WontFix (was: Assigned)
Working as intended

Sign in to add a comment