Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Term element in content value gets parsed #1414

Merged
merged 2 commits into from Jul 12, 2021
Merged

Fix: Term element in content value gets parsed #1414

merged 2 commits into from Jul 12, 2021

Conversation

lukewarlow
Copy link
Contributor

Closes #1387

@@ -497,6 +497,9 @@ class Processor {
return true
}
}
if (node.type === 'decl' && node.prop === 'content') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (node.type === 'decl' && node.prop === 'content') {
if (node.prop === 'content') {

Only Declaration has prop.

@@ -370,6 +381,9 @@ it('transition on vendor specific rule', () => {
it('ignore prefix in vendor at rules', () => {
check('at-rules')
})
it('ignore content property', () => {
check('content')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
check('content')
let input = read('content')
let result = postcss([prefixer('scope')]).process(input)
expect(result.css).toEqual(input)

It will allow to avoid the same content in both files.

@ai ai merged commit 4e31573 into postcss:main Jul 12, 2021
@ai
Copy link
Member

ai commented Jul 12, 2021

Thanks. Released in 10.3.1.

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.

Term 'element' in 'content' value gets parsed
2 participants