Automattic / Automattic/Genericons

Erroneous `transition-delay` values in genericons.css

Open
#109 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
138
Forks
33
PR merge metrics
No merged PRs in 30d

Description

Background: [#43195 in WordPress Core Trac](https://core.trac.wordpress.org/ticket/43195).

Per https://developer.mozilla.org/en-US/docs/Web/CSS/time:
> Although unitless zero is allowed for ``s, it's invalid for `

So we could drop `transition-delay` on these two lines since the default is `0s` anyway:

-moz-transition: color .1s ease-in 0;
-webkit-transition: color .1s ease-in 0;

Should be:

-moz-transition: color .1s ease-in;
-webkit-transition: color .1s ease-in;

Contributor guide

No contributing guide indexed for this repository

Research direction

Open genericons.css and locate the two vendor-prefixed transition declarations containing `ease-in 0`. Check the CSS timing-value guidance linked in the issue, then remove the invalid unitless delay from both declarations. Done means both lines retain the color transition without an explicit delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.