Bug 130949

Summary: Maximum `border-width` significantly less than `margin` or `padding`
Product: WebKit Reporter: Joey Hoer <me>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Minor CC: bfulgham
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://cdpn.io/hIGqo

Description Joey Hoer 2014-03-30 19:11:51 PDT
Referring to CSS property values: While `margin` and `padding` appear to be constrained to 2^25px (33554428px), `border-width` appears to be "capped" at a considerably smaller value 2^16px (65536px). While the `border-width` can seemingly be set to larger values, doing so leads to some unexpected bugs, such as negative values for computed width.

The expected behavior would be that `border-width` would have the same maximum value as `margin` and `padding`, and overflowing this value would not cause negative width values (as `width` cannot be negative).
Comment 1 Brent Fulgham 2022-07-13 17:12:19 PDT
It's difficult to confirm this bug without a test case. We don't believe there is an ongoing issue here. If you do feel there is a problem, please REOPEN this bug and include a test case illustrating the issue.