blob: 6c0cb438ffbae8fd4fa34dd4e23acac2a4df722b [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title>:only-of-type pseudo-class</title>
<style type="text/css">.red { background-color : red }
.t1 :only-of-type { background-color : lime }
<link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
<link rel="prev" href="css3-modsel-36.html" title=":only-child pseudo-class">
<link rel="next" href="css3-modsel-38.html" title="::first-line pseudo-element">
<link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
<link rel="up" href="./index.html">
<link rel="top" href="../../index.html">
<div class="t1">
<p>This paragraph should have normal background</p>
<address class="red">But this address should have green background</address>
<p>This paragraph should have normal background</p>