Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

css shorthand, camelCasing and POSH #22

Closed
jalbertbowden opened this Issue · 3 comments

2 participants

albert Tait Brown
albert

yo, nice write up! by no means am i being critical here, just wanted to point somethings out....

  1. css shorthand is optimal...for making your css smaller. it is not optimal how it is presented in these guidelines. using shorthand simply because it is shorter can/will cause build-ups/bottlenecks in performance. mostly because of Reflows, Repaints,and Redraws. i agree with you actually, i prefer shorthand, but i've switched up for single property declarations for better performance/optimization.

  2. i only use camelCasing in markup for Ajax classes. and JSON classes. the camelCase denotes to developers that the class is only there for JavaScript usage, i've found this to make things quite readable, especially when fixing bugs on the fly.
    POSH and XHTML demand lower case...i realize its a new ballgame with HTML5/CSS3 but i still have yet to hear a good argument against all lowercase all the time...mostly the arguments are all about personal preference, which i understand completely. right here i am arguing my preference(s).
    furthermore data attributes must be in lowercase, so i see no reason to deviate from the plan; mixing them up will just confuse alot of peoples. especially if someone is researching microformats and realizes that they are (mostly) all speed in pseudo camelCase (hCard, hAudio, etc.)...i can totally see peeps thinking that a) that is how the microformats are spelled and b) bleeding those practices into other areas where lower case is a must case

i have some more thoughts that i'll gather and get back @ ya. but this is great. nicely done sir!

Tait Brown
Owner

You've reminded me to add something about "Reflows, Repaints,and Redraws". Thanks!

I welcome any more thoughts. If they're actual bugs, try and log them individually so they're easier to manage from my point of view.

Tait Brown
Owner

Revisiting this one, yes, it is quite important to have lower case data names. I've run into this one quite a bit lately and will make a note of it.

Tait Brown
Owner

Repaints and reflows added. Lower case data-names discussed.

Tait Brown taitems closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.