Re: [svgwg] Behaviour of degenerate aspect-ratios. (#848)

According to SVG 1.1 recommendation negative values are in error, resulting in error processing.
Zero disables rendering, no attribute results in 100%.
The SVG 2 draft has to meet this behaviour to be backwards compatible and to avoid annoyance for authors and audience.

If SVG 2 still insists, that the CSS  properties width and height apply/overwrite the corresponding attributes, their values simply replace the attribute values before the old rules from 1.1 and 1.2 apply.

Comparable to the declarative animation case switching between 0 and another value is no problem, well defined, it only switches on and off rendering.

This simply means for the first example for presentation:
width 100px, height 50px, viewBox 0 0 1 1 results only in a rescaling as usual with the default
preserveAspectRatio xMidYMid meet.

For the second due to a negative value a presentation program starts with error processing, but after applying the CSS property with a proper value it swiches back to rendering.



-- 
GitHub Notification of comment by Doktorchen
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/848#issuecomment-834118018 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 7 May 2021 06:58:25 UTC