Repository navigation
Specify model width height - #159
Merged
zachernuk merged 1 commit intoOct 13, 2026
Merged
Conversation
Specify the width and height content attributes as valid non-negative integers giving the desired dimensions in CSS pixels, including zero. Limit this change to the two attribute paragraphs; IDL declarations and CSS sizing behavior will be proposed separately.
cabanier
force-pushed
the
specify-model-width-height
branch
from
October 13, 2026 20:14
a19448f to
70b5c8f
Compare
zachernuk
approved these changes
Oct 13, 2026
github-actions Bot
added a commit
that referenced
this pull request
Oct 13, 2026
SHA: 116f567 Reason: push, by zachernuk Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
cabanier
added a commit
to cabanier/model-element
that referenced
this pull request
Oct 14, 2026
Align the fitting text with the width and height content-attribute definitions merged in immersive-web#159. Use the element's actual laid-out content box for initial fitting, and explicitly distinguish used CSS dimensions from the desired dimensions specified by the attributes. Preserve the existing resize trigger and zero-size handling; leave the deferred IDL and general CSS sizing work out of this PR.
cabanier
added a commit
that referenced
this pull request
Oct 14, 2026
* Fix model fitting and define coordinate-space units Define metric model bounds and CSS-derived element-space meters, including resource-unit normalization, CSS pixel conversion, and zoom/DPR semantics. Correct initial and orbit fitting scale ratios, centering, and depth clearance. Fixes #155. * Clarify CSS units and align automatic fitting with WebKit Define automatic refitting after layout-size changes, preserving rotation and leaving script-assigned transforms unchanged. Reuse stored resource bounds without restarting or seeking animations, and specify how stage-mode changes and new resource loads re-enable automatic fitting. Reference CSS Values and Units and CSSOM View for CSS-derived meters, page zoom, visual viewport scaling, and devicePixelRatio. Remove displayed Issues 6 and 7 (GitHub #1 and #5) and regenerate index.html from the Bikeshed source. Validation: bikeshed --die-on=everything spec index.bs index.html; git diff --check. * Clarify that model fitting uses laid-out dimensions Align the fitting text with the width and height content-attribute definitions merged in #159. Use the element's actual laid-out content box for initial fitting, and explicitly distinguish used CSS dimensions from the desired dimensions specified by the attributes. Preserve the existing resize trigger and zero-size handling; leave the deferred IDL and general CSS sizing work out of this PR. * Ground model fitting in CSS and Geometry specifications Reference CSS Box Model 3, CSS Cascading 5, CSS Sizing 3, and Geometry Interfaces 1 for content-box dimensions, used values, sizing properties, and point/matrix operations. Flag the proposed one-meter fallback for formats without declared or default length units as needing further discussion, using a native Bikeshed issue linked to #155. Keep the fitting arithmetic and width/height attribute definitions unchanged. Strict Bikeshed validation passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Specify non-negative integer content attributes and reflected unsigned-long IDL properties.
Preview | Diff
Preview | Diff