Bug 189137 - grid track size should reject unitless length
Summary: grid track size should reject unitless length
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Rob Buis
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-08-29 18:22 PDT by Eric Willigers
Modified: 2021-05-21 10:17 PDT (History)
13 users (show)

See Also:


Attachments
Patch (4.88 KB, patch)
2021-05-21 00:10 PDT, Rob Buis
no flags Details | Formatted Diff | Diff
Patch (3.99 KB, patch)
2021-05-21 01:45 PDT, Rob Buis
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-08-29 18:22:35 PDT
In quirks mode, Safari currently accepts unitless lengths for the following properties:
- grid-auto-columns
- grid-auto-rows
- grid-template-columns
- grid-template-rows

This is contrary to spec. 
https://quirks.spec.whatwg.org/#the-unitless-length-quirk
https://drafts.csswg.org/css-grid/#track-sizing
Comment 1 Eric Willigers 2018-08-29 18:26:39 PDT
background-size should also reject unitless length.
Comment 2 Eric Willigers 2018-10-25 23:34:51 PDT
See also https://bugs.webkit.org/show_bug.cgi?id=104805
Comment 3 Rob Buis 2021-05-21 00:10:03 PDT
Created attachment 429269 [details]
Patch
Comment 4 Rob Buis 2021-05-21 01:45:07 PDT
Created attachment 429272 [details]
Patch
Comment 5 Sergio Villar Senin 2021-05-21 08:51:52 PDT
Comment on attachment 429272 [details]
Patch

Nice!
Comment 6 EWS 2021-05-21 10:16:28 PDT
Committed r277868 (238008@main): <https://commits.webkit.org/238008@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 429272 [details].
Comment 7 Radar WebKit Bug Importer 2021-05-21 10:17:21 PDT
<rdar://problem/78316259>