Skip to content

Commit

Permalink
Merge pull request #2017 from Kozea/functions
Browse files Browse the repository at this point in the history
Support var() in shorthand and multiple-value functions
  • Loading branch information
liZe authored Jan 3, 2024
2 parents bc97131 + 0ec1ac4 commit f0824a2
Show file tree
Hide file tree
Showing 14 changed files with 567 additions and 248 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.11']
python-version: ['3.12']
include:
- os: ubuntu-latest
python-version: '3.7'
python-version: '3.8'
- os: ubuntu-latest
python-version: 'pypy-3.8'
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WebKit or Gecko. The CSS layout engine is written in Python, designed for
pagination, and meant to be easy to hack on.

* Free software: BSD license
* For Python 3.7+, tested on CPython and PyPy
* For Python 3.8+, tested on CPython and PyPy
* Documentation: https://doc.courtbouillon.org/weasyprint
* Examples: https://weasyprint.org/#samples
* Changelog: https://github.com/Kozea/WeasyPrint/releases
Expand Down
4 changes: 1 addition & 3 deletions docs/api_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -715,11 +715,9 @@ The `CSS Custom Properties for Cascading Variables Module Level 1`_ "introduces
cascading variables as a new primitive value type that is accepted by all CSS
properties, and custom properties for defining them."

The custom properties are supported. The ``var()`` notation is `only supported
in single-value properties`_.
The custom properties and the ``var()`` notation are supported.

.. _CSS Custom Properties for Cascading Variables Module Level 1: https://www.w3.org/TR/css-variables/
.. _only supported in single-value properties: https://github.com/Kozea/WeasyPrint/issues/1219

CSS Text Decoration Module Level 3
++++++++++++++++++++++++++++++++++
Expand Down
2 changes: 1 addition & 1 deletion docs/first_steps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Installation

WeasyPrint |version| depends on:

* Python_ ≥ 3.7.0
* Python_ ≥ 3.8.0
* Pango_ ≥ 1.44.0
* pydyf_ ≥ 0.6.0
* CFFI_ ≥ 0.6
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = 'The Awesome Document Factory'
keywords = ['html', 'css', 'pdf', 'converter']
authors = [{name = 'Simon Sapin', email = '[email protected]'}]
maintainers = [{name = 'CourtBouillon', email = '[email protected]'}]
requires-python = '>=3.7'
requires-python = '>=3.8'
readme = {file = 'README.rst', content-type = 'text/x-rst'}
license = {file = 'LICENSE'}
dependencies = [
Expand All @@ -29,11 +29,11 @@ classifiers = [
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP',
Expand Down
Loading

0 comments on commit f0824a2

Please sign in to comment.