Bug 143191 - Serialized declaration for background-size/-webkit-mask-size should preserve identical values instead of coalescing them
Summary: Serialized declaration for background-size/-webkit-mask-size should preserve ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords: InRadar, WebExposed
Depends on: 146852
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-29 03:01 PDT by Erik Aigner
Modified: 2015-07-10 13:41 PDT (History)
8 users (show)

See Also:


Attachments
Patch and layout tests (10.75 KB, patch)
2015-07-09 18:31 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff
Patch and layout tests (11.04 KB, patch)
2015-07-09 18:34 PDT, Daniel Bates
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Aigner 2015-03-29 03:01:32 PDT
When setting `background-size:100% 100%` on a BODY element, WebKit2 (WKWebView) rewrites it to `background-size:100%` which is equivalent to `100% auto`. This is a clear violation of the spec.

See http://stackoverflow.com/questions/29327537/css-background-size-ignores-2nd-value?noredirect=1#comment46845162_29327537 for discussion
Comment 1 Daniel Bates 2015-07-09 18:31:19 PDT
Created attachment 256552 [details]
Patch and layout tests
Comment 2 WebKit Commit Bot 2015-07-09 18:33:53 PDT
Attachment 256552 [details] did not pass style-queue:


ERROR: Source/WebCore/css/Pair.h:75:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
ERROR: Source/WebCore/css/Pair.h:76:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
Total errors found: 2 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Daniel Bates 2015-07-09 18:34:49 PDT
Created attachment 256553 [details]
Patch and layout tests

Update Apple copyright line in file Source/WebCore/css/Pair.h
Comment 4 WebKit Commit Bot 2015-07-09 18:36:55 PDT
Attachment 256553 [details] did not pass style-queue:


ERROR: Source/WebCore/css/Pair.h:75:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
ERROR: Source/WebCore/css/Pair.h:76:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
Total errors found: 2 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Radar WebKit Bug Importer 2015-07-09 18:39:15 PDT
<rdar://problem/21759393>
Comment 6 Radar WebKit Bug Importer 2015-07-09 18:39:17 PDT
<rdar://problem/21759395>
Comment 7 Daniel Bates 2015-07-09 18:42:00 PDT
(In reply to comment #6)
> <rdar://problem/21759395>

Disregard this comment.
Comment 8 Daniel Bates 2015-07-09 18:51:19 PDT
I
Comment 9 Darin Adler 2015-07-10 09:57:56 PDT
Comment on attachment 256553 [details]
Patch and layout tests

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

> Source/WebCore/css/Pair.h:50
> +    static Ref<Pair> create(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second, IdenticalValueEncoding encoding)

Arguments should be RefPtr&&, not PassRefPtr.

> Source/WebCore/css/Pair.h:76
> +    Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second) : m_first(first), m_second(second) { }
> +    Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second, IdenticalValueEncoding encoding) : m_first(first), m_second(second), m_encoding(encoding) { }

Arguments should be RefPtr&&, not PassRefPtr.
Comment 10 Daniel Bates 2015-07-10 10:17:27 PDT
(In reply to comment #9)
> > Source/WebCore/css/Pair.h:50
> > +    static Ref<Pair> create(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second, IdenticalValueEncoding encoding)
> 
> Arguments should be RefPtr&&, not PassRefPtr.
> 

Will fix before landing.

> > Source/WebCore/css/Pair.h:76
> > +    Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second) : m_first(first), m_second(second) { }
> > +    Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second, IdenticalValueEncoding encoding) : m_first(first), m_second(second), m_encoding(encoding) { }
> 
> Arguments should be RefPtr&&, not PassRefPtr.

Will fix before landing.
Comment 11 Daniel Bates 2015-07-10 13:41:36 PDT
Committed r186687: <http://trac.webkit.org/changeset/186687>