Closed Bug 1651857 Opened 5 years ago Closed 5 years ago

Add web platform tests for prefers-contrast

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: zekemedley, Assigned: zekemedley)

Details

Attachments

(2 files)

Now that we've implemented prefers-contrast behind the layout.css.prefers-contrast.enabled preference we should add some web platform tests for it. As we can't test OS level preferences these will likely test mostly parsing and syntax.

Here's a screenshot of the web platform test passing on nightly with our prefers-contrast implementation enabled. To test this yourself, change the script tags in the wpt to be absolute paths and then open the file in Nightly with layout.css.prefers-contrast.enabled set to true in about:config.

Because our prefers-contrast implementation is only enabled behind a
layout.css.prefers-contrast.enabled these don't pass out of the
box. Our implementation does pass these tests though when it is
enabled via about:config. See the bugzilla bug for more information.

Assignee: nobody → zekemedley
Pushed by dluca@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/de19f5581453 Add web platform tests for prefers-contrast r=heycam
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/24792 for changes under testing/web-platform/tests
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: