Computed value for 'content' property is incorrect. |
|||||||
Issue descriptionChrome Version: 64.0.3269.3 (Official Build) dev (64-bit) What steps will reproduce the problem? Open https://jsfiddle.net/w0t1q980/1 What is the expected result? Should say: "content: 'normal'; pseudo-content: 'none'" What happens instead? Says: "content: ''; pseudo-content: ''" According to https://www.w3.org/TR/CSS2/generate.html#content: On elements, always computes to 'normal'. On :before and :after, if 'normal' is specified, computes to 'none'. Since the default value is 'normal', we should get 'normal' for the element itself and 'none' for the pseudo element. Firefox says "content: 'none'; pseudo-content: 'none'".
,
Nov 28 2017
Able to reproduce this issue on reported version 64.0.3269.3 and latest canary 64.0.3278.0 using Mac 10.12.6, Windows 10, Ubuntu 14.04 with steps mentioned in comment#0. Please find the attached screeshots of 64.0.3269.3, 64.0.3278.0 and 50.0.2661.0 chrome versions. This issue is seen from M50 series[50.0.2661.0]. Hence considering this issue as Non-regression and marking as Untriaged. Thanks!
,
Nov 29 2017
,
Dec 6 2017
,
Dec 27 2017
,
Mar 1 2018
Would like to work on this bug.
,
Mar 5 2018
@Darren Shen/ NainaR Added a patch at https://chromium-review.googlesource.com/c/chromium/src/+/942126 Can you please help me to know why StylePropertyMap returning null for correct initial value of content?
,
Mar 7 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/11fb2ae26b6e84211adf8270eb4f0cf42b945fe8 commit 11fb2ae26b6e84211adf8270eb4f0cf42b945fe8 Author: Ramya Vadlamudi <ramya.v@samsung.com> Date: Wed Mar 07 10:22:30 2018 Computed value for 'content' property is incorrect. Computed value on elements is by default 'normal' and on :before and :after computes to 'none' Spec: https://www.w3.org/TR/CSS2/generate.html#content BUG= 788904 Change-Id: Iefd07961445b057d9f893e057f35b082c214454d Reviewed-on: https://chromium-review.googlesource.com/942126 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Ramya Vadlamudi <ramya.v@samsung.com> Cr-Commit-Position: refs/heads/master@{#541400} [modify] https://crrev.com/11fb2ae26b6e84211adf8270eb4f0cf42b945fe8/third_party/WebKit/LayoutTests/fast/css/content-property-quote-types.html [modify] https://crrev.com/11fb2ae26b6e84211adf8270eb4f0cf42b945fe8/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-listing-expected.txt [modify] https://crrev.com/11fb2ae26b6e84211adf8270eb4f0cf42b945fe8/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-listing-expected.txt [modify] https://crrev.com/11fb2ae26b6e84211adf8270eb4f0cf42b945fe8/third_party/WebKit/LayoutTests/fast/dom/hover-after-dom-delete-expected.txt [modify] https://crrev.com/11fb2ae26b6e84211adf8270eb4f0cf42b945fe8/third_party/WebKit/LayoutTests/fast/dom/hover-after-dom-delete.html [modify] https://crrev.com/11fb2ae26b6e84211adf8270eb4f0cf42b945fe8/third_party/WebKit/LayoutTests/svg/css/getComputedStyle-listing-expected.txt [modify] https://crrev.com/11fb2ae26b6e84211adf8270eb4f0cf42b945fe8/third_party/WebKit/Source/core/css/properties/ComputedStyleUtils.cpp
,
Mar 12 2018
,
Jun 4 2018
This issue reintroduced a breaking change first tracked in BUG 609848 |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by dstockwell@google.com
, Nov 27 2017