Page MenuHomePhabricator

#jump-to-nav links make absolutely positioned elements jump
Closed, ResolvedPublic

Description

The #jump-to-nav links are currently hidden using "height: 0; overflow: hidden;", and that's causing trouble with absolutely positioned elements, like coordinates (especially in the Vector skin). This makes the coordinates position change in Firefox, depending on whether these links are present in the HTML or not (they are always present in the source for anonymous users, but not for logged-in users).

To reproduce, visit [[de:Berlin]] in Firefox 23, logged out (-> coordinates appear above header line) and logged in with #jump-to-nav links disabled (-> coordinates appear below header line). This is rather new; the coordinates are meant to be below the header line at all times (and it used to be like that).

I'd suggest to hide them with "position: absolute; top: -9999px;" like it is done in vector/screen.css for #mw-navigation h2. That should achieve consistent behavior across browsers.


Version: 1.22.0
Severity: normal

Details

Reference
bz48687

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:22 AM
bzimport set Reference to bz48687.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for the report and the detailed analysis!

Krinkle claimed this task.

This has been resolved per T195256 in Vector and MonoBook.