Bug 143483 - Fill list style background with same color with that of list background.
Summary: Fill list style background with same color with that of list background.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: ChangSeok Oh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-07 10:16 PDT by ChangSeok Oh
Modified: 2016-04-06 21:33 PDT (History)
10 users (show)

See Also:


Attachments
Patch (34.67 KB, patch)
2015-04-07 10:33 PDT, ChangSeok Oh
no flags Details | Formatted Diff | Diff
Patch (56.98 KB, patch)
2015-04-08 00:27 PDT, ChangSeok Oh
simon.fraser: review+
simon.fraser: commit-queue-
Details | Formatted Diff | Diff
Patch (6.50 KB, patch)
2015-04-08 06:47 PDT, ChangSeok Oh
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-mavericks (586.17 KB, application/zip)
2015-04-08 07:37 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (645.19 KB, application/zip)
2015-04-08 07:44 PDT, Build Bot
no flags Details
Patch (57.20 KB, patch)
2015-04-08 08:40 PDT, ChangSeok Oh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ChangSeok Oh 2015-04-07 10:16:22 PDT
List style ignores selection background color.
Comment 1 ChangSeok Oh 2015-04-07 10:33:21 PDT
Created attachment 250273 [details]
Patch

WIP
Comment 2 ChangSeok Oh 2015-04-08 00:27:32 PDT
Created attachment 250341 [details]
Patch
Comment 3 Simon Fraser (smfr) 2015-04-08 00:39:18 PDT
Comment on attachment 250341 [details]
Patch

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

> LayoutTests/ChangeLog:9
> +        * fast/backgrounds/selection-background-color-of-image-list-style.html: Added.
> +        * fast/backgrounds/selection-background-color-of-list-style.html: Added.

It would be good if these could be reference tests instead.

> LayoutTests/fast/backgrounds/selection-background-color-of-list-style.html:3
> +ul>li::selection { background: red; }

Please don't use red in a passing test.
Comment 4 ChangSeok Oh 2015-04-08 00:59:33 PDT
Comment on attachment 250341 [details]
Patch

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

Thanks for your review.

>> LayoutTests/ChangeLog:9
>> +        * fast/backgrounds/selection-background-color-of-list-style.html: Added.
> 
> It would be good if these could be reference tests instead.

Hrm. I don't know a better way except pixel test. Is there a way to get background color of list style programmatically?

>> LayoutTests/fast/backgrounds/selection-background-color-of-list-style.html:3
>> +ul>li::selection { background: red; }
> 
> Please don't use red in a passing test.

Then green?
Comment 5 ChangSeok Oh 2015-04-08 04:24:21 PDT
Though I could write a reference test, but I can create a perfectly matched expected.html. Reference test is too strict. I can't overcome 0.01% of difference between expected and actual. Is there anyway to suppress it?
Comment 6 ChangSeok Oh 2015-04-08 04:25:31 PDT
(In reply to comment #5)
> but I can create a perfectly matched expected.html.
Sorry, %s/can/can't
Comment 7 ChangSeok Oh 2015-04-08 06:47:55 PDT
Created attachment 250349 [details]
Patch
Comment 8 Build Bot 2015-04-08 07:37:26 PDT
Comment on attachment 250349 [details]
Patch

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

New failing tests:
fast/backgrounds/selection-background-color-of-image-list-style.html
fast/backgrounds/selection-background-color-of-list-style.html
Comment 9 Build Bot 2015-04-08 07:37:29 PDT
Created attachment 250350 [details]
Archive of layout-test-results from ews101 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 10 Build Bot 2015-04-08 07:44:54 PDT
Comment on attachment 250349 [details]
Patch

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

New failing tests:
fast/backgrounds/selection-background-color-of-image-list-style.html
fast/backgrounds/selection-background-color-of-list-style.html
Comment 11 Build Bot 2015-04-08 07:44:57 PDT
Created attachment 250351 [details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 12 ChangSeok Oh 2015-04-08 08:09:39 PDT
Weird. I don't know where the 0.01% difference come from. I'll bring back pixel test results and land it if no strong objection.
Comment 13 ChangSeok Oh 2015-04-08 08:40:22 PDT
Created attachment 250353 [details]
Patch
Comment 14 WebKit Commit Bot 2015-04-08 10:15:03 PDT
Comment on attachment 250353 [details]
Patch

Clearing flags on attachment: 250353

Committed r182546: <http://trac.webkit.org/changeset/182546>
Comment 15 ChangSeok Oh 2016-04-06 21:33:15 PDT
Patch landed. Close this.