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.html | ||
| getBBox-outermost-svg-element-crash.html | ||
| gradient-with-reference-cycle.html | ||
| removeChild-on-ancestor-of-use-element.html | ||
| script-element-dynamic-insertion.html | ||
| svg-circle-detached.html | ||
| svg-className-attribute.html | ||
| svg-element-proto.html | ||
| svg-feGaussianBlur-stdDeviation.html | ||
| svg-getbbox-transform-with-no-inverse.html | ||
| svg-href-qualified-name.html | ||
| svg-href.html | ||
| svg-ownerSVGElement-attribute.html | ||
| svg-rect-animated-length.html | ||
| svg-script-element.html | ||
| svg-svg-getElementById.html | ||
| svg-viewBox-attribute.html | ||
| svg-viewbox-syntax.html | ||
| svg-viewbox-zero-height.html | ||
| use-shadowRoot-closed.html | ||