ladybird/Tests/LibWeb/Text/input/SVG
Erik Kurzinger 21ff66c6cb LibWeb/SVG: Parse comma-separated SVG viewBox
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.
2025-08-30 15:49:11 +02:00
..
a-element-prototype.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
getBBox-outermost-svg-element-crash.html LibWeb: Don't crash when calling getBBox() on the outermost SVG element 2024-09-07 14:35:02 +02:00
gradient-with-reference-cycle.html LibWeb: Handle reference cycles in SVG gradient linking 2024-03-11 18:29:10 +01:00
removeChild-on-ancestor-of-use-element.html LibWeb: Don't treat SVG "use clone" removals as "use source" removals 2025-08-07 22:15:36 +02:00
script-element-dynamic-insertion.html LibWeb/SVG: Process script element when its text content changes 2025-02-26 16:08:35 +01:00
svg-circle-detached.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-className-attribute.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-element-proto.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-feGaussianBlur-stdDeviation.html LibWeb: Implement SVGAnimatedNumber 2025-07-11 11:25:59 +01:00
svg-getbbox-transform-with-no-inverse.html LibWeb/SVG: Ensure SVG transform has an inverse before using it 2024-07-22 09:13:25 +02:00
svg-href-qualified-name.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-href.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-ownerSVGElement-attribute.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-rect-animated-length.html LibWeb: Implement SVGLength's read-only property 2025-08-27 11:50:27 +02:00
svg-script-element.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-svg-getElementById.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-viewBox-attribute.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-viewbox-syntax.html LibWeb/SVG: Parse comma-separated SVG viewBox 2025-08-30 15:49:11 +02:00
svg-viewbox-zero-height.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
use-shadowRoot-closed.html LibWeb: SVG use element shadow roots should be closed, not open 2025-08-07 22:15:36 +02:00