Bug 130949 - Maximum `border-width` significantly less than `margin` or `padding`
Summary: Maximum `border-width` significantly less than `margin` or `padding`
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Minor
Assignee: Nobody
URL: http://cdpn.io/hIGqo
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-30 19:11 PDT by Joey Hoer
Modified: 2022-07-13 17:12 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.