FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow calc() function inside rgba() and hsla() by thomashigginbotham · Pull Request #259 · MyIntervals/PHP-CSS-Parser · GitHub

Repository navigation

Allow calc() function inside rgba() and hsla() - #259

Open
thomashigginbotham wants to merge 1 commit into
MyIntervals:mainfrom
thomashigginbotham:fix/rgba-calc
Open

thomashigginbotham wants to merge 1 commit into
MyIntervals:mainfrom
thomashigginbotham:fix/rgba-calc

Conversation

Copy link
Copy Markdown

This fix allows the alpha value of rgba() and hsla() functions to accept
a calc() function.

This fix allows the alpha value of rgba() and hsla() functions to accept
a calc() function.
Comment thread tests/ParserTest.php
. "\n"
. '#variables-alpha {background-color: rgba(var(--some-rgb),.1);'
. 'background-color: rgba(var(--some-rg),255,.1);background-color: hsla(var(--some-hsl),.1);}',
. 'background-color: rgba(var(--some-rg),255,.1);background-color: hsla(var(--some-hsl),.1);}'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Soon, I'd like to split up the tests so that each test method is only about one piece of behavior, not multiple things mashed together. You can help my work by moving the test for the new behavior into a new test. Thanks!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Not sure if I'll have time for awhile. I needed a quick fix for the calc() issue, and I saw the necessary changes were simple enough. I didn't dig too far into the unit testing, but I agree that it would be better to break them up into separate tests.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@thomashigginbotham If you don't have time now, then let's keep this PR as it is, and then I will split up the test later. Kudos to you for covering your change with a test, by the way! ❤️

oliverklee deleted the branch MyIntervals:main February 7, 2024 11:36
oliverklee closed this Feb 7, 2024
oliverklee reopened this Feb 7, 2024
oliverklee changed the base branch from master to main February 7, 2024 22:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL