Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CSS Color Module Level 4 #53

Merged
merged 20 commits into from
Oct 24, 2024
Merged

Support CSS Color Module Level 4 #53

merged 20 commits into from
Oct 24, 2024

Commits on Jun 18, 2024

  1. add new module to support CSS Color Level 4

    Implementation of level 4 specifications is currently limited to (1) space-seperated arguments with an optional slash-seperated opacity, (2) definition of 'rebeccapurple', (3) percentages and numbers are accepted as opacity value, (4) the hwb() function and (5) hsla()/rgba() being aliases to hsl()/rgb().
    ax-sc authored and liZe committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    d72ee16 View commit details
    Browse the repository at this point in the history
  2. Clean a docstring

    liZe committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    c166d47 View commit details
    Browse the repository at this point in the history
  3. Clean and improve color4 support

    - clean code and docstrings
    - handle angles in hwb()
    - copy extended colors to avoid a modification of color3’s list
    liZe committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    4dd710d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    29e2e7c View commit details
    Browse the repository at this point in the history
  5. Minor improvements to color4

    liZe committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    6401046 View commit details
    Browse the repository at this point in the history
  6. Revert "Only allow 4- and 8-digit hashes in Color Level 4"

    4- and 8-digit hashes have first been added in a different CSS specification,
    independant from Color Level 3.
    
    This reverts commit c3f4c96.
    liZe committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    61715ec View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f112fb9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d13b72e View commit details
    Browse the repository at this point in the history
  9. Handle CIELab and OKLab colors

    liZe committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    8332f55 View commit details
    Browse the repository at this point in the history
  10. Minor fixes

    liZe committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    097314a View commit details
    Browse the repository at this point in the history
  11. Update tests

    liZe committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    706e340 View commit details
    Browse the repository at this point in the history
  12. Update ruff rules

    liZe committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    6b54e61 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Handle None values

    liZe committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    3ffe0e6 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2024

  1. Support color function

    liZe committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    911de48 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. WIP

    liZe committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    2c4233d View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Configuration menu
    Copy the full SHA
    a9d5371 View commit details
    Browse the repository at this point in the history
  2. Don’t use too recent math.cbrt

    It’s been added in Python 3.11 (!)
    liZe committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    95d681f View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. Configuration menu
    Copy the full SHA
    56c498b View commit details
    Browse the repository at this point in the history
  2. Move color conversion code to the bottom of the file

    It’s internal undocumented code, Color is better higher in the code.
    liZe committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    a2f4d22 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Configuration menu
    Copy the full SHA
    ebef899 View commit details
    Browse the repository at this point in the history