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
<rdar://problem/67077492>
Typo: "hanged" = "changed" 😳
Created attachment 415904 [details] patch
Created attachment 415908 [details] patch
Created attachment 415938 [details] patch
Created attachment 416092 [details] patch
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.
Created attachment 416192 [details] patch
> 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
Committed r270823: <https://trac.webkit.org/changeset/270823> All reviewed patches have been landed. Closing bug and clearing flags on attachment 416192 [details].