-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[16845] Color Class for Javascript library #16944
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
base: trunk
Are you sure you want to change the base?
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:
|
|||||||||||||||||||||
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