Bug 422862 - SVG gradient inside ellipse does not work in all cases.
Summary: SVG gradient inside ellipse does not work in all cases.
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml svg (other bugs)
Version First Reported In: 5.0.97
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-12 10:48 UTC by ScootrKDEbug Richards
Modified: 2024-05-06 20:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
HTML file to reproduce bug, and to show correct operation (1.46 KB, text/html)
2020-06-12 10:48 UTC, ScootrKDEbug Richards
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ScootrKDEbug Richards 2020-06-12 10:48:43 UTC
Created attachment 129252 [details]
HTML file to reproduce bug, and to show correct operation

SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
<!-- WORKS: cx="20%" cy="30%" r="37%" fx='50%' fy="50%" -->
<!-- FAILS: cx="20%" cy="30%" r="36%" fx='50%' fy="50%" -->
<radialGradient id="grad2" cx="20%" cy="30%" r="37%" fx='50%' fy="50%">

Using the Parameters above marked "FAILS:" (Note r="36%") the gradient appears as a flat "pie chart" sort of thing.

EXPECTED RESULT
Ellipse containing a "headlights on the road" internal ellipse gradient. Using the Parameters above marked "WORKS:" (Note r="37%") the gradient appears as expected.

OK, I'm not a great mathematician. I may be doing something wrong, but I don't see how. I change the angle of the gradient by 1 degree and it fails. This is the entire HTML I'm using (I'm learning how to use SVG, and I believe in learning it old school - writing the code without an IDE.).
Is it some kind of degrees-to-Radians mistake? or is it a legit bug?

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.12.9
(available in About System) <<== Doesn't allow copy-paste from the INFO.
                             <<== So I had to type in all the numbers by hand.
Why was this one display made uncopyable?????????
KDE Plasma Version: 5.12.9
KDE Frameworks Version:5.44.0
 
Qt Version: Qt: 5.9.5
Kernel: 5.3.0-59-generic
OS Type: 64-bit
Processors: 8 x Intel Core i5-8265U
Konqueror: Version 5.0.97
ADDITIONAL INFORMATION

"About KDE" in Konqueror help menu doesn't show version.
Comment 1 ScootrKDEbug Richards 2020-06-12 10:57:42 UTC
Note: the 'FAILS' code works as expected in Firefox, which is why I suspect it's a bug in Konq. Screen prints available on request.
Comment 2 Christoph Feck 2020-07-08 17:48:35 UTC
> Why was this one display made uncopyable?

It works in newer Plasma versions, e.g. Plasma 5.18 from Kubuntu 20.04. It looks like you are using an older version.
Comment 3 Christoph Cullmann 2024-05-06 20:59:52 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann