Skip to content

Proposed documentation for proposed Model element - #39710

Closed
zachernuk wants to merge 48 commits into
mdn:mainfrom
zachernuk:model-element
Closed

zachernuk wants to merge 48 commits into
mdn:mainfrom
zachernuk:model-element

Conversation

@zachernuk

@zachernuk zachernuk commented May 27, 2025 •

Copy link
Copy Markdown

Description

This PR adds API documentation about the proposed HTML Model element, a browser-native feature for the in-line display of 3D content. It includes illustrations of some core concepts like perspective, lighting and appropriate file formats.

Motivation

The Model element is a totally new web feature and it'll be exceptionally difficult to add documentation in a piecemeal fashion. I'm hoping that this covers the core concepts enough to author new pages from, and matches the MDN house style well enough that other folks can improve them to the point that they are real!

Additional details

I am submitting provisional documentation for the HTML model element, a feature that is the major source of discussion in the W3C Immersive Web CG (https://github.com/immersive-web/model-element/ )
and which is available as a feature preview in visionOS 2.4. I am an editor of the specification and have been facilitating the discussion around it.

While the specification doesn’t have a lot of detail, the API in visionOS is based on the consensus discussion in the CG, and is described in the Model Element explainer: (https://github.com/immersive-web/model-element/blob/main/explainer.md )

There is also a WebGL/WebXR-based interactive explainer demo available here:
https://immersive-web.github.io/model-element/explainer_demo.html

We also have public samples being contributed by multiple browser vendors in the model element samples repository.
https://immersive-web.github.io/model-element-samples/

We have previously submitted related additions to the WHATWG HTML specification as via an introductory issue and initial PR for the specification stub.
whatwg/html#10901
whatwg/html#11191

Related issues and pull requests

WHATWG/HTML

the Web Platform Tests repository

HTML-ARIA

zachernuk added 3 commits May 27, 2025 10:51
A full suite of the currently agreed-upon API and capability of the Model element, as discussed in the Immersive Web CG
rebuilt with the yarn builder so the lockfile should match upstream
Copied the yarn lockfile back to the upstream state
@zachernuk
zachernuk requested a review from mdn-bot as a code owner May 27, 2025 18:21
@zachernuk
zachernuk requested review from a team, estelle and sideshowbarker and removed request for a team May 27, 2025 18:21
@github-actions github-actions Bot added Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs system [PR only] Infrastructure and configuration for the project size/xl [PR only] >1000 LoC changed labels May 27, 2025
@zachernuk

Copy link
Copy Markdown
Author

@mkeblx @LaszloGombos @cabanier Here's a run at the MDN docs! LMK if there's anything obviously outside of our discussions on it so far.

@github-actions

github-actions Bot commented May 27, 2025 •

Copy link
Copy Markdown
Contributor
Preview URLs (20 pages)
Flaws (1)

Note! 19 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/HTML/Reference/Elements/model
Title: <model>: The HTML Model element
Flaw count: 1

  • broken_links:
    • Can't resolve /en-US/docs/Web/Accessibility/ARIA/Reference/Roles/model_role
External URLs (13)

URL: /en-US/docs/Web/API/HTMLModelElement/boundingBoxCenter
Title: HTMLModelElement: boundingBoxCenter property


URL: /en-US/docs/Web/API/HTMLModelElement/boundingBoxExtents
Title: HTMLModelElement: boundingBoxExtents property


URL: /en-US/docs/Web/API/HTMLModelElement/environmentMap
Title: HTMLModelElement: environmentMap property


URL: /en-US/docs/Web/API/HTMLModelElement/playbackRate
Title: HTMLModelElement: playbackRate property


URL: /en-US/docs/Web/HTML/Reference/Elements/model
Title: <model>: The HTML Model element

(comment last updated: 2025-06-05 05:27:53)

zachernuk and others added 2 commits May 27, 2025 13:49
Updated casing on some attribute/property names, update to the richer paths on things like Content categories

@Josh-Cena Josh-Cena left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some random drive-by reviews. Not comprehensive in any way, but they indicate some common problems that would need to be fixed throughout.

Also we need browser compat data for this. It should be shipping in at least one browser to be documented.

Comment thread yarn.lock
version "2.0.4"
resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-2.0.4.tgz#c827d4b0acb76fc3e685a4c6ec2902d51070e9d7"
integrity sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==
integrity sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A== No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert

zachernuk and others added 11 commits May 27, 2025 23:33
Remove arbitrary wrapping,
Change `let` to `const`,
Fixed the 'ARIA role' reference urls,
Demoted some headings to be in line with MDN standards,
Applied markdown-based bolding
* Fix 2 typos

* Fix more

* Fix more

---------

Co-authored-by: Joshua Chen <[email protected]>
* Fix an typo

* Fix more

---------

Co-authored-by: Joshua Chen <[email protected]>
* Remove discard from experimental features

* Delete <discard> SVG element

* Remove or unlink references to <discard> element

* SVGDiscardElement - mark deprecated and remove links to discard element
)

* FF140 Relnote: Notification.maxActions unpublished to nightly

* Update files/en-us/mozilla/firefox/releases/140/index.md

Co-authored-by: Dipika Bhattacharya <[email protected]>

* Update actions and maxActions in Notifications

---------

Co-authored-by: Dipika Bhattacharya <[email protected]>
mdn#39586)

* doc[sandbox]: remove `HTMLDialogElement.showModal` from `allow-popups`

* tidying layout. Ignore.

* Update files/en-us/web/http/reference/headers/content-security-policy/sandbox/index.md

---------

Co-authored-by: Hamish Willee <[email protected]>
hamishwillee and others added 22 commits May 29, 2025 14:12
* FF140 Relnote: Cookie Store API

* Tidy top level doc

* Update index.md

---------

Co-authored-by: Vadim Makeev <[email protected]>
fix: add missing backtick at the end of code element
* Add view-transition-class property

* Address comments from @estelle

* Fixing awkward wording

* Add backticks to period

* Remove KeyboardEvent.initKeyEvent page (mdn#39027)

* Adding suggested changes

* fix linting issues

* Apply suggestions from code review

Co-authored-by: Estelle Weyl <[email protected]>

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore(css): Use parens for view transition pseudo names

* Update files/en-us/web/api/view_transition_api/index.md

* chore(css): ad param section

* chore(css): try to make the view transition names more illustrative

* Update files/en-us/web/css/view-transition-class/index.md

---------

Co-authored-by: Paul Grant <[email protected]>
Co-authored-by: Joshua Chen <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Brian Smith <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 21.1.1 to 22.0.0.
- [Release notes](https://github.com/octokit/rest.js/releases)
- [Commits](octokit/rest.js@v21.1.1...v22.0.0)

---
updated-dependencies:
- dependency-name: "@octokit/rest"
  dependency-version: 22.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fix(typo): remove a duplicated word
…9690)

* Array.fromAsync() mapFn does not always have its input awaited

* Update files/en-us/web/javascript/reference/global_objects/array/fromasync/index.md

Co-authored-by: Chris Mills <[email protected]>

---------

Co-authored-by: Chris Mills <[email protected]>
…n#39700)

Replace blue with red where referring to the hex code #a71e14
* FF140 Relnote/Expr Feat: Dialog closeBy attribute

* Update relnote too

* Update files/en-us/mozilla/firefox/experimental_features/index.md

* Update index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Vadim Makeev <[email protected]>

---------

Co-authored-by: Vadim Makeev <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Atomics.wait()/waitAsync() improvements

* Update files/en-us/web/javascript/reference/global_objects/atomics/wait/index.md

* Update files/en-us/web/javascript/reference/global_objects/atomics/wait/index.md

* Remove the note

* waitAsync returns and object

* Update files/en-us/web/javascript/reference/global_objects/atomics/wait/index.md

* Apply suggestions from code review

* Update index.md

* Update index.md

* Update index.md

---------

Co-authored-by: Joshua Chen <[email protected]>
* Add years to external article links

* typo

* Update files/en-us/web/css/font-smooth/index.md

Co-authored-by: Joshua Chen <[email protected]>

* Update files/en-us/web/css/font-smooth/index.md

Co-authored-by: Joshua Chen <[email protected]>

---------

Co-authored-by: Joshua Chen <[email protected]>
* Lint: use strict equality, avoid numeric loss of precision

* Fix
* FF139 Relnote - SVG discard removed

* Update files/en-us/mozilla/firefox/releases/139/index.md

Co-authored-by: Brian Smith <[email protected]>

* Update files/en-us/mozilla/firefox/releases/139/index.md

Co-authored-by: Brian Smith <[email protected]>

* Update files/en-us/mozilla/firefox/releases/139/index.md

---------

Co-authored-by: Brian Smith <[email protected]>
zachernuk added a commit to zachernuk/content that referenced this pull request Jun 5, 2025
This branch is a clean rebuild of the substantive content about the `HTML Model element` from the earlier PR at
mdn#39710
where I had alterations to a .lock file.
Since I'm not familiar enough with Git to revert one single file in the overall process, I thought it would be best to start fresh. Apologies for the clutter!
@zachernuk

Copy link
Copy Markdown
Author

I wasn't able to work out how to revert the single file within the overall PR. I'm going to close this and move the work into this PR: #39811

@zachernuk zachernuk closed this Jun 5, 2025
hamishwillee pushed a commit to zachernuk/content that referenced this pull request Sep 22, 2026
This branch is a clean rebuild of the substantive content about the `HTML Model element` from the earlier PR at
mdn#39710
where I had alterations to a .lock file.
Since I'm not familiar enough with Git to revert one single file in the overall process, I thought it would be best to start fresh. Apologies for the clutter!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs size/xl [PR only] >1000 LoC changed system [PR only] Infrastructure and configuration for the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.