DevTools/CSSTips: Difference between revisions

Jump to navigation Jump to search
Moving this over to the hacking page
m (Add SVG guidelines)
(Moving this over to the hacking page)
Line 98: Line 98:
* Use <tt>:empty</tt> to match a node that doesn't have children
* Use <tt>:empty</tt> to match a node that doesn't have children
* Usually, if <tt>margin</tt> or <tt>padding</tt> has 4 values, something is wrong. If the left and right values are asymmetrical, you're supposed to use <tt>-start</tt> and <tt>-end</tt>. If the values are symmetrical, so use only 3 values (see localization section)
* Usually, if <tt>margin</tt> or <tt>padding</tt> has 4 values, something is wrong. If the left and right values are asymmetrical, you're supposed to use <tt>-start</tt> and <tt>-end</tt>. If the values are symmetrical, so use only 3 values (see localization section)
== Other useful tips ==
* [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/SVG_Guidelines SVG Best practices]
130

edits

Navigation menu