Skip to content

Comment on CSS3 Patterns Galleryparent

Comments

> What's wrong with images as bg?

1. Give a content block a raster background with a pattern including lots of pixel-perfect high-contrast edges (precisely the thing there are lots of in these demos!)

2. Visit the page on a mobile device, and tap to fit.

3. Horrible antialiasing ensues. (Not to mention what happens when you zoom in further.)

"CSS (vector) backgrounds" do have their use, and it's pretty much the same use as "vector icons"/"icon fonts" have: making things that look good at arbitrary scale+DPI.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.