Issue 123510

Summary: [SVG] style from style element via class overwrites style attribute, but should not
Product: Draw Reporter: Regina Henschel <rb.henschel>
Component: open-importAssignee: Armin Le Grand <Armin.Le.Grand>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P3 CC: aoo.zhaoshzh, Armin.Le.Grand, issues
Version: 4.1.0-dev   
Target Milestone: 4.1.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
example with class, only style attribute, and both none

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