From 913a8b569e7591e2ef9b580e1b8386ced19e230a Mon Sep 17 00:00:00 2001 From: Xavid Pretzer Date: Fri, 22 Mar 2024 15:34:03 -0400 Subject: [PATCH] Update documentation to reflect support for leader(). Leader support was added in https://github.com/Kozea/WeasyPrint/pull/1309. --- docs/api_reference.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/api_reference.rst b/docs/api_reference.rst index 65fe2e63a..4d3a43423 100644 --- a/docs/api_reference.rst +++ b/docs/api_reference.rst @@ -483,10 +483,17 @@ and do not wish to include it in the bookmarks, add this in your stylesheet: h1 { bookmark-level: none } +`Leaders`_ are also supported: + +.. code-block:: css + + li a::after { + content: ' ' leader(dotted) ' ' target-counter(attr(href), page); + } + The other features of this module are **not** implemented: - quotes (``content: *-quote``); -- leaders (``content: leader()``). .. _CSS Generated Content Module Level 3: https://www.w3.org/TR/css-content-3/ .. _Quotes: https://www.w3.org/TR/css-content-3/#quotes @@ -495,6 +502,7 @@ The other features of this module are **not** implemented: .. _an example: https://github.com/Kozea/WeasyPrint/pull/652#issuecomment-403276559 .. _PDF bookmarks: https://www.w3.org/TR/css-content-3/#bookmark-generation .. _user agent stylesheet: https://github.com/Kozea/WeasyPrint/blob/main/weasyprint/css/html5_ua.css +.. _Leaders: https://www.w3.org/TR/css-content-3/#leaders CSS Color Module Level 3 ++++++++++++++++++++++++