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

CSS stroke-dasharray ignored by browsers but not other viewers #474

Closed
Alxandr opened this issue Feb 8, 2017 · 1 comment
Closed

CSS stroke-dasharray ignored by browsers but not other viewers #474

Alxandr opened this issue Feb 8, 2017 · 1 comment

Comments

@Alxandr
Copy link

Alxandr commented Feb 8, 2017

The following diagram

sequenceDiagram
A--> B: 1
A-> B: 2
Loading

However, in the output produced, I get both styled (by css) with stroke-dasharray:

.messageLine0 {
  stroke-width: 1.5;
  stroke-dasharray: "2 2";
  marker-end: "url(#arrowhead)";
  stroke: #333;
}

The dasharray set to "2 2" is ignored by browsers however, because it's invalid:

image

My problem is that inkscape is not ignoring this dasharray. Is there any reason for it being there?

@tylerlong
Copy link
Collaborator

The style is override by inline style:

image

Is there any reason for it being there?

Because he who creates the theme put it there :)

You can update the theme to remove it: https://github.com/knsv/mermaid/tree/master/src/themes

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
…s#474)

Bumps [node-html-parser](https://github.com/taoqf/node-fast-html-parser) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/taoqf/node-fast-html-parser/releases)
- [Changelog](https://github.com/taoqf/node-html-parser/blob/main/CHANGELOG.md)
- [Commits](taoqf/node-html-parser@v5.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: node-html-parser
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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

No branches or pull requests

2 participants