You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Some css named colors are not correctly parsed.
To Reproduce
I have a PR ready to fix the issue, with a related test file (#1005).
However, for the record, here is how I initially identified the issue:
constelementA=document.createElement('div')elementA.style.border='3px antiquewhite solid'elementA.style.borderColor='green'// With most of the css named colors (here "antiquewhite"), the following assertion passes.expect(elementA.getAttribute('style')).toStrictEqual('border: 3px solid green;')constelementB=document.createElement('div')elementB.style.border='3px aliceblue solid'elementB.style.borderColor='green'// With some of the css named colors (here "aliceblue"), the following assertion fails.// Style attribute is actually "border-color: green;"expect(elementB.getAttribute('style')).toStrictEqual('border: 3px solid green;')
Expected behavior
I expect all css named colors to be correctly parsed
The text was updated successfully, but these errors were encountered:
Describe the bug
Some css named colors are not correctly parsed.
To Reproduce
I have a PR ready to fix the issue, with a related test file (#1005).
However, for the record, here is how I initially identified the issue:
Expected behavior
I expect all css named colors to be correctly parsed
The text was updated successfully, but these errors were encountered: