Closed
Bug 745067
Opened 13 years ago
Closed 13 years ago
Page Info Media preview fullscreen videos shouldn't have a margin
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
FIXED
mozilla15
People
(Reporter: cpearce, Assigned: cpearce)
References
Details
Attachments
(4 files)
(deleted),
image/jpeg
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
patch
|
dao
:
review-
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
STR:
1. Load http://pearce.org.nz/full-screen
2. Right click > View Page Info
3. In the "Media Preview" box showing the quake video, press the fullscreen button on the video control.
4. Video will go fullscreen, but there will still be a transparent margin around the media showing the non-fullscreen content beneath.
Expected result:
Video should fill entire screen, there should not be a transparent margin.
I've seen this before in a few cases, and I think it's something to do with the containing frames.
Assignee | ||
Updated•13 years ago
|
Assignee | ||
Comment 1•13 years ago
|
||
A simpler testcase demonstrating the problem. Containing frames aren't the issue, it looks like we're not accounting for margin when we're doing the width calculation?
Assignee | ||
Comment 2•13 years ago
|
||
Scratch that, my understanding of the CSS box model was incorrect. The videos in the media preview have a margin defined, and this is actually correct CSS margin behaviour.
However it looks silly to have a margin on Page Info media preview videos which are made fullscreen. I have a patch...
Status: NEW → ASSIGNED
Component: DOM: Core & HTML → General
OS: Windows 7 → All
Product: Core → Firefox
QA Contact: general → general
Hardware: x86_64 → All
Summary: Under some circumstances fullscreen video has margin → Page Info Media preview fullscreen videos have margin
Assignee | ||
Updated•13 years ago
|
Summary: Page Info Media preview fullscreen videos have margin → Page Info Media preview fullscreen videos shouldn't have a margin
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → cpearce
Assignee | ||
Comment 3•13 years ago
|
||
Use padding in the PageInfo's media preview container, rather than giving the contained media a margin. This means the fullscreen styles will work correctly when media preview videos request fullscreen, and a margin won't be drawn around them.
Attachment #615985 -
Flags: review?(db48x)
Assignee | ||
Comment 4•13 years ago
|
||
Comment on attachment 615985 [details] [diff] [review]
Patch: use padding in the container rather than margin on the containee
Gavin, maybe you can review this instead?
Attachment #615985 -
Flags: review?(db48x) → review?(gavin.sharp)
Updated•13 years ago
|
Attachment #615985 -
Flags: review?(gavin.sharp) → review?(jwein)
Comment 5•13 years ago
|
||
Comment on attachment 615985 [details] [diff] [review]
Patch: use padding in the container rather than margin on the containee
This is something that could happen to any video element on the web (i.e. as soon as the author adds a margin). Maybe this is expected behavior for full-screen API users on the web, but at least for the built-in full-screen button I think we should prevent this at a lower level.
Attachment #615985 -
Flags: review?(jwein) → review-
Assignee | ||
Comment 6•13 years ago
|
||
I guess we should remove margins on fullscreen elements, as without this we leave a way to expose the content underneath the fullscreen element.
Once we implement ::backdrop [1], we won't need to remove the margins to obscure the content underneath the fullscreen element.
[1] http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#::backdrop-pseudo-element
Attachment #617697 -
Flags: review?(bzbarsky)
Comment 7•13 years ago
|
||
Comment on attachment 617697 [details] [diff] [review]
Patch: remove magins on fullscreen elements
r=me
Attachment #617697 -
Flags: review?(bzbarsky) → review+
Updated•13 years ago
|
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Assignee | ||
Comment 8•13 years ago
|
||
Target Milestone: --- → mozilla15
Comment 9•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 10•13 years ago
|
||
Verified fixed on FF 15 (2012-05-02):
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1
Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/15.0 Firefox/15.0a1
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/15.0 Firefox/15.0a1
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•