New issue
Advanced search Search tips

Issue 838648 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

pseudoElement ::before requires content

Project Member Reported by xidac...@chromium.org, May 1 2018

Issue description

After landing this CL: https://chromium-review.googlesource.com/c/chromium/src/+/1019383, load the attached document, observe that console logs "::before" which is correct.

Remove the "content" line in the "#target::before", then console won't log anything.
 
pseudo-element.html
350 bytes View Download
Status: WontFix (was: Assigned)
I believe this is WAI: https://drafts.csswg.org/css-pseudo-4/#generated-content

When their computed content value is not none, these pseudo-elements generate boxes as if they were immediate children of their originating element, and can be styled exactly like any normal document-sourced element in the document tree.

This implies that if the computed content value *IS* none, they cannot be styled, and therefore cannot have animations attached to them.

Sign in to add a comment