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

Issue 709744 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

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
 

Comment 1 by tapted@chromium.org, Apr 11 2017

Components: -UI Blink>CSS

Comment 2 by shend@chromium.org, Apr 11 2017

Labels: -OS-Mac OS-All
Status: Available (was: Unconfirmed)
Confirmed on Linux Chrome 57.0.2987.133 (Official Build) (64-bit) and 59.0.3067.0 (Official Build) dev (64-bit).

Comment 3 by shend@chromium.org, Apr 11 2017

Labels: Hotlist-Interop

Comment 4 by shend@chromium.org, Apr 12 2017

Labels: Needs-Bisect
Status: Untriaged (was: Available)

Comment 5 by ajha@chromium.org, Apr 13 2017

Labels: Needs-Triage-M57
Cc: jmukthavaram@chromium.org
Labels: -Needs-Bisect -Needs-Triage-M57 M-59
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.


709744.mp4
1.1 MB View Download
Status: Available (was: Untriaged)
Labels: Update-Quarterly
Labels: Code-ComputedStyle
Cc: ranjitkan@chromium.org rbasuvula@chromium.org
 Issue 765567  has been merged into this issue.

Comment 11 by meade@chromium.org, Nov 27 2017

Labels: ApproachableBug
Labels: -Update-Quarterly
this issue seems duplicate with https://bugs.chromium.org/p/chromium/issues/detail?id=788904
and that issue was fixed.
Can confirm, this issue is fixed (just tested) and can be closed, cheers.
Status: Fixed (was: Available)

Sign in to add a comment