If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Videos position incorrectly in menuitem

NEW
Unassigned

Status

()

Core
XP Toolkit/Widgets: XUL
4 years ago
4 years ago

People

(Reporter: mkaply, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Created attachment 793614 [details]
Screenshot of problem

If html videos are added to the menuitems, even if they are sized smaller than the menuitem, they still are centered in a scrollbar that is based on the original width of the video.

In addition, the two videos are positioned differently, even though they are defined the same.

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 xmlns:html="http://www.w3.org/1999/xhtml">
<menulist tooltiptext="Short" style="max-width: 250px">
<menupopup>
<menuitem>
<html:video width="80" height="60">
  <html:source src="http://www.w3schools.com/html/movie.ogg" type="video/ogg"/>
  Your browser does not support the video tag.
</html:video>
</menuitem>
<menuitem>
<html:video width="80" height="60">
  <html:source src="http://upload.wikimedia.org/wikipedia/commons/9/9b/Pentagon_News_Sample.ogg" type="video/ogg"/>
  Your browser does not support the video tag.
</html:video>
</menuitem>
</menupopup>
</menulist>
</window>
(Reporter)

Comment 1

4 years ago
It does appear that the menuitem is sizing based on the original size of the videos, not the specified width/height.
FWIW, i can see this with Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 Firefox/3.5.19 ID:20110420144310 too.
OS: Mac OS X → All
Hardware: x86 → All
You need to log in before you can comment on or make changes to this bug.