In some scenarios, BuilderConverter::convertToRadiusLength can return a negative Length of LengthType::Fixed. This is later blended with a Length of LengthType::Calculated which results in the incorrect Length constructor being called.
Created attachment 439425 [details] Patch
Created attachment 439870 [details] Patch
Smaller scope patch that still addresses the issue.
Created attachment 440076 [details] Patch
Comment on attachment 440076 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=440076&action=review > Source/WebCore/platform/Length.cpp:344 > + LengthType type = from.isZero() ? to.type() : from.type(); You can use `auto` here. > Source/WebCore/style/StyleBuilderConverter.h:321 > + Length length = value.computeLength<Length>(conversionData); You can use `auto` here.
Created attachment 440113 [details] Patch
<rdar://problem/83865564>
Committed r283568 (242533@main): <https://commits.webkit.org/242533@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440113 [details].