Closed Bug 1697799 Opened 5 years ago Closed 3 years ago

[wpt-sync] Sync PR 28027 - Honor media HTML attribute for link manifest

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 28027 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/28027
Details from upstream follow.

b'Francois Beaufort <beaufort.francois@gmail.com>' wrote:

Honor media HTML attribute for link manifest

This CL makes sure media HTML attribute is honored for
link[rel="manifest"] so that web developers can define multiple web app
manifests based on dark and light modes for instance.

Spec: https://github.com/whatwg/html/pull/6444
Bug: 970159
Change-Id: I2e885ba9cc78493b5aeab8dc17cd5aeae3f2a699
Reviewed-on: https://chromium-review.googlesource.com/2704053
WPT-Export-Revision: 0eb30d4a8a1a703abe2f320146b00f690c2b0d11

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

Can we include media attribute honoring for rel="icon" as well?

This is implemented by Chrome already, which seems to match the specs, see:
https://www.chromestatus.com/feature/5728508477177856

A demo showcasing the use of the media attribute for the favicons:
https://media-link.glitch.me/

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.