paulirish / css3please

use Autoprefixer instead. <3
http://css3please.com
388 stars 65 forks source link

Update index.html #108

Closed s10wen closed 11 years ago

s10wen commented 11 years ago

Updated css values where possible e.g. 0px to 0, #ffffff to #fff.

s10wen commented 11 years ago

Am I missing something? Just noticed on the site, sometimes the hex values as #000, but sometimes as #000000. Shouldn't they always be 3 digit where possible? Cheers.

paulirish commented 11 years ago

I prefer the six digit always. if you're gonna do hex, do 6 digit and deal with your greyscale having repetition.

but i'd rather author in hsl anyway..

s10wen commented 11 years ago

Ok, cheers, saw your http://mothereffinghsl.com/ (nice source code btw!) and http://www.useragentman.com/blog/2010/08/28/coding-colors-easily-using-css3-hsl-notation/

It's just: hsl(0, 100%, 50%)

Seems so long in comparison to:

f00

Tried searching re 'greyscale having repetition' but couldn't find anything, what's the issue please?

curtisblackwell commented 11 years ago

the repetition is in there being two of each of the three digits in the hex.

f00 → #ff0000

my guess is Paul prefers consistency to the nominal difference in time-saved/smaller file-size argument that supports the switch to three-digit hex when possible.

s10wen commented 11 years ago

Gotcha, cool cheers.

paulirish commented 11 years ago

bingo. thx curtis :)

i'm just saying for authoring usability... I think jumping onto HSL is best. use a preprocessor to compile back to hex for legacy browsers if need be.

and css minifiers already make the 6 to 3 digit crush