Skip to content

Commit

Permalink
Rollup merge of #103616 - rust-lang:notriddle/moz-box-sizing, r=Guill…
Browse files Browse the repository at this point in the history
…aumeGomez

rustdoc: remove CSS workaround for Firefox 29

CSS variables, which rustdoc now relies on, are only supported in Firefox 31 and later: https://www.mozilla.org/en-US/firefox/31.0/releasenotes/

This means it’s fine to also rely on unprefixed box-sizing, which is supported in Firefox 29 and later: https://www.mozilla.org/en-US/firefox/29.0/releasenotes/
  • Loading branch information
matthiaskrgr authored Oct 27, 2022
2 parents f9dfb6e + 4d4b567 commit ae4dc12
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -857,9 +857,7 @@ so that we can apply CSS-filters to change the arrow color in themes */
causes rounded corners and no border on iOS Safari. */
-webkit-appearance: none;
/* Override Normalize.css: we have margins and do
not want to overflow - the `moz` attribute is necessary
until Firefox 29, too early to drop at this point */
-moz-box-sizing: border-box !important;
not want to overflow */
box-sizing: border-box !important;
outline: none;
border: 1px solid var(--border-color);
Expand Down

0 comments on commit ae4dc12

Please sign in to comment.