Page MenuHomePhabricator

TemplateStyles blocks rgba() inside of var()
Open, Needs TriagePublicFeature

Description

Steps to replicate the issue (include links if applicable):

  • Edit a CSS page and adding a line where a rgba() value is inside a var(). For example:
background-color: var(--background-color-backdrop-light, rgba(255,255,255,0.88));

What happens?:

The edit is blocked showing the [[MediaWiki:Templatestyles-error-bad-value-for-property]] error message with invalid value for "background-color".

What should have happened instead?:

As this is a valid syntax the edit should not be blocked.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):