Fixed layout SVG dimensions can also be obtained from height/width attributes #902
Labels
spec: EPUB 3.2
Impacting the support of EPUB 3.2
status: has PR
The issue is being processed in a pull request
Milestone
Prior to 3.2, the dimensions had to be set in the viewBox attribute, but now it's valid to specify the dimension in height/width attributes on the svg root element. It's also valid to specify both the viewBox and height/width.
If only height/width are set, there should be a warning to use viewBox, as the specification contains a recommendation to only use it.
Reference: https://w3c.github.io/publ-epub-revision/epub32/spec/epub-contentdocs.html#sec-fxl-icb-svg
The text was updated successfully, but these errors were encountered: