Make WordPress Core

Opened 3 years ago

Closed 10 days ago

#55954 closed defect (bug) (duplicate)

CSS editor marks some lines as errors even though they're perfectly fine

Reported by: zikamatej's profile zikamatej Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Customize Keywords: needs-patch has-screenshots
Focuses: Cc:

Description

I keep getting error messages in the WP CSS Editor in Live view for pieces of code which are perfectly fine, even according to a CSS3 validator. E.g.:

.post-content a:not(.tags a){
	text-decoration: underline;
}

It's kinda annoying. Please update it to relevantly mirror CSS versions and standards.

Attachments (1)

css_error.png (17.5 KB) - added by zikamatej 3 years ago.
Customizer CSS error

Download all attachments as: .zip

Change History (3)

@zikamatej
3 years ago

Customizer CSS error

#1 @joyously
3 years ago

very similar to https://core.trac.wordpress.org/ticket/44471 (and its duplicates)

#2 @sabernhardt
10 days ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#44471 disabled CSS linting, and now the code editor does not give errors for selectors such as
.post-content a:not(.tags a)

Note: See TracTickets for help on using tickets.