WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#46906 closed defect (bug) (reported-upstream)

When 'fr' is in the additional CSS area, WordPress shows error.

Reported by: mrgarry05 Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.1.1
Component: Customize Keywords: has-screenshots
Focuses: administration Cc:

Description

When I add something like

grid-template-columns: 80px auto 1fr;

in additional CSS. WordPress doesn't let me save add it and shows an error that RBRACE is missing before 'fr'.

https://imgur.com/MK9Kv3v

Attachments (1)

wordpress bug.png (25.0 KB) - added by mrgarry05 3 months ago.
screenshot of the error

Download all attachments as: .zip

Change History (4)

@mrgarry05
3 months ago

screenshot of the error

#1 @birgire
3 months ago

As far as I understand this is based on CSSLint v1.0.4 and is still an open request upstream:

https://github.com/CSSLint/csslint/issues/691
https://github.com/CSSLint/parser-lib/issues/228

I tested the fr unit on http://csslint.net that uses the 1.0.3 version and I get a parsing error.

#2 @birgire
3 months ago

At first I thought this was related to #46597,

but according to #41874 it seems that safecss_filter_attr() is not yet involved here.

#3 @andraganescu
3 months ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from assigned to closed

This appears to be an issue with CSS Lint

https://github.com/CSSLint/csslint/issues/734

For the moment it doesn't appear that there is any quickfix available.

Actually parser-lib has the issue open and unresolved:

https://github.com/CSSLint/parser-lib/issues/228

Note: See TracTickets for help on using tickets.