Bug 116870 - Allow no space between "background-position:" dimensions
Summary: Allow no space between "background-position:" dimensions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sergio Villar Senin
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-05-28 09:06 PDT by Sergio Villar Senin
Modified: 2013-05-30 11:20 PDT (History)
13 users (show)

See Also:


Attachments
Patch (13.30 KB, patch)
2013-05-30 07:06 PDT, Sergio Villar Senin
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 (528.72 KB, application/zip)
2013-05-30 09:35 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Villar Senin 2013-05-28 09:06:34 PDT
We should consider merging:
https://src.chromium.org/viewvc/blink?view=rev&revision=149314

Apart from fixing the "background-position: 1cm+1cm" case, it has a nice side effect, which is that dramatically reduces the number of shift/reduce conflicts.

See http://code.google.com/p/chromium/issues/detail?id=225020 for the original bug report.
Comment 1 Sergio Villar Senin 2013-05-30 07:06:34 PDT
Created attachment 203353 [details]
Patch
Comment 2 Darin Adler 2013-05-30 09:33:16 PDT
Comment on attachment 203353 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=203353&action=review

Looks OK to me. Hope we have sufficient test coverage. I’d like this better if it came with more new tests.

> Source/WebCore/css/CSSGrammar.y.in:1817
> -    '(' maybe_space calc_func_expr maybe_space ')' maybe_space {
> +    '(' maybe_space calc_func_expr calc_closing_paren {

Seems overkill to have a separate token just for optional space followed by parenthesis; maybe there is some good reason for it, though.
Comment 3 Build Bot 2013-05-30 09:35:36 PDT
Comment on attachment 203353 [details]
Patch

Attachment 203353 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/661193

New failing tests:
fast/dom/location-new-window-no-crash.html
Comment 4 Build Bot 2013-05-30 09:35:38 PDT
Created attachment 203365 [details]
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-14  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.3
Comment 5 Sergio Villar Senin 2013-05-30 10:04:39 PDT
(In reply to comment #2)
> (From update of attachment 203353 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=203353&action=review
> 
> Looks OK to me. Hope we have sufficient test coverage. I’d like this better if it came with more new tests.
> 
> > Source/WebCore/css/CSSGrammar.y.in:1817
> > -    '(' maybe_space calc_func_expr maybe_space ')' maybe_space {
> > +    '(' maybe_space calc_func_expr calc_closing_paren {
> 
> Seems overkill to have a separate token just for optional space followed by parenthesis; maybe there is some good reason for it, though.

I think the idea is just to reduce the (apparent) amount of rules as they share the same code.
Comment 6 Sergio Villar Senin 2013-05-30 10:17:53 PDT
(In reply to comment #3)
> (From update of attachment 203353 [details])
> Attachment 203353 [details] did not pass mac-wk2-ews (mac-wk2):
> Output: http://webkit-queues.appspot.com/results/661193
> 
> New failing tests:
> fast/dom/location-new-window-no-crash.html

Looks like it isn't related to my changes and this test was already failing in the EWS for some other patches, so I'll likely land this later.
Comment 7 Sergio Villar Senin 2013-05-30 11:20:26 PDT
Comment on attachment 203353 [details]
Patch

Clearing flags on attachment: 203353

Committed r150972: <http://trac.webkit.org/changeset/150972>
Comment 8 Sergio Villar Senin 2013-05-30 11:20:33 PDT
All reviewed patches have been landed.  Closing bug.