Basic example
example.css
video:playing { box-shadow: 0 0 0 3px #22c55e; }
The :playing pseudo-class matches a media element that is playing.
video:playing { box-shadow: 0 0 0 3px #22c55e; }video:playing { box-shadow: 0 0 0 3px #22c55e; }video:playing { box-shadow: 0 0 0 3px #22c55e; }:playing is a modern CSS feature.
Supported in current major browsers with progressive enhancement.
Bottom line: Keep a readable fallback when using newer syntax.
Continue with :paused.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful