Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 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:

Description

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 suusfit.nl dc84bc0d69e7.png (44.9 KB) - added by ZanderZ 4 years ago.
Proof of the error and warning

Download all attachments as: .zip

Change History (3)

@ZanderZ
4 years ago

Proof of the error and warning

#1 @pento
4 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
4 years ago

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

Note: See TracTickets for help on using tickets.