mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 08:27:22 +03:00
5c9a07bf1a
As ::first-letter depends on white space handling, we must create the box after collapsing spaces, not during the build of the box tree. This commit makes WeasyPrint pass most of the W3C tests related to first-letter (and never crash). Known problems left include: - list markers are considered as the first letter, - lines may break between the first letter and the rest of the text (see #163 and #301), - the CSS attributes are all kept, some should probably be removed (the spec doesn't give a whole list). Even if W3C tests makes me quite confident (some of them are crazy), tests must be added in WeasyPrint too. |
||
---|---|---|
.. | ||
css | ||
formatting_structure | ||
layout | ||
tests | ||
__init__.py | ||
__main__.py | ||
compat.py | ||
document.py | ||
draw.py | ||
fonts.py | ||
html.py | ||
images.py | ||
logger.py | ||
navigator.py | ||
pdf.py | ||
stacking.py | ||
text.py | ||
urls.py |