lol_html 1.2.1

Streaming HTML rewriter/parser with CSS selector-based API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html><head>
  <title>::first-line on inlines</title>
  <style type="text/css">
  p { color: green; }
  span:first-line { background: red; color: yellow; font-size: 4em; }
  span::first-line { background: red; color: yellow; font-size: 4em; }
</style>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"> <!-- bogus link to make sure it gets found -->
  <link rel="match" href="reference/this-line-green-color.xht">
  <meta name="flags" content="">
 </head>
 <body>
   <p><span>This line should be green.</span></p>

</body></html>