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 20584 - [HTML5] <media> element proposal
Summary: [HTML5] <media> element proposal
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 major
Target Milestone: ---
Assignee: Edward O'Connor
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
: 20306 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-07 04:09 UTC by Alexei03a
Modified: 2013-01-25 01:37 UTC (History)
6 users (show)

See Also:


Attachments

Description Alexei03a 2013-01-07 04:09:16 UTC
I have idea to implement <media width="width" height="height"></media> element. Behavior similar to Canvas element. By instead of graphics you can fill other content.

Differences of <div> element.
- Supported interactivity.
- JavaScript name - "HTMLMediaContainerElement".
- Stretched like canvas element (proportional or not, depending on CSS).
- The text does not change the size of an element, as its scalable model is similar to canvas, but not DIV or span.
- "width" and "height" work not as CSS (img, video), but as canvas (i.e. own original size).
- is not <div> replacement, but addition.

Examples:
<media id="media" width="300" height="150" style="width:600px;">
  <!-- final size must be 600x300 -->
  <svg width="100%" height="100%">
    ...
  </svg>
</media>

<media id="media" width="10" height="1" style="overflow: hidden;">
  Text must be cropped.
</media>

<media id="media" class="video-player" width="$generated by script$" height="$generated by script$">
  <!-- Work like <video> element. -->
  <div style="width: 100%; height: 100%; position: relative;">
    ...
  </div>
</media>
Comment 1 Robin Berjon 2013-01-21 15:58:48 UTC
Mass move to "HTML WG"
Comment 2 Robin Berjon 2013-01-21 16:01:34 UTC
Mass move to "HTML WG"
Comment 3 Alexei03a 2013-01-21 23:39:51 UTC
Dublicate of: https://www.w3.org/Bugs/Public/show_bug.cgi?id=20306
Comment 4 Alexei03a 2013-01-23 11:18:46 UTC
*** Bug 20306 has been marked as a duplicate of this bug. ***
Comment 5 Edward O'Connor 2013-01-25 01:37:53 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: As Robin said in bug 20306 comment 7, everything proposed can
already be achieved using existing Web platform features.