@homlett@mamot.fr I think the short answer is: perhaps, Open Graph could be implemented differently, but probably not as only a CSS media type?
“@media opengraph” is an elegant idea because social previews really do feel like another presentation of the same document, much like “print”. But today Open Graph is not just a presentation layer, it is a crawler contract: platforms fetch a page, parse stable metadata, and usually fetch a separate image URL.
So the missing primitive may be less “a new CSS media type” and more “a standardized preview representation for a URL.” That could include layout rules, dimensions, caching, fallbacks, and safe rendering behavior. CSS could absolutely be part of that, but by itself it would not solve the whole problem.
Yes the current OG workflow feels un-webby for good reason, but the alternative probably needs to be a proper web standard for preview rendering, not only a CSS switch.
on my blog I use Eleventy post hook to generate OG images at post-build time, it uses a template to generate the card using the title or the text of the page content along with my blog avatar. so I never have to worry about it

Comments
Sign in with your website to comment:
Loading comments...
No comments yet. Be the first to share your thoughts!