Support aspect-ratio on replaced elements.
Created attachment 414670 [details] Patch
<rdar://problem/71763936>
Created attachment 415665 [details] Patch
Created attachment 415755 [details] Patch
Created attachment 415794 [details] Patch
Comment on attachment 415794 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=415794&action=review > Source/WebCore/rendering/svg/RenderSVGRoot.cpp:109 > + if (style().aspectRatioType() == AspectRatioType::AutoAndRatio && !intrinsicRatioValue) > + intrinsicRatio = style().logicalAspectRatio(); > + else if (intrinsicRatioValue) > + intrinsicRatio = *intrinsicRatioValue; I would write it this way instead: if (intrinsicRatioValue) intrinsicRatio = *intrinsicRatioValue; else if (style().aspectRatioType() == AspectRatioType::AutoAndRatio) intrinsicRatio = style().logicalAspectRatio();
Created attachment 415842 [details] Patch
Committed r270618: <https://trac.webkit.org/changeset/270618> All reviewed patches have been landed. Closing bug and clearing flags on attachment 415842 [details].