Skip to content

Allow content: 'none' and 'initial' for pseudo-elements - #62

Open
frontendj wants to merge 1 commit into
YozhikM:masterfrom
frontendj:content-property-no-static-value-fix
Open

Allow content: 'none' and 'initial' for pseudo-elements#62
frontendj wants to merge 1 commit into
YozhikM:masterfrom
frontendj:content-property-no-static-value-fix

Conversation

@frontendj

@frontendj frontendj commented May 25, 2021

Copy link
Copy Markdown

Rule 'content-property-no-static-value' doesn't allow us to have such constructions:

&::before { content: none; }

&::before { content: initial; }

Since they are widely used for decorative purposes, I'd suggest supporting them.
Also since the list of exceptions became bigger, maybe it makes sense to slightly optimise it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants