weasyprint breaking changes
Updated December 4, 2026
On this page
Latest version 70.0, released September 8, 2026. Source repository
Its 67.0 release requires Python 3.10 or later. Python end of life dates.
- From 69.0 to 70.0: 45 breaking changes in 1 version.
- From 64.0 to 70.0: 223 breaking changes in 7 versions.
weasyprint 70.0 breaking changes
- Removed
weasyprint.css.computed_values.anchor
weasyprint.css.computed_values.anchor was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.css.computed_values.ANGLE_TO_RADIANS
weasyprint.css.computed_values.ANGLE_TO_RADIANS was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.css.computed_values.compute_attr
weasyprint.css.computed_values.compute_attr was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.css.computed_values.get_link_attribute
weasyprint.css.computed_values.get_link_attribute was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.css.computed_values.link
weasyprint.css.computed_values.link was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.css.ComputedStyle.element
ComputedStyle.element was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.css.get_url_attribute
weasyprint.css.get_url_attribute was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.css.validation.properties.link
weasyprint.css.validation.properties.link was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.default_url_fetcher
weasyprint.default_url_fetcher was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.get_url_attribute
weasyprint.html.get_url_attribute was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.HTML5_PH
weasyprint.html.HTML5_PH was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.HTML5_PH_STYLESHEET
weasyprint.html.HTML5_PH_STYLESHEET was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.HTML5_UA
weasyprint.html.HTML5_UA was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.HTML5_UA_COUNTER_STYLE
weasyprint.html.HTML5_UA_COUNTER_STYLE was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.HTML5_UA_FORM
weasyprint.html.HTML5_UA_FORM was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.HTML5_UA_FORM_STYLESHEET
weasyprint.html.HTML5_UA_FORM_STYLESHEET was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.HTML5_UA_STYLESHEET
weasyprint.html.HTML5_UA_STYLESHEET was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.parse_string
weasyprint.html.parse_string was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.html.strip_whitespace
weasyprint.html.strip_whitespace was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.images.SVG.get_paint
SVG.get_paint was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.layout.inline.AnonymousStyle
weasyprint.layout.inline.AnonymousStyle was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.layout.inline.build
weasyprint.layout.inline.build was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.layout.page.AnonymousStyle
weasyprint.layout.page.AnonymousStyle was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.svg.draw_gradient_or_pattern
weasyprint.svg.draw_gradient_or_pattern was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.svg.get_url_attribute
weasyprint.svg.get_url_attribute was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.urls.get_link_attribute
weasyprint.urls.get_link_attribute was removed in weasyprint 70.0 pypi.org - Removed
weasyprint.urls.get_url_attribute
weasyprint.urls.get_url_attribute was removed in weasyprint 70.0 pypi.org - Renamed
weasyprint.css.computed_values.get_url_tuple
Use weasyprint.css.targets.get_url_tuple instead. pypi.org - Behavior changed
The original URL fetcher is now always used when available, which changes how metadata and stylesheets passed as parameters are fetched. Check any custom fetcher logic that relied on the previous behavior. github.com - Behavior changed
EPS images are no longer rendered, so documents that embed them will change output. Convert EPS images to a supported format. github.com - Signature changed
weasyprint.anchors.gather_anchors
Was def gather_anchors(box, anchors, links, bookmarks, forms, parent_matrix=None, parent_form=None); now def gather_anchors(box, anchors, links, bookmarks, forms, parent_matrix=None, parent_form=None, parent_link=None). pypi.org - Signature changed
weasyprint.css.AnonymousStyle
Was class AnonymousStyle(dict); now class AnonymousStyle(Style). pypi.org - Signature changed
weasyprint.css.ComputedStyle
Was class ComputedStyle(dict); now class ComputedStyle(Style). pypi.org - Signature changed
weasyprint.css.ComputedStyle.__init__
Was def __init__(self, parent_style, cascaded, element, pseudo_type, root_style, base_url, font_config, initial_page_sizes); now def __init__(self, parent_style, cascaded, pseudo_type, root_style, base_url, font_config, initial_page_sizes). pypi.org - Signature changed
weasyprint.css.InitialStyle
Was class InitialStyle(dict); now class InitialStyle(Style). pypi.org - Signature changed
weasyprint.css.Pending.solve
Was def solve(self, tokens, wanted_key); now def solve(self, tokens, wanted_key, base_url). pypi.org - Signature changed
weasyprint.css.Pending.validate
Was def validate(self, tokens, wanted_key); now def validate(self, tokens, wanted_key, base_url). pypi.org - Signature changed
weasyprint.css.url_join
Was def url_join(base_url, url, allow_relative, context, context_args); now def url_join(base_url, url, allow_relative, context). pypi.org - Signature changed
weasyprint.document.gather_anchors
Was def gather_anchors(box, anchors, links, bookmarks, forms, parent_matrix=None, parent_form=None); now def gather_anchors(box, anchors, links, bookmarks, forms, parent_matrix=None, parent_form=None, parent_link=None). pypi.org - Signature changed
weasyprint.draw.draw_background
Was def draw_background(stream, bg, clip_box=True, bleed=None, marks=()); now def draw_background(stream, background, clip_box=True, bleed=None, marks=()). pypi.org - Signature changed
weasyprint.html.parse_url
Was def parse_url(string); now def parse_url(string, base_url, allow_relative=False). pypi.org - Signature changed
weasyprint.images.SVG.draw_node
Was def draw_node(self, node, font_size, fill_stroke=True); now def draw_node(self, node, font_size, fill_stroke=True, context=None). pypi.org - Signature changed
weasyprint.images.SVG.fill_stroke
Was def fill_stroke(self, node, font_size, text=False); now def fill_stroke(self, fill, stroke, even_odd=False, text=False). pypi.org - Signature changed
weasyprint.images.SVG.set_graphical_state
Was def set_graphical_state(self, node, font_size, text=False); now def set_graphical_state(self, node, font_size, context=None). pypi.org - Signature changed
weasyprint.urls.url_join
Was def url_join(base_url, url, allow_relative, context, context_args); now def url_join(base_url, url, allow_relative, context). pypi.org
weasyprint 69.0 breaking changes
- Removed
weasyprint.css.ColorProfile.renderingintent
ColorProfile.renderingintent was removed in weasyprint 69.0 pypi.org - Removed
weasyprint.css.computed_values.validate_non_shorthand
weasyprint.css.computed_values.validate_non_shorthand was removed in weasyprint 69.0 pypi.org - Removed
weasyprint.css.FONT_UNITS
weasyprint.css.FONT_UNITS was removed in weasyprint 69.0 pypi.org - Removed
weasyprint.css.FontUnitInMath
weasyprint.css.FontUnitInMath was removed in weasyprint 69.0 pypi.org - Removed
weasyprint.html.HTML_SPACE_SEPARATED_TOKENS_RE
weasyprint.html.HTML_SPACE_SEPARATED_TOKENS_RE was removed in weasyprint 69.0 pypi.org - Removed
weasyprint.html.HTML_WHITESPACE
weasyprint.html.HTML_WHITESPACE was removed in weasyprint 69.0 pypi.org - Removed
weasyprint.layout.block.handle_min_max_width
weasyprint.layout.block.handle_min_max_width was removed in weasyprint 69.0 pypi.org - Removed
weasyprint.logger.CallbackHandler
weasyprint.logger.CallbackHandler was removed in weasyprint 69.0 pypi.org - Removed
weasyprint.logger.capture_logs
weasyprint.logger.capture_logs was removed in weasyprint 69.0 pypi.org - Removed
weasyprint.pdf.fonts.capture_logs
weasyprint.pdf.fonts.capture_logs was removed in weasyprint 69.0 pypi.org
And 17 more in this version. Sign up to see every change
weasyprint 68.1 breaking changes
- Removed
weasyprint.svg.clip_path
weasyprint.svg.clip_path was removed in weasyprint 68.1 pypi.org - Signature changed
weasyprint.urls.URLFetcherResponse.__init__
Was def __init__(self, url, body=None, headers=None, status='200 OK', **kwargs); now def __init__(self, url, body=None, headers=None, status=200, **kwargs). pypi.org
weasyprint 68.0 breaking changes
- Removed
weasyprint.document.generate_rdf_metadata
weasyprint.document.generate_rdf_metadata was removed in weasyprint 68.0 pypi.org - Removed
weasyprint.images.ImageLoadingError.from_exception
ImageLoadingError.from_exception was removed in weasyprint 68.0 pypi.org - Removed
weasyprint.images.SVG.inherit_defs
SVG.inherit_defs was removed in weasyprint 68.0 pypi.org - Removed
weasyprint.images.SVG.parse_defs
SVG.parse_defs was removed in weasyprint 68.0 pypi.org - Removed
weasyprint.pdf.metadata.add_metadata
weasyprint.pdf.metadata.add_metadata was removed in weasyprint 68.0 pypi.org - Removed
weasyprint.pdf.metadata.generate_rdf_metadata
weasyprint.pdf.metadata.generate_rdf_metadata was removed in weasyprint 68.0 pypi.org - Removed
weasyprint.pdf.pdfa.add_metadata
weasyprint.pdf.pdfa.add_metadata was removed in weasyprint 68.0 pypi.org - Removed
weasyprint.pdf.pdfua.add_metadata
weasyprint.pdf.pdfua.add_metadata was removed in weasyprint 68.0 pypi.org - Removed
weasyprint.pdf.pdfx.add_metadata
weasyprint.pdf.pdfx.add_metadata was removed in weasyprint 68.0 pypi.org - Behavior changed
Security fix: HTTP redirects now always go through the URL fetcher, which may change how redirected resources are fetched. github.com
And 11 more in this version. Sign up to see every change
weasyprint 67.0 breaking changes
- Removed
WeasyPrint 67.0 needs Python 3.10 or later. Users on Python 3.9 must upgrade Python before installing this release. github.com - Removed
weasyprint.css.check_var_function
weasyprint.css.check_var_function was removed in weasyprint 67.0 pypi.org - Removed
weasyprint.css.computed_values.character_ratio
weasyprint.css.computed_values.character_ratio was removed in weasyprint 67.0 pypi.org - Removed
weasyprint.css.computed_values.ffi
weasyprint.css.computed_values.ffi was removed in weasyprint 67.0 pypi.org - Removed
weasyprint.css.computed_values.first_line_metrics
weasyprint.css.computed_values.first_line_metrics was removed in weasyprint 67.0 pypi.org - Removed
weasyprint.css.computed_values.FROM_UNITS
weasyprint.css.computed_values.FROM_UNITS was removed in weasyprint 67.0 pypi.org - Removed
weasyprint.css.computed_values.Layout
weasyprint.css.computed_values.Layout was removed in weasyprint 67.0 pypi.org - Removed
weasyprint.css.computed_values.LENGTHS_TO_PIXELS
weasyprint.css.computed_values.LENGTHS_TO_PIXELS was removed in weasyprint 67.0 pypi.org - Removed
weasyprint.css.computed_values.pango
weasyprint.css.computed_values.pango was removed in weasyprint 67.0 pypi.org - Removed
weasyprint.css.computed_values.safe_urljoin
weasyprint.css.computed_values.safe_urljoin was removed in weasyprint 67.0 pypi.org
And 82 more in this version. Sign up to see every change
weasyprint 66.0 breaking changes
- Removed
weasyprint.Document.build_element_structure
Document.build_element_structure was removed in weasyprint 66.0 pypi.org - Removed
weasyprint.document.stacked
weasyprint.document.stacked was removed in weasyprint 66.0 pypi.org - Removed
weasyprint.draw.stack
weasyprint.draw.stack was removed in weasyprint 66.0 pypi.org - Removed
weasyprint.draw.stacked
weasyprint.draw.stacked was removed in weasyprint 66.0 pypi.org - Removed
weasyprint.pdf.Stream.begin_marked_content
Stream.begin_marked_content was removed in weasyprint 66.0 pypi.org - Removed
weasyprint.pdf.Stream.end_marked_content
Stream.end_marked_content was removed in weasyprint 66.0 pypi.org - Removed
weasyprint.pdf.Stream.get_marked_content_tag
Stream.get_marked_content_tag was removed in weasyprint 66.0 pypi.org - Behavior changed
The style applied to the deprecated outline algorithm is now disabled, so documents relying on that outline styling may render differently. github.com - Signature changed
weasyprint.css.resolve_var
Was def resolve_var(computed, token, parent_style); now def resolve_var(computed, token, parent_style, known_variables=None). pypi.org - Signature changed
weasyprint.default_url_fetcher
Was def default_url_fetcher(url, timeout=10, ssl_context=None); now def default_url_fetcher(url, timeout=10, ssl_context=None, http_headers=None). pypi.org
And 6 more in this version. Sign up to see every change
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
weasyprint 65.0 breaking changes
- Removed
weasyprint.layout.flex.resolve_one_percentage
weasyprint.layout.flex.resolve_one_percentage was removed in weasyprint 65.0 pypi.org - Removed
weasyprint.layout.flex.resolve_percentages
weasyprint.layout.flex.resolve_percentages was removed in weasyprint 65.0 pypi.org
And 18 more in this version.
weasyprint 64.0 breaking changes
- Removed
weasyprint.pdf.fonts.Font.description
Font.description was removed in weasyprint 64.0 pypi.org - Renamed
weasyprint.css.computed_values.column_width
Use weasyprint.css.computed_values.length_pixels_only instead. pypi.org
And 4 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.