mozilla

Compare Revisions

Writing efficient CSS

Change Revisions

Revision 10747:

Revision 10747 by tw2113 on

Revision 10748:

Revision 10748 by mtulio on

Title:
Writing efficient CSS
Writing efficient CSS
Slug:
CSS/Writing_Efficient_CSS
CSS/Writing_Efficient_CSS
Tags:
css, XUL, "Best practices"
css, XUL, "Best practices"
Content:

Revision 10747
Revision 10748
n16    <h3 name="How_the_style_system_breaks_up_rules">n16    <h3 id="How_the_style_system_breaks_up_rules" name="How_the_s
 >tyle_system_breaks_up_rules">
n47      …the key selectors are <code>img</code>, <code>p</code>, ann47      …the key selectors are <code>img</code>, <code>p</code>, an
>d <code>{{ mediawiki.external('title') }}</code>.>d <a href="/en/HTML/Element/title" title="en/HTML/Element/title">
 ><code>title</code></a>.
n49    <h4 name="ID_Rules">n49    <h4 id="ID_Rules" name="ID_Rules">
n55    <h5>n55    <h5 id="Example">
n63    <h4 name="Class_Rules">n63    <h4 id="Class_Rules" name="Class_Rules">
n69    <h5>n69    <h5 id="Example">
n77    <h4 name="Tag_Rules">n77    <h4 id="Tag_Rules" name="Tag_Rules">
n83    <h5>n83    <h5 id="Example">
n91    <h4 name="Universal_Rules">n91    <h4 id="Universal_Rules" name="Universal_Rules">
n97    <h5>n97    <h5 id="Example">
n105    <h3 name="How_the_Style_System_Matches_Rules">n105    <h3 id="How_the_Style_System_Matches_Rules" name="How_the_Sty
 >le_System_Matches_Rules">
n120    <h3 name="Guidelines_for_Efficient_CSS">n120    <h3 id="Guidelines_for_Efficient_CSS" name="Guidelines_for_Ef
 >ficient_CSS">
n123    <h4 name="Avoid_Universal_Rules.21">n123    <h4 id="Avoid_Universal_Rules.21" name="Avoid_Universal_Rules
 >.21">
n129    <h4 name="Don.27t_qualify_ID-categorized_rules_with_tag_namesn129    <h4 id="Don.27t_qualify_ID-categorized_rules_with_tag_names_o
>_or_classes">>r_classes" name="Don.27t_qualify_ID-categorized_rules_with_tag_na
 >mes_or_classes">
n164    <h4 name="Don.27t_qualify_class-categorized_rules_with_tag_nan164    <h4 id="Don.27t_qualify_class-categorized_rules_with_tag_name
>mes">>s" name="Don.27t_qualify_class-categorized_rules_with_tag_names">
n193    <h4 name="Try_to_put_rules_into_the_most_specific_category_yon193    <h4 id="Try_to_put_rules_into_the_most_specific_category_you_
>u_can.21">>can.21" name="Try_to_put_rules_into_the_most_specific_category_yo
 >u_can.21">
n204        <code>treeitem{{ mediawiki.external('mailfolder=\"true\"'n204        <code>treeitem[mailfolder="true"] &gt; treerow &gt; treec
>) }} &gt; treerow &gt; treecell {…}</code>>ell {…}</code>
n213    <h4 name="Avoid_the_descendant_selector.21">n213    <h4 id="Avoid_the_descendant_selector.21" name="Avoid_the_des
 >cendant_selector.21">
n236    <h4 name="Tag-categorized_rules_should_never_contain_a_child_n236    <h4 id="Tag-categorized_rules_should_never_contain_a_child_se
>selector.21">>lector.21" name="Tag-categorized_rules_should_never_contain_a_chi
 >ld_selector.21">
n256    <h4 name="Question_all_usages_of_the_child_selector.21">n256    <h4 id="Question_all_usages_of_the_child_selector.21" name="Q
 >uestion_all_usages_of_the_child_selector.21">
n270        <code>treeitem{{ mediawiki.external('IsImapServer=\"true\n270        <code>treeitem[</code><code>IsImapServer="true"</code><co
>"') }} &gt; treerow &gt; .tree-folderpane-icon {…}</code>>de>] &gt; treerow &gt; .tree-folderpane-icon {…}</code>
n281        <code>.tree-folderpane-icon{{ mediawiki.external('IsImapSn281        <code>.tree-folderpane-icon[IsImapServer="true"] {…}</cod
>erver=\"true\"') }} {…}</code>>e>
282      </dd>
283    </dl>282      </dd>
284    <h4 name="Rely_on_inheritance.21">283    </dl>
284    <h4 id="Rely_on_inheritance.21" name="Rely_on_inheritance.21"
 >>
n316    <h4 name="Use_-moz-image-region.21">n316    <h4 id="Use_-moz-image-region.21" name="Use_-moz-image-region
 >.21">
n322    <h4>n322    <h4 id="Use_scoped_stylesheets">
t329      <h3 name="Original_Document_Information">t329      <h3 id="Original_Document_Information" name="Original_Docum
 >ent_Information">

Back to History