Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ExCSS to 4.2.2. #1091

Merged
merged 2 commits into from Sep 8, 2023
Merged

Update ExCSS to 4.2.2. #1091

merged 2 commits into from Sep 8, 2023

Conversation

H1Gdev
Copy link
Contributor

@H1Gdev H1Gdev commented Sep 6, 2023

Reference Issue

What does this implement/fix? Explain your changes.

Any other comments?

@H1Gdev
Copy link
Contributor Author

H1Gdev commented Sep 6, 2023

@mrbean-bremen

#1083 (comment)

Update ExCSS to latest without impacting users.

@H1Gdev H1Gdev marked this pull request as ready for review September 6, 2023 12:24
@mrbean-bremen
Copy link
Member

@inforithmics - please have a look

Copy link
Contributor

@inforithmics inforithmics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the better solution for updating the ExCSS Library less changes

@@ -186,7 +186,7 @@ private void SetAttributes(SvgElement element, XmlReader reader, SvgDocument doc
var inlineSheet = stylesheetParser.Parse("#a{" + reader.Value + "}");
foreach (var rule in inlineSheet.StyleRules)
foreach (var declaration in rule.Style)
element.AddStyle(declaration.Name, declaration.Value, SvgElement.StyleSpecificity_InlineStyle);
element.AddStyle(declaration.Name, declaration.Original, SvgElement.StyleSpecificity_InlineStyle);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this is the solution, so that the values don't change. Because before the update .Value was the same as .Original

@mrbean-bremen mrbean-bremen merged commit adc8db1 into svg-net:master Sep 8, 2023
7 checks passed
@H1Gdev H1Gdev deleted the excss branch September 8, 2023 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants