It should be possible to drag and drop a <video> element just like an <img> element. |
||
Issue descriptionChrome Version: 57.0.2976.0 OS: macOS 10.12.2 What steps will reproduce the problem? (1) Load a web page with a video element and an image, e.g.: data:text/html,<video autoplay loop muted src="http://www.w3schools.com/html/mov_bbb.mp4"></video><br><img src="https://media.giphy.com/media/nQ8XtX3ctBCkE/giphy.gif"> (2) Drag the image to an empty spot on the tab bar, or to the desktop. (3) Try the same thing with the video. What is the expected result? - Dragging either one to the tab bar loads it in a new tab. - Dragging either one to the desktop saves it as a file. What happens instead? The image can be dragged, but the video can't be.
,
Mar 21 2017
It seems like by default <img> has the "draggable" property set to true while <video> has the "draggable" property set to false. See https://chromium.googlesource.com/chromium/src/+/6d8fbe34e1a68d526fda3b736ce006c42c30e21c/third_party/WebKit/Source/core/html/HTMLImageElement.cpp#553
,
Apr 4 2017
According to the spec an element is draggable only if the draggable attribute is true. Only img, object with img or element with href can be draggable by default (when draggable attribute is missing which is auto). https://html.spec.whatwg.org/#the-draggable-attribute So do we need to fix this?
,
Apr 4 2017
Sounds like no. I didn't realize that the spec took a stand on this, thanks for catching it. |
||
►
Sign in to add a comment |
||
Comment 1 by mlamouri@chromium.org
, Jan 29 2017Status: Available (was: Untriaged)