WordPress.org

Make WordPress Core

Opened 15 months ago

Closed 15 months ago

Last modified 15 months ago

#47727 closed defect (bug) (duplicate)

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

Reported by: 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 15 months ago.
Proof of the error and warning

Download all attachments as: .zip

Change History (3)

@ZanderZ
15 months ago

Proof of the error and warning

#1 @pento
15 months 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
15 months ago

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

Note: See TracTickets for help on using tickets.