Skip to content

Commit

Permalink
fix: iPadOS not displaying homepage image
Browse files Browse the repository at this point in the history
Resolves #2
  • Loading branch information
atenni committed Dec 29, 2020
1 parent 4e7bb56 commit d23761a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions deploy/wp-content/themes/twentytwenty-child/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,21 @@ html {
display: block;
}
}


/* ================================
BUG FIXES
================================ */

/* iOS Safari doesn't support `background-size: cover` and
* `background-attachment: fixed`
*
* Convert to `background-attachment: scroll` for these browsers
*
* https://github.com/WordPress/gutenberg/issues/17718
*/
@supports (-webkit-touch-callout: inherit) {
.bg-attachment-fixed {
background-attachment: scroll;
}
}

0 comments on commit d23761a

Please sign in to comment.