[wp-trac] [WordPress Trac] #54210: Admin collapse button inactive due to a media query incorrectly targeting a breakpoint
WordPress Trac
noreply at wordpress.org
Tue Oct 12 19:49:49 UTC 2021
#54210: Admin collapse button inactive due to a media query incorrectly targeting a
breakpoint
-------------------------+-------------------------------------------------
Reporter: Webaxones | Owner: (none)
Type: defect | Status: new
(bug) |
Priority: normal | Milestone: 5.9
Component: | Version: 5.8.1
Administration |
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, accessibility, javascript,
needs-testing | administration
-------------------------+-------------------------------------------------
Comment (by abesell132):
This issue seems to be more widespread than just the admin menu. A similar
bug can be replicated on the front end. Drop this code into any page or
post to replicate:
{{{
<div id="change">This starts blue and turns red below 1400px</div>
<style>
#change {color: blue;}
@media only screen and (max-width:1400px) { #change { color: red;} }
</style>
}}}
From a screen width of 1384px to 1920px the color is blue. The 1400px max-
width media query doesn't kick in until 1383px. (The text turns red 17
pixels late)
**Test Environment**
WP Version: 5.8.1
PHP Version: 7.3
Browser: All of em'
Theme: Twenty Twenty One
Web Server: Apache
Logs: Nothing
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54210#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list