Wrong "content" CSS prop value for non generated content
Reported by
shospoda...@gmail.com,
Apr 8 2017
|
||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Steps to reproduce the problem:
1. Open an empty page in the browser
2. Execute the following code "console.log(window.getComputedStyle(
document.querySelector('body'), '::before')
.getPropertyValue('content'))"
3. The returned value is an empty string
4. Online test demo: http://codepen.io/malyw/pen/GWbBGX?editors=1010
What is the expected behavior?
The expected output for not generated content is none, according to MDN https://developer.mozilla.org/en/docs/Web/CSS/content
According to the spec it's normal, but depends on how to treat that:
https://drafts.csswg.org/css-content-3/#content-property
What went wrong?
The current situation shows that FF and EDGE return the expected value,
but Chrome and Safari do it incorrectly.
Did this work before? N/A
Chrome version: 57.0.2987.133 Channel: stable
OS Version: OS X 10.12.5
Flash Version: Shockwave Flash 25.0 r0
,
Apr 11 2017
Confirmed on Linux Chrome 57.0.2987.133 (Official Build) (64-bit) and 59.0.3067.0 (Official Build) dev (64-bit).
,
Apr 11 2017
,
Apr 12 2017
,
Apr 13 2017
,
Apr 13 2017
Thanks for filing the issue. Able to reproduce the issue on Mac-10.12.4,Windows 7 & Ubuntu 14.04 using Chrome stable version-57.0.2987.133 and canary-59.0.3070.0 with the steps mentioned in comment#0. Observed 'empty string' as return value after running the given codepen. This is Non-regression issue, Observed from M30 and confirming this issue to get more inputs from Dev team. Please find the attached screencast for reference.
,
Apr 18 2017
,
Apr 18 2017
,
Oct 30 2017
,
Nov 24 2017
,
Nov 27 2017
,
Dec 6 2017
,
May 28 2018
this issue seems duplicate with https://bugs.chromium.org/p/chromium/issues/detail?id=788904 and that issue was fixed.
,
Jun 3 2018
Can confirm, this issue is fixed (just tested) and can be closed, cheers.
,
Jun 8 2018
|
||||||||||||
►
Sign in to add a comment |
||||||||||||
Comment 1 by tapted@chromium.org
, Apr 11 2017