mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
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:
parent
15ae8d1eea
commit
fa6b59901a
8 changed files with 155 additions and 375 deletions
14
src/test/ref/inline_background_ref.html
Normal file
14
src/test/ref/inline_background_ref.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue