Skip to main content
Topic: CSS Patterns (Read 2429 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: CSS Patterns

Reply #1

Been around for yonks. Have even used them at times, just for fun. CSS needs processing too. Don't just assume it will always need less.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P


Re: CSS Patterns

Reply #3

Well, yes and no and maybe. Depends. Setting up those patterns can require a lot of CSS. This can be a/ hard to write and b/ hard to customise and c/ hard for some devices to process, depending on how over the top you get with your CSS. I know box-shadow use to kill IE9 pretty easily just as one random example.

Someone who has PS or GIMP may well be able to make a small repeating image easier than they can write CSS for a CSS-only pattern. The small repeating image may contain fewer bytes, or not a lot more, compared to a CSS pattern. It may require less processing by the browser. It's probably easier for beginners to edit, as long as they have PS or GIMP (or Irfanview or whatever).

So sometimes using a CSS pattern might be better. Other times it might not be. You'd have to benchmark it to know for sure, and you'd have to tie that in with any concerns about ease of customisation. If you want to know about benchmarking, ask Lea Verou. She's probably done it already. Knows her stuff pretty well.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P