[wp-trac] [WordPress Trac] #49463: Beta 5.4 HTML position:fixed
WordPress Trac
noreply at wordpress.org
Fri Sep 11 00:26:48 UTC 2020
#49463: Beta 5.4 HTML position:fixed
--------------------------+----------------------
Reporter: Andre Jutras | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Editor | Version: 5.4
Severity: normal | Resolution: invalid
Keywords: needs-patch | Focuses: css
--------------------------+----------------------
Comment (by sabernhardt):
Thanks @andre-jutras for the report and @ryelle for responding more
quickly than I did :)
For history, the fixed positioning was purposely added for mobile in
[https://github.com/WordPress/gutenberg/pull/18686 pull request 18686].
A comment in the current
[https://github.com/WordPress/gutenberg/blob/release/8.9/packages/interface/src/components
/interface-skeleton/style.scss#L1-L5 stylesheet file] briefly explains the
reasoning:
{{{
// On Mobile devices, swiping the HTML element should not scroll.
// By making it fixed, we prevent that.
html.interface-interface-skeleton__html-container {
position: fixed;
width: 100%;
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49463#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list