Skip to content

[Bug] Fix color parsing#75

Open
dfop02 wants to merge 1 commit intorelease/1.1.5from
bug/fix-color-issues
Open

[Bug] Fix color parsing#75
dfop02 wants to merge 1 commit intorelease/1.1.5from
bug/fix-color-issues

Conversation

@dfop02
Copy link
Copy Markdown
Owner

@dfop02 dfop02 commented Mar 22, 2026

Description

Problem

Border styles using rgb() or rgba() with spaces (e.g. rgb(222, 222, 222)) were not parsed correctly because the parser splits values by spaces, breaking the color into invalid parts.

Solution

Normalize rgb()/rgba() values by removing internal spaces before parsing, allowing them to be handled correctly by the existing logic.

Impact

  • Fixes incorrect border color rendering for RGB/RGBA values
  • Keeps parsing logic simple and performant
  • No changes to existing behavior outside this case

Issue Reference

Fixes #73

Checklist Before Requesting a Review

  • I have performed a self-review of my code.
  • My code follows the project's coding style and guidelines.
  • I have run tests and verified that all existing and new tests pass.
  • I have added new tests to cover my changes.

@dfop02 dfop02 self-assigned this Mar 22, 2026
@dfop02 dfop02 added the bug Something isn't working label Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant