[PATCH] hgweb: fix search hint border-radius on standards-based browsers and remove old gecko-specific property
Anton Shestakov
engored at ya.ru
Thu Oct 8 01:04:12 CDT 2015
08.10.2015, 04:31, "Gijs Kruitbosch" <gijskruitbosch at gmail.com>:
> # HG changeset patch
> # User Gijs Kruitbosch <gijskruitbosch at gmail.com>
> # Date 1444245560 -3600
> # Wed Oct 07 20:19:20 2015 +0100
> # Node ID 79662b7cd12090147de1c83f0452331d9252f4a0
> # Parent d9a07f86c2d9b910267bd18baeb1c884cb69309e
> hgweb: fix search hint border-radius on standards-based browsers and remove old gecko-specific property
>
> diff --git a/mercurial/templates/static/style-paper.css b/mercurial/templates/static/style-paper.css
> --- a/mercurial/templates/static/style-paper.css
> +++ b/mercurial/templates/static/style-paper.css
> @@ -82,22 +82,22 @@ div.atom-logo {
> form.search div#hint {
> display: none;
> position: absolute;
> top: 40px;
> right: 0px;
> width: 190px;
> padding: 5px;
> background: #ffc;
> font-size: 70%;
> border: 1px solid yellow;
> - -moz-border-radius: 5px; /* this works only in camino/firefox */
Removing this isn't required for the fix (afaict), and if you believe http://caniuse.com/border-radius , -moz-border-radius-only browsers have almost twice the user base of -webkit-border-radius-only browsers. So I'd say deleting this is not worth it.
> -webkit-border-radius: 5px; /* this is just for Safari */
> + border-radius: 5px;
> }
Good catch.
More information about the Mercurial-devel
mailing list