MediaWiki talk:Gadget-ReferenceTooltips.js: Difference between revisions

Content deleted Content added
Update request 9 July 2024: reply to Jon (WMF)
Line 243:
:::::::::There is no problem with that (currently the coefficient is 13/14 to match the usual font size in Vector, 13px); the question is, relative to what. [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 08:33, 10 July 2024 (UTC)
::::::::::The teleport target. [[User:Nardog|Nardog]] ([[User talk:Nardog|talk]]) 17:21, 10 July 2024 (UTC)
:::::{{outdent|5}} Hm. There is a problem with <code>#mw-teleport-target</code>, and I can't yet figure out how to solve it. <code>#mw-teleport-target</code> is located at the end of the DOM and only has<syntaxhighlight lang="css">
position: absolute;
z-index: 450;
</syntaxhighlight>as styles. Which means its descendants will be positioned relative to the bottom of the screen, even if they have <code>position: absolute</code>. If I use <code>position: fixed</code> for a descendant, then ''its'' descendants will have fixed positioning relative to the page (which we don't need), even if they have <code>position: absolute</code>.{{pb}}If <code>#mw-teleport-target</code> had<syntaxhighlight lang="css">
top: 0;
width: 100%;
</syntaxhighlight>that would probably work, but it doesn't. <code>#mw-teleport-target</code> seems to be intended for fixed-positioned elements like dialogs only. [[User:JWBTH|Jack who built the house]] ([[User:JWBTH|talk]]) 12:51, 11 July 2024 (UTC)
::::<code>#mw-teleport-target</code> isn't served by HTML, so I assume you can't just expect it to be there but have to await something. [[User:Nardog|Nardog]] ([[User talk:Nardog|talk]]) 07:36, 10 July 2024 (UTC)
:::::https://phabricator.wikimedia.org/source/mediawiki/browse/master/resources/src/mediawiki.page.ready/ready.js<syntaxhighlight lang="js">