Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #40544, comment 6


Ignore:
Timestamp:
08/13/2021 05:19:08 PM (22 months ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40544, comment 6

    v2 v3  
    33I would like to explore keeping CSS `position: fixed` for mobile screens. The mobile toolbar already shows above the post (block) editor, even if the user prefers fullscreen mode on larger screens. I think having it consistently at the top would be better.
    44
    5 Simply removing the `position: absolute` rule could worsen the experience with older mobile browsers, which behaved oddly with fixed positioning (ticket:25858#comment:19). On the other hand, the very next rule sets the `#wp-responsive-overlay` element to fixed. [https://caniuse.com/css-fixed Mobile browser support] is better now, yet using the CSS [https://developer.mozilla.org/en-US/docs/Web/CSS/@supports `@supports` at-rule] might help prevent any problems.
     5Simply removing the `position: absolute` rule could worsen the experience with older mobile browsers, which behaved oddly with fixed positioning (ticket:25858#comment:19). On the other hand, the very next rule sets the `#wp-responsive-overlay` element to fixed. [https://caniuse.com/css-fixed Mobile browser support] is better now, yet using the CSS [https://developer.mozilla.org/en-US/docs/Web/CSS/@supports 'supports' at-rule] might help prevent any problems.
    66
    77Another possible issue with keeping a fixed toolbar is how it takes up space on mobile with landscape orientation (r26373). If that needs consideration, I prefer defining the different behavior based on max-height.