SVG output isn't ordered, making comparisons across different CI machines impossible...
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 498
- Forks
- 62
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 2
Description
We now output SVGs, and normalise the output as much as we can (IDs etc), but sometimes the params are coming out in different orders....
Ie, this is the BeyondCompare view of two the same image (Golden Test Master on the left, CI machine output on the right).
The images are identical, except the ordering of the parameters "style" and "viewbox" are reversed, making test comparisons impossible without significant pre-processing. Is it possible to get Kaleido to output the same order of params every time, regardless of machine used?
I guess the 2nd question here is, if Style is blank, why is it even there?
Thanks
Si
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing SVG export on the differing machines and trace where the style and viewbox parameters are serialized; done means deterministic ordering across environments and a clear decision on whether an empty style parameter should be omitted, covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100