Add support for backgrounds on inline elements. Fix fixup() by removing it.

The code that managed ranges was buggy - failing on edge cases
such as a span within a span. I have refactored the code so that the
context information for inline formatting can optionally be stored
within a fragment. This seems cleaner to me, and fixes the bugs
encountered when making these changes by removing the need for
the fixup() functionality (and ranges).
This commit is contained in:
Glenn Watson 2014-08-22 21:21:09 +10:00
parent 15ae8d1eea
commit fa6b59901a
8 changed files with 155 additions and 375 deletions

View file

@ -0,0 +1,14 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
.white {
color: white;
}
body {
margin: 0;
}
</style>
</head>
<body><span class="white">White text on a green background</span></body>
</html>