Dark alpha PNGs in Safari 2 is a post on The Hickensian

Here’s a weird one, and it only affects Safari 2 (Tiger), not even Safari 1.3 or earlier, or Omniweb (using the earlier rendering engine).

If you look at my ‘contact section’, or my live search function, I use an alpha png in the background to overlay a transparent white tint over the header image. In every other browser (except IE of course, which just gets a white background) this works just as I expect it to, but not in Safari 2. The effect is transparent grey – not white. Richard Rutter was kind enough to check in Safari 1.3 for me, and the png shows up fine.

Apart from Paul Haine, I couldn’t find anyone else that was experiencing this problem.

After a lot of experimentation however, it turned out that Safari just needs the repeating image to be at least 2px square, not 1px.

Here’s a comparison:

Screenshot of before, using a 1px square png, and after, using 2px

I hope this is useful to someone else, who may have come across this problem.

The Hickensian is the journal of Jon Hicks, one half of the creative partnership Hicksdesign. See the work we do.

AD by FUSION

My Zoo

I use Zootool to collect the things I like on the web…

playlist

See more on last.fm

  • Villagers - Becoming A Jackal
  • Arcade Fire - The Suburbs
  • John Grant - Queen Of Denmark
  • School of Seven Bells - Disconnect From Desire
  • The New Pornographers - Together
  • Starflyer 59 - The Changing Of The Guard
  • The Divine Comedy - Bang Goes The Knighthood
  • Beach House - Teen Dream
  • Gorillaz - Plastic Beach
  • Mr B The Gentleman Rhymer - Flattery Not Included
  • Gonjasufi - A Sufi and a Killer
  • Grizzly Bear - Veckatimest
  • Kula Shaker - Pilgrims Progress
  • Matthew Sweet - In Reverse
  • Lemon Jelly - Lost Horizons

Contact

Hicksdesign

Island House

Lower High Street

Burford

Oxfordshire, UK

OX18 4RR

+44 (0)7917 391 536

Download vCard

Hicksmade. Unique handmade products made for machines, not by them