[wp-trac] [WordPress Trac] #42544: Background Image Cover on iOS not correctly displayed
WordPress Trac
noreply at wordpress.org
Thu Nov 16 14:05:40 UTC 2017
#42544: Background Image Cover on iOS not correctly displayed
--------------------------+------------------------------
Reporter: apermo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.8.3
Severity: normal | Resolution:
Keywords: | Focuses: template
--------------------------+------------------------------
Comment (by apermo):
i have added the following code to my style.css
{{{
body::after {
content: "";
display: block;
position: fixed;
top: 0;
left: 0;
height: 100%;
height: 100vh;
width: 100%;
width: 100vw;
background: #cccccc;
background-size: cover;
background-position: center center;
background-image: url( http://path.to/wp-
content/uploads/2017/11/file.jpg );
z-index: -1;
}
}}}
The drawback of this would be that this breaks every other usage of
::after on body. The advantage, that it does not need any new html code.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42544#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list