You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up on issue #4680, I propose the addition of a new property to MediaObject:
:mediaQuery a rdf:Property ;
rdfs:label "mediaQuery" ;
rdfs:comment "A valid [CSS Media Query](https://drafts.csswg.org/mediaqueries-5/) representing the preferred surrounding context for rendering the media object." ;
:domainIncludes :MediaObject ;
:rangeIncludes :Text ;
:source <https://github.com/schemaorg/schemaorg/issues/4680> .
For example, the following json+ld provides third-party crawlers with 4 variants of an asset, so they can present the most appropriate one that matches each of their visitors' preferences:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Following up on issue #4680, I propose the addition of a new property to
MediaObject:For example, the following json+ld provides third-party crawlers with 4 variants of an asset, so they can present the most appropriate one that matches each of their visitors' preferences:
{ "@context": "https://schema.org", "@type": "Article", "@id": "https://example.com/article", "url": "https://example.com/article", "image": [ { "@type": "ImageObject", "url": "https://example.com/preview.light.avif", "width": 1200, "height": 630, "encodingFormat": "image/avif" }, { "@type": "ImageObject", "url": "https://example.com/preview.dark.avif", "width": 1200, "height": 630, "encodingFormat": "image/avif", "mediaQuery": "(prefers-color-scheme: dark)" }, { "@type": "ImageObject", "url": "https://example.com/preview.contrast.avif", "width": 1200, "height": 630, "encodingFormat": "image/avif", "mediaQuery": "(prefers-contrast: more)" }, { "@type": "ImageObject", "url": "https://example.com/preview.dark-contrast.avif", "width": 1200, "height": 630, "encodingFormat": "image/avif", "mediaQuery": "(prefers-color-scheme: dark) and (prefers-contrast: more)" } ] }Other usages could include:
speechmedia query.(prefers-reduced-motion: reduce).Beta Was this translation helpful? Give feedback.
All reactions