Repository: GraphiteEditor/Graphite (language: rust)

Issue:
SVG export `viewbox` typo.
When exporting an SVG, the `viewBox` element is incorrectly spelled in lowercase. This breaks the SVG when rendering in the browser if you try to scale it.

reference:
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox 


Discussion / hints:

Fix patch:
diff --git a/node-graph/gcore/src/graphic_element/renderer.rs b/node-graph/gcore/src/graphic_element/renderer.rs
index 19e013e0e2..f52e3a9b88 100644
--- a/node-graph/gcore/src/graphic_element/renderer.rs
+++ b/node-graph/gcore/src/graphic_element/renderer.rs
@@ -153,7 +153,7 @@ impl SvgRender {
 	pub fn wrap_with_transform(&mut self, transform: DAffine2, size: Option<DVec2>) {
 		let defs = &self.svg_defs;
 		let view_box = size
-			.map(|size| format!("viewbox=\"0 0 {} {}\" width=\"{}\" height=\"{}\"", size.x, size.y, size.x, size.y))
+			.map(|size| format!("viewBox=\"0 0 {} {}\" width=\"{}\" height=\"{}\"", size.x, size.y, size.x, size.y))
 			.unwrap_or_default();
 
 		let matrix = format_transform_matrix(transform);


Test patch: