Bug 215507 - AX: implement prefers-contrast: more
Summary: AX: implement prefers-contrast: more
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: chris fleizach
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-08-14 09:28 PDT by James Craig
Modified: 2020-12-14 22:29 PST (History)
13 users (show)

See Also:


Attachments
patch (31.93 KB, patch)
2020-12-10 11:15 PST, chris fleizach
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
patch (33.03 KB, patch)
2020-12-10 11:43 PST, chris fleizach
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
patch (41.18 KB, patch)
2020-12-10 15:33 PST, chris fleizach
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
patch (41.16 KB, patch)
2020-12-11 22:22 PST, chris fleizach
no flags Details | Formatted Diff | Diff
patch (39.09 KB, patch)
2020-12-14 13:32 PST, chris fleizach
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Craig 2020-08-14 09:28:13 PDT
Spec: https://drafts.csswg.org/mediaqueries-5/#prefers-contrast

Note: the new `more` value used to be called `high` (hanged because high is a decent name for the Windows implementation, but not the Mac or iOS one)

The `low` and `forced` values will be no-ops on Apple platforms... Not sure about GTK.

More details about the new resolution:
https://github.com/w3c/csswg-drafts/issues/2943
Comment 1 Radar WebKit Bug Importer 2020-08-14 09:28:34 PDT
<rdar://problem/67077492>
Comment 2 James Craig 2020-08-14 09:29:11 PDT
Typo: "hanged" = "changed" 😳
Comment 3 chris fleizach 2020-12-10 11:15:48 PST
Created attachment 415904 [details]
patch
Comment 4 chris fleizach 2020-12-10 11:43:26 PST
Created attachment 415908 [details]
patch
Comment 5 chris fleizach 2020-12-10 15:33:03 PST
Created attachment 415938 [details]
patch
Comment 6 chris fleizach 2020-12-11 22:22:14 PST
Created attachment 416092 [details]
patch
Comment 7 Dean Jackson 2020-12-14 10:23:59 PST
Comment on attachment 416092 [details]
patch

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

> LayoutTests/ChangeLog:16
> +        * fast/media/mq-prefers-contrast-forced-value.html: Added.
> +        * fast/media/mq-prefers-contrast-live-update-for-listener-expected.txt: Added.
> +        * fast/media/mq-prefers-contrast-live-update-for-listener.html: Added.
> +        * fast/media/mq-prefers-contrast-live-update.html: Added.
> +        * fast/media/mq-prefers-contrast-matchMedia-expected.txt: Added.
> +        * fast/media/mq-prefers-contrast-matchMedia.html: Added.
> +        * fast/media/mq-prefers-contrast.html: Added.

All these expected files should be HTML ref tests.

> LayoutTests/platform/ios-simulator/fast/media/mq-prefers-contrast-expected.txt:5
> +layer at (0,0) size 800x600
> +  RenderView at (0,0) size 800x600
> +layer at (0,0) size 800x600
> +  RenderBlock {HTML} at (0,0) size 800x600
> +    RenderBody {BODY} at (8,8) size 784x576

We should do all these as ref rests. 

e.g. make LayoutTests/fast/media/mq-prefers-contrast-expected.html with the hardcoded results.
Comment 8 chris fleizach 2020-12-14 13:32:15 PST
Created attachment 416192 [details]
patch
Comment 9 chris fleizach 2020-12-14 13:33:15 PST
> All these expected files should be HTML ref tests.
> 

Thanks, moved most of these to ref tests. One exception was mq-prefers-contrast-live-update-for-listener.html which leverages the test infrasture like shouldBeTrue
Comment 10 EWS 2020-12-14 22:29:23 PST
Committed r270823: <https://trac.webkit.org/changeset/270823>

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