Read more

HTML/CSS: "transparent" is not a color

Dominik Schöler
March 25, 2020Software engineer at makandra GmbH

Heads up: transparent is not a real color, but black with 0% opacity.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

In Safari, this makes e.g. gradients between transparent and white have some gray tones in the middle.

/* Unexpected in Safari */
linear-gradient(to right, white 0%, transparent 100%)

/* Correct */
linear-gradient(to right, white 0%, rgba(255,255,255,0) 100%)
Posted by Dominik Schöler to makandra dev (2020-03-25 10:48)