This change is impacting production code. Not sure if you can hold back on this update.
As you note the browsers are very inconsistent on what getComputedStyle() returns for non-pseudo elements content value.
Chrome 50, Edge, Safari all return “”
IE11 returns “normal”
Firefox returns “none”
Chrome 51 proposes to return “normal”
We believe IE11 hasn’t surfaced these issues because most apps that need to do this are using IE8 backwards compatible style checks using the non-standard currentStyle property.
Typical check:
var docElement = document.documentElement;
var testDiv = docElement.insertBefore(document.createElement(tag), docElement.firstChild);
var styleValue = (testDiv.currentStyle || getComputedStyle(testDiv, null) || {})[‘content’];
Seems like this change should be given more time in the beta channel before being released to stable.
We ask for more time to update production apps and get other browser vendors consistent with the spec.
Tested this issue on Windows 7, Ubuntu 14.04 and Mac OS 10.11.5 using chrome latest M51-51.0.2704.78. Could anyone please confirm is the attached screen-shot is the expected behavior of this issue.
Comment 1 by bugdroid1@chromium.org
, Mar 30 2016