This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7471 - JimJJewett gmail: Make explicit reasons for *not* exposing aspect ratio/clipping. (Security vs simplification). Deals with http://www.w3.org/AudioVideo/2007/12/SMIL-AudioVideoControlConcepts.html#L2398 note1
Summary: JimJJewett gmail: Make explicit reasons for *not* exposing aspect ratio/clipp...
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://whatwg.org/specs/web-apps/curr...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-31 19:25 UTC by contributor
Modified: 2010-10-12 07:06 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2009-08-31 19:25:43 UTC
Section: http://whatwg.org/specs/web-apps/current-work/#video

Comment:
JimJJewett gmail: Make explicit reasons for *not* exposing aspect ratio/clipping.  (Security vs simplification).  Deals with http://www.w3.org/AudioVideo/2007/12/SMIL-AudioVideoControlConcepts.html#L2398 note1

Posted from: 32.97.110.60
Comment 1 Ian 'Hixie' Hickson 2009-09-21 23:53:55 UTC
Is this about exposing or not exposing a way to actually clip or change the ratio, or is this about providing a way for script to obtain the current aspect ratio or frame clipping settings from the video?

The former is a presentation issue, so seems out of scope (you can do it with CSS or SVG in a variety of ways), the latter just doesn't seem especially useful. I don't think there are explicit reasons for either to not be included per se, they just weren't requested.

Are there use cases for either? I'm not really sure what the request is here.
Comment 2 Jim Jewett 2009-09-22 19:20:14 UTC
I believe they wanted to change the aspect ratio, but they at least wanted to read it.

The reasons to support it are given in the SMIL document -- they say it is sometimes important for quality.

I explicitly do not have the expertise to judge that claim, but since the working group made a specific note of the issue when reviewing an earlier draft, we should probably record somewhere that we were aware of the request, and explicitly chose simplicity rather than power (in this version/at this time).

-jJ
Comment 3 Ian 'Hixie' Hickson 2009-09-22 21:25:30 UTC
If you want to get the actual user-visible aspect ratio, then you can just do (video.videoWidth/video.videoHeight).
Comment 4 Maciej Stachowiak 2010-03-14 14:50:28 UTC
This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
  http://dev.w3.org/html5/decision-policy/decision-policy.html

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.
Comment 5 Jim Jewett 2010-03-15 03:30:47 UTC
Does the (video.videoWidth/video.videoHeight) solution implicitly assume that CSS pixels are square?   (Or is that explicit somewhere?)

If that is resolved, then I'm personally OK closing it, and letting anyone with more specific objections raise them directly.

-jJ


Comment 6 Ian 'Hixie' Hickson 2010-03-31 08:47:24 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: CSS pixels are by definition square (well, technically they're by definition circular), but that's a CSS issue and seems out of scope. I'm not sure what this bug is requesting at this point.
Comment 7 Jim Jewett 2010-03-31 13:19:33 UTC
Based on Ian's comment (that pixels are circular), I think it would be enough to say that pixel ratios are defined by CSS, so that (video.videoWidth/video.videoHeight) provides the user-visible aspect ratio.

My slight preference would be to say that explicitly within the video sizing section, but if the editor feels strongly that it should be left implicit, I'm willing to be overruled.

(I therefore give the editor explicit permission to close this issue once he has either checked in a change, or made an explicit decision not to do so.)
Comment 8 Ian 'Hixie' Hickson 2010-04-12 05:16:29 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: I don't feel strongly at all, because I really don't understand what the problem is. What is the issue here? What is it that is unclear, or that cannot be done, or that is inconsistent? Saying that the intrinsic width divided by the intrinsic height is the intrinsic ratio seems to be somewhat pointless since that is the definition of the intrinsic ratio... what problem would saying that solve?
Comment 9 Jim Jewett 2010-10-04 15:21:50 UTC
(video.videoWidth/video.videoHeight) is the aspect ratio in CSS pixels -- but without the knowledge that CSS pixes are square (or round), that doesn't tell the shape of the screen coverage.  For example, if I want a square output, but my device has twice the resolution in a horizontal direction, I would expect to need twice the height.

I would prefer that the ratio of pixels be explicit, but will (as I said before) accept that this just has to be known from CSS, so long as the omission is an explicit decision.
Comment 10 Ian 'Hixie' Hickson 2010-10-12 07:06:28 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: It is indeed an explicit decision (this is all defined in the CSS specs, which is why we defer to them, so we don't have to define this again). The idea here is that the Web platform abstracts out the underlying device characteristics precisely so that you don't need to know if the device pixels aren't square  it's the browser's job to make it work anyway.