mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 10:20:22 +00:00
From the SVG spec The value of the ‘viewBox’ attribute is a list of four numbers <min-x>, <min-y>, <width> and <height>, separated by whitespace and/or a comma... Currently try_parse_view_box will fail to parse the attribute if the values are separated by commas. This change replaces try_parse_view_box with a more correct implementation. It will reside in the AttributeParser.cpp. This new implementation correctly handles comma-separated viewBox values, and is also more robust against invalid inputs. Additionally, it adds a new test case to ensure viewBox values with various syntax are parsed correctly and invalid values are rejected. |
||
|---|---|---|
| .. | ||
| a-element-prototype.txt | ||
| getBBox-outermost-svg-element-crash.txt | ||
| gradient-with-reference-cycle.txt | ||
| removeChild-on-ancestor-of-use-element.txt | ||
| script-element-dynamic-insertion.txt | ||
| svg-circle-detached.txt | ||
| svg-className-attribute.txt | ||
| svg-element-proto.txt | ||
| svg-feGaussianBlur-stdDeviation.txt | ||
| svg-getbbox-transform-with-no-inverse.txt | ||
| svg-href-qualified-name.txt | ||
| svg-href.txt | ||
| svg-ownerSVGElement-attribute.txt | ||
| svg-rect-animated-length.txt | ||
| svg-script-element.txt | ||
| svg-svg-getElementById.txt | ||
| svg-viewBox-attribute.txt | ||
| svg-viewbox-syntax.txt | ||
| svg-viewbox-zero-height.txt | ||
| use-shadowRoot-closed.txt | ||