100pah commented on issue #19093:
URL: https://github.com/apache/echarts/issues/19093#issuecomment-1838117048
By ecomfe/zrender#1030 , the bug disappears. Thanks @alxnddr !
The root cause of this bug is unknown yet.
Just record some phenomena:
In safari (macOS13.3, safari Version 16.4 (18615.1.26.11.22)):
1. When we hover the bar to make the text color become white unexpectedly,
text attribute will not changed, the only changes are:
+ bar element `elm.setAttribute('fill', 'rgb(92,123,217)'); /* or
"#5470c6" */`
+ the order of the corresponding elements.
2. When this changes happen, if a SVG text node has no `elm.style.cssText =
'font:12px'; /* or 'font-family:xxx' */`, the text color probably become white
unexpectedly.
+ Note that `elm.setAttribute('style', 'font:12px'); /* or
'font-family:xxx' */` works for the style but the bug still happens.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]