Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Daniel Holbert 9504e42bc7 Bug 1763667 part 2: Use :root instead of html/body, on selectors in TopLevelImageDocument.css and TopLevelVideoDocument.css. r=emilio,jaws
This patch shouldn't change behavior.  It just gets us a bit more consistency
between these two stylesheets, and it makes these rules more explicit about the
fact that they're intending to style the root.

Depends on D143395

Differential Revision: https://phabricator.services.mozilla.com/D143429
2022-04-13 18:40:24 +00:00
Daniel Holbert 017b68e077 Bug 1763667 part 1: Merge our two copies of TopLevelImageDocument.css and TopLevelVideoDocument.css. r=emilio,jaws
For both files, we've been keeping around an extra copy in
toolkit/themes/shared/media/ with 1-2 CSS rules related to presentation.

This was probably to allow XUL-style extensions and themes to override the
presentation, back when we supported that form of extension.  But there's not a
good reason to have this separation anymore, so let's simplify and combine the
files of the same name.

This patch also removes one no-longer-esepcially-useful "N.B." comment (which
refers to a file that's now alongside the styles in question).  This patch also
adds an explanatory comment to explain why we bother to set `color` for images
(which was initially not clear to me).

Differential Revision: https://phabricator.services.mozilla.com/D143395
2022-04-13 16:45:54 +00:00
Daniel Holbert 49f86dbd38 Bug 1763495 part 2: Use 'inset' shorthand in TopLevelImageDocument.css and TopLevelVideoDocument.css. r=emilio
This doesn't change behavior; it just makes the existing CSS a bit more concise.

('inset' is a shorthand that sets top, right, bottom, and left all at once.)

Depends on D143099

Differential Revision: https://phabricator.services.mozilla.com/D143109
2022-04-07 18:39:11 +00:00
Daniel Holbert bb008118d2 Bug 1763495 part 1: Remove some unnecessary styles in TopLevelVideoDocument.css. r=hsivonen,emilio
As indicated in the new code-comment, we do need the html element to be the
full height of the viewport. But:
- we don't need to set width to 100%. The default, 'auto', has the same effect.
- we don't need to set margin/padding to 0; they default to 0 on 'html'.
- we don't need to set anything on the body, since it doesn't render or have
  any children in the box tree. (The video descendant is abspos and hence uses
  the viewport as its containing block, not the body.)

As an extra check that this is reasonable, note that the similar
TopLevelImageDocument.css stylesheet doesn't have any CSS rules that target the
html or body elements.

Differential Revision: https://phabricator.services.mozilla.com/D143099
2022-04-07 18:39:11 +00:00
Henri Sivonen 9bd876e7c3 Bug 1739691 - Make keyboard shortcuts for media documents work after clicking outside the media element. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D142333
2022-04-07 10:17:06 +00:00
Emilio Cobos Álvarez cdb02b1b74 Bug 1759602 - Fix how TopLevelVideoDocument.css avoids outlines.
MANUAL PUSH: Trivial-ish one-liner to fix the increase in rate in bug 1759749.
2022-03-17 03:06:05 +01:00
Emilio Cobos Álvarez f041512168 Bug 1492739 - Unprefix usage of -moz-user-select from UA stylesheets. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D31154

--HG--
extra : moz-landing-system : lando
2019-05-17 13:16:35 +00:00
Timothy Guan-tin Chien 5f71e2aa7f Bug 1474574 - Ensure <video> is the only focusable element in TopLevelVideoDocument r=Gijs
Instead of re-dispatch an untrusted event, simply make sure the keyboard event is handled
by the video controls.

MozReview-Commit-ID: 9Kj7E3UP77w

--HG--
extra : rebase_source : 8bbc787c7e5dd3d4351270b17f521f49b0f1a21c
2018-07-11 11:51:48 +08:00
Morris Tseng cfe882858c Bug 1166969 - Video element in the video document shouldn't be selected. r=roc 2015-05-24 22:50:00 +02:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Jared Wein 3fb7686724 Bug 713487 - Move TopLevelImageDocument.css and TopLevelVideoDocument.css to toolkit/themes. r=roc,dao 2012-04-10 16:03:41 -07:00
Jared Wein 5147e08f4c Bug 537718 - Video should scale for a small window. r=dao r=roc 2011-11-14 15:58:41 -08:00
Jared Wein 87dcb951fa Bug 700856 - Move styles from {Media,Image,Video}Document to external stylesheets. r=roc, r=dao 2011-11-10 15:08:47 -08:00
Jared Wein 9bda12367b Bug 700854 - {Media,Image,Video}Document should reference an external stylesheet for use in styling their content. r=roc 2011-11-10 15:08:07 -08:00
Jared Wein 80d13db5c2 Backout changeset 40b0d61c132b due to bad commit message 2011-11-10 15:07:10 -08:00
Jared Wein 8901da2cd9 Backed out changeset b77ec6e8eb8c due to bad commit message 2011-11-10 15:04:12 -08:00
Jared Wein c6daa04597 Bug 700856 - Move styles from {Media,Image,Video}Document to external stylesheets 2011-11-10 15:02:26 -08:00
Jared Wein 603a938ed2 Bug 700854 - {Media,Image,Video}Document should reference an external stylesheet for use in styling their content 2011-11-10 15:02:21 -08:00