Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#47727 closed defect (bug) (duplicate)

Additional CSS warns about invalid CSS, though it's perfectly valid

Reported by: zanderz's profile ZanderZ Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.2.2
Component: Customize Keywords:
Focuses: Cc:


Add the following to Customize -> Additional CSS:

.foo {
    display: grid;
    gap: 0.25em;
    grid-gap: 0.25em;
    grid-template-columns: repeat(4, 1fr);

WordPress will give an error that the CSS is invalid (Expected RBRACE at the position of 1fr) and gives a warning that gap and grid-gap are "Unknown property"s.
All of this is perfectly fine CSS and WordPress should not give an error/warning about this.

Attachments (1)

2019-07-17 20.49.18 dc84bc0d69e7.png (44.9 KB) - added by ZanderZ 5 years ago.
Proof of the error and warning

Download all attachments as: .zip

Change History (3)

5 years ago

Proof of the error and warning

#1 @pento
5 years ago

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

Thank you for the bug report, @ZanderZ! We're tracking this issue over on #44471.

#2 @ZanderZ
5 years ago

Ah thanks, my search for duplicate tickets didn't find that one apparently.

Note: See TracTickets for help on using tickets.