Module:Sprite: Difference between revisions

no edit summary
No edit summary
Tag: Manual revert
No edit summary
Line 22: Line 22:
end
end
local span = mw.html.create('span')
local span = mw.html.create('span')
:css({
:cssText(
position = 'relative',
string.format(
height = tostring(cellHeight * ratio) .. 'px',
[[
width = tostring(cellWidth * ratio) .. 'px',
position: relative;
overflow = 'hidden',
height: %dpx;
display = 'inline-block',
width: %dpx;
['vertical-align'] = 'middle',
overflow: hidden;
['--blackstroke-color'] = ""
display: inline-block;
})
vertical-align: middle;
]],
cellHeight * ratio,
cellWidth * ratio
)
)
:tag('span')
:tag('span')
:css({
:css({