<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.computech.dev/w/index.php?action=history&amp;feed=atom&amp;title=Specificity%3A_Punktesystem_f%C3%BCr_Selektoren</id>
	<title>Specificity: Punktesystem für Selektoren - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.computech.dev/w/index.php?action=history&amp;feed=atom&amp;title=Specificity%3A_Punktesystem_f%C3%BCr_Selektoren"/>
	<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Specificity:_Punktesystem_f%C3%BCr_Selektoren&amp;action=history"/>
	<updated>2026-11-24T18:03:19Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Computech CMS Wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.computech.dev/w/index.php?title=Specificity:_Punktesystem_f%C3%BCr_Selektoren&amp;diff=2036&amp;oldid=prev</id>
		<title>Andreas: Die Seite wurde neu angelegt: „{| class=&quot;wikitable&quot; |- ! Selektor                                          !! Beispiel                          !! Punkte |- | einfacher Typselektor…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.computech.dev/w/index.php?title=Specificity:_Punktesystem_f%C3%BCr_Selektoren&amp;diff=2036&amp;oldid=prev"/>
		<updated>2015-11-17T08:59:05Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „{| class=&amp;quot;wikitable&amp;quot; |- ! Selektor                                          !! Beispiel                          !! Punkte |- | einfacher Typselektor…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Selektor                                          !! Beispiel                          !! Punkte&lt;br /&gt;
|-&lt;br /&gt;
| einfacher Typselektor                             || p                                 || 1&lt;br /&gt;
|-&lt;br /&gt;
| Klasse                                            || .infobox                          || 10&lt;br /&gt;
|-&lt;br /&gt;
| Pseudoklasse                                      || :visited                          || 10&lt;br /&gt;
|-&lt;br /&gt;
| ID                                                || #navibereich                      || 100&lt;br /&gt;
|-&lt;br /&gt;
| Inline-Style mit Attribut &amp;lt;code&amp;gt;style=&amp;quot; &amp;quot;&amp;lt;/code&amp;gt;  || &amp;lt;code&amp;gt;style=&amp;quot;color: pink;&amp;quot;&amp;lt;/code&amp;gt; || 1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Spezifität - Beispiele====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Selektor                              !! Beschreibung                   !! Punkte einzeln   !! Gesamtpunktzahl&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;body&amp;lt;/code&amp;gt;                     || Typenselektor                  || 1                1&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;h1, h2&amp;lt;/code&amp;gt;                   || gruppierte Selektoren          || jeder 1          1&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;a:visited&amp;lt;/code&amp;gt;                || Typselektor + Pseudoklasse     || 1 + 10           11&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;.infobox&amp;lt;/code&amp;gt;                 || ungebundene Klasse             || 10               10&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;p.infobox&amp;lt;/code&amp;gt;                || Typselektor + gebundene Klasse || 1 + 10           11&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;#navibereich&amp;lt;/code&amp;gt;             || ID                             || 100              100&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;#navibereich a:visited&amp;lt;/code&amp;gt;    || ID + Typ + Pseudoklasse        || 100 + 1 + 10     111&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;p style=&amp;quot;color: red;&amp;quot;&amp;gt;&amp;lt;/code&amp;gt;  || Inline Style                   || 1000             1000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====ab CSS 2 zählt ein Matrixsystem:====&lt;br /&gt;
 *             {}  /* a=0 b=0 c=0 d=0 -&amp;gt; specificity = 0,0,0,0 */&lt;br /&gt;
 li            {}  /* a=0 b=0 c=0 d=1 -&amp;gt; specificity = 0,0,0,1 */&lt;br /&gt;
 li:first-line {}  /* a=0 b=0 c=0 d=2 -&amp;gt; specificity = 0,0,0,2 */&lt;br /&gt;
 ul li         {}  /* a=0 b=0 c=0 d=2 -&amp;gt; specificity = 0,0,0,2 */&lt;br /&gt;
 ul ol+li      {}  /* a=0 b=0 c=0 d=3 -&amp;gt; specificity = 0,0,0,3 */&lt;br /&gt;
 h1 + *[rel=up]{}  /* a=0 b=0 c=1 d=1 -&amp;gt; specificity = 0,0,1,1 */&lt;br /&gt;
 ul ol li.red  {}  /* a=0 b=0 c=1 d=3 -&amp;gt; specificity = 0,0,1,3 */&lt;br /&gt;
 li.red.level  {}  /* a=0 b=0 c=2 d=1 -&amp;gt; specificity = 0,0,2,1 */&lt;br /&gt;
 #x34y         {}  /* a=0 b=1 c=0 d=0 -&amp;gt; specificity = 0,1,0,0 */&lt;br /&gt;
 style=&amp;quot;&amp;quot;          /* a=1 b=0 c=0 d=0 -&amp;gt; specificity = 1,0,0,0 */&lt;br /&gt;
&lt;br /&gt;
Siehe: http://www.w3.org/TR/CSS21/cascade.html#specificity&lt;br /&gt;
&lt;br /&gt;
!important hinter einer CSS-Anweisung nimmt die Definition aus dem Punktsystem. Sie zählt auf jeden Fall.&lt;/div&gt;</summary>
		<author><name>Andreas</name></author>
	</entry>
</feed>