DevTools/CSSTips: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 34: Line 34:
* Use longhand versions of properties so it's clear what you're changing.
* Use longhand versions of properties so it's clear what you're changing.
** Example: Use <tt>border-color: red</tt>, not <tt>border: red;</tt>
** Example: Use <tt>border-color: red</tt>, not <tt>border: red;</tt>
Naming Standards:
* Dao says "I don't think we have an official policy for this and I don't care a lot"
* lower-case-with-dashes seems to be most common, and it fits with 'the CSS way'
* camelCase is also used
* It probably makes sense to first try to fit in with code around, and if there is doubt or if isn't anything to fit in with to use lower-case-with-dashes.


== Performance ==
== Performance ==
Confirmed users
295

edits

Navigation menu