Fyrd / caniuse

Raw browser/feature support data from caniuse.com
https://caniuse.com
Creative Commons Attribution 4.0 International
5.64k stars 1.38k forks source link

Add the `<model>` element #6121

Open Schweinepriester opened 2 years ago

Schweinepriester commented 2 years ago

https://github.com/WebKit/explainers/tree/main/model

Since it's being added to Safari TP… https://webkit.org/blog/12156/release-notes-for-safari-technology-preview-137/:

Experimental Model Element

  • Added support for mouse-based manipulation of <model> on macOS (r285986)
  • Added audio support (r286065)
  • Added support for controlling looping animations (r286066)
  • Added support for getting and setting the camera (r286019)
  • Added support for pausing and resuming animations (r286048)
  • Added support for seeking animations (r286068)

Accessibility

  • Added accessibility attributes for <model> (r286406)
Malvoz commented 2 years ago

The new Github repo for this element proposal is https://github.com/immersive-web/model-element. And draft spec: https://immersive-web.github.io/model-element/

jensimmons commented 2 years ago

For clarity, <model> is currently in Safari Technology Preview, behind a feature flag.

jensimmons commented 2 years ago

I'd like to very much endorse the addition of a page for the <model> element.

Similar to the img, audio, and video elements, the model element provides a way to embed 3D models into a web page.

This code example demonstrates how a .usdz file can be shown on a webpage, with video files as fallbacks. The .usdz file is a format for 3D geometric data.

<model style="width: 400px; height: 300px">
    <source src="assets/example.usdz" type="model/vnd.usdz+zip">
    <picture>
        <source src="animated-version.mp4" type="video/mp4">
        <source src="animated-version.webp" type="image/webp">
        <img src="animated-version.gif"/>
    </picture>
</model>
jensimmons commented 2 years ago

@Schweinepriester I'd appreciate it if you could take a look at my attempt to create a PR, and fix it. https://github.com/Fyrd/caniuse/pull/6228

Schweinepriester commented 1 year ago

https://developer.apple.com/documentation/safari-release-notes/safari-17-release-notes

Added experimental support for the element. (100595523)

jackwh commented 1 year ago

I ended up here after seeing <model> added to Safari in macOS Sonoma, but couldn't find anything on caniuse.

It'd be great to keep an eye on this as support rolls out more widely. Maybe @jensimmons can re-open the PR? Thanks!

Screenshot 2023-10-02 at 13 39 02@2x