Description: There's some CSS inside the attached svg that looks like this: .cls-2, .cls-3 { fill: #fff; } .cls-2 { opacity: 0.3; } The expected behavior is that .cls-2 has both fill: #fff and opacity: 0.3 attributes. Instead it only gets the first attribute. If you move the opacity line to the block you will notice that this is not a problem with opacity but with the second definition of the class getting ignored. Steps to Reproduce: 1. Open attached SVG Actual Results: Bottom left circle is opaque white Expected Results: Bottom left circle is transparent white, causing a lighter blue color as demonstrated in the comparison Reproducible: Always User Profile Reset: Yes Additional Info: -
Created attachment 180563 [details] test case
Created attachment 180564 [details] comparison, LO left, Chrome right
I have fixed this bug here: https://gerrit.libreoffice.org/c/core/+/136109 would be great if anyone can review it. The test case looks as expected now.
offtkp committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/99f8e8aa0ccb741c2b5ede6cab75798c1793d899 tdf#149449 Don't ignore CSS class redefinition inside SVGs It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
offtkp committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/eedc5b1c576fcaaea85a5278762efc8ba8c5a084 tdf#149449 Add unit test for CSS class redefinition inside SVGs It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
offtkp committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/34e08a82a317e06d2526f5a16a522323c3902bd7 tdf#149449 Don't ignore CSS class redefinition inside SVGs It will be available in 7.4.0.0.beta2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
offtkp committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/d931e8876cbaf8e409ebbba97d991d0099124de4 tdf#149449 Add unit test for CSS class redefinition inside SVGs It will be available in 7.4.0.0.beta2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
offtkp committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/c9f71c923f82cf430c3b67ee7af8ff9c681e7c0b tdf#149449 Don't ignore CSS class redefinition inside SVGs It will be available in 7.3.6. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.