﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
 <head>
  <title>CSS 2.1 Test Suite: Pseudo-elements in Selectors</title>
  <style type="text/css">
   .test { color: red; }
   p:first-line { background: green; }
   p.test:first-line { color: white; }
   p:first-line.two { color: yellow; background: red; }
  </style>
  <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#pseudo-elements" title="5.10 Pseudo-elements and pseudo-classes">
  <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" title="5.12.1 The :first-line pseudo-element">
 </head>
 <body>
  <div>There should be two lines of text below.</div>
  <p class="test one"> This line should be white on green. </p>
  <p class="test two"> This line should be white on green. </p>
 </body>
</html>