Issue #3109 - Use CSS' internal length clamp value instead.

This commit is contained in:
Moonchild committed 2026-05-29 23:53:22 +02:00
1 parent 09276b72a6
commit 400e59a96d
1 file changed
+1 -1
+1 -1
View File
@@ -8610,7 +8610,7 @@ nsRuleNode::ComputeBorderData(void* aStartStruct,
{
const nsCSSPropertyID* subprops =
nsCSSProps::SubpropertyEntryFor(eCSSProperty_border_radius);
const float RADIUS_MAX = (1 << 31) - 1; // Int32.MaxValue
const float RADIUS_MAX = 17895697; // CSS length clamp value
NS_FOR_CSS_FULL_CORNERS(corner) {
int cx = FullToHalfCorner(corner, false);
int cy = FullToHalfCorner(corner, true);