[nodejs] Color Class for Javascript library#16944
[nodejs] Color Class for Javascript library#16944BckupMuthu wants to merge 14 commits intoSeleniumHQ:trunkfrom
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||||||
|
@cgoldberg : can you help with the review please |
|
hi @cgoldberg : Good Day, Checking if anything pending from my side as part of this PR to get this merged, |
|
@BckupMuthu see if you can get someone to do a code review in the Slack channel. |
User description
🔗 Related Issues
#16845
💥 What does this PR do?
Color utility in the JavaScript bindings that focuses on:
Parsing CSS color strings
Converting between formats (hex, rgb, rgba)
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Adds Color utility class for parsing and converting CSS color formats
Supports multiple color formats: rgb, rgba, hex, hsl, hsla, named colors
Provides conversion methods between formats (asRgb, asRgba, asHex)
Includes comprehensive test suite with integration tests
Diagram Walkthrough
File Walkthrough
color.js
Core Color class implementation with format parsersjavascript/selenium-webdriver/lib/color.js
debugging
index.js
Export Color utilities in main modulejavascript/selenium-webdriver/index.js
color_test.js
Comprehensive Color class unit and integration testsjavascript/selenium-webdriver/test/lib/color_test.js
hsla, named)
color handling