Bug 183990 - background-size should not accept negative values
Summary: background-size should not accept negative values
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: FromImplementor, InRadar
Depends on:
Blocks:
 
Reported: 2018-03-24 21:15 PDT by Eric Willigers
Modified: 2020-11-01 12:14 PST (History)
13 users (show)

See Also:


Attachments
Patch (7.79 KB, patch)
2020-11-01 10:08 PST, Tyler Wilcock
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Willigers 2018-03-24 21:15:09 PDT
WebKit (and Blink) currently accepts negative background-size.
https://jsfiddle.net/ericwilligers/2wzwt55t/

Spec: Negative values are not allowed.
https://drafts.csswg.org/css-backgrounds/#background-size
Comment 1 Radar WebKit Bug Importer 2018-03-27 14:39:55 PDT
<rdar://problem/38928257>
Comment 2 Eric Willigers 2018-08-03 22:12:46 PDT
Blink (like Edge and Firefox) now rejects negative background-size.
https://chromium-review.googlesource.com/c/chromium/src/+/989529
Comment 3 Tyler Wilcock 2020-11-01 10:08:37 PST
Created attachment 412863 [details]
Patch
Comment 4 EWS 2020-11-01 12:14:23 PST
Committed r269237: <https://trac.webkit.org/changeset/269237>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 412863 [details].