Both single : and double :: notation used in this test
Paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
Paragraph.Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
Paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
Paragraph.Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
#t1 p:first-letter {color: green; font-size: 300%; font-weight:bold; background:transparent}
#t1 p:first-line {background: lime; color:#fff;}
#t2 p::first-letter {color: #ccc; font-size: 300%; font-weight:bold; background:#c00}
#t2 p::first-line {background: lime; color:#fff;}
:first-line pseudo-element when the mime–type of the document is application/xhtml+xml; hence, a test-case served as html 4.01 text/html.:first-line pseudo-element. There are some strange inheritance effects. Opera 9 performs better, but appears the fictional box as a block–level element. All versions of Opera have problems with combined selectors (in E F::first-line, element E is ignored or treated as universal selector.:first-line pseudo-element: they expand the height of the anonymous box representing the first-line to include the height of the line-box created by the first-letter box.back to introduction
Last modified: September 10 2009 03:09:00 GMT.