Polygon / Polyline: also accept string listing points
i.e. `path="1,2 3,4 5,6"`
d8bba30...
by
Jonathan Neuhauser <email address hidden>
Change formatter to ruff
b7cb381...
by
Jonathan Neuhauser <email address hidden>
Add unit test for #480
de96d1f...
by
Jonathan Neuhauser <email address hidden>
Allow lxml 5.0 and update poetry
1417b81...
by
Jonathan Neuhauser <email address hidden>
Update extensions to use get_specified_style
8827053...
by
Jonathan Neuhauser <email address hidden>
Refactor the internal style datastructure
What changed:
- Style now correctly deals with duplicate declarations of different
!importance, also respecting the order of shorthands
- BaseStyleValue has been removed, it combined parsing and value
storage in a bad way
- Instead of one big list of properties in properties.py, they are
cleanly described using dataclasses
- The internal datastructure of styles is now based on tinycss2 tokens
- Style inference methods for single attributes have been added (faster
than whole-style inference)
Breaking changes:
- Quotation delimiters inside style attributes are normalized to '"',
and HTML-escaped as "
Optional upgrades:
- Use element.get_computed_style(key) to get the computed value for
a particular attribute. element.specified_style()(key) will also
work, but unless you reuse the computed specified_style for many
properties, that's inefficient.