Issue 123510 - [SVG] style from style element via class overwrites style attribute, but should not
Summary: [SVG] style from style element via class overwrites style attribute, but shou...
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: open-import (show other issues)
Version: 4.1.0-dev
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: 4.1.0
Assignee: Armin Le Grand
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-21 15:13 UTC by Regina Henschel
Modified: 2017-05-20 10:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
example with class, only style attribute, and both (1.08 KB, image/svg+xml)
2013-10-21 15:13 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2013-10-21 15:13:18 UTC
Created attachment 81791 [details]
example with class, only style attribute, and both

The style attribute has a higher specificity than the class selector. Therefore, when both are present, the rules of the style attribute has to be used.

In the attached svg graphic the first and last rectangle should have the same appearance.
Comment 1 Armin Le Grand 2013-10-30 11:21:40 UTC
ALG: Changed the priority chain for styles which is created in SvgNode::checkForCssStyle to reflect that, did the usual tests with the attachment and my local SVG test files, looks good. Preparing commit...
Comment 2 SVN Robot 2013-10-30 11:22:21 UTC
"alg" committed SVN revision 1537044 into trunk:
i123510 changed priority in style preparation
Comment 3 Armin Le Grand 2013-10-30 11:22:42 UTC
ALG: Okay, done.
Comment 4 zhaoshzh 2014-04-09 05:27:29 UTC
verified on AOO410m15(Build:9761)  -  Rev. 1585021
Comment 5 zhaoshzh 2014-04-09 07:39:20 UTC
verified on AOO410m14(Build:9760)  -  Rev. 1585624