184
edits
m (Reverted edits by BluePsychoRanger (talk) to last revision by Epyon) Tag: Rollback |
(add chromium support) |
||
Line 237: | Line 237: | ||
append("background", settings.image.url) | append("background", settings.image.url) | ||
append("mask-image", settings.image.url) | append("mask-image", settings.image.url) | ||
append("-webkit-mask-image", settings.image.url) | |||
end | end | ||
append ("background-size", settings.sheetWidth * settings.scale .. 'px auto') | append ("background-size", settings.sheetWidth * settings.scale .. 'px auto') | ||
append ("mask-size", settings.sheetWidth * settings.scale .. 'px auto') | append ("mask-size", settings.sheetWidth * settings.scale .. 'px auto') | ||
append ("-webkit-mask-size", settings.sheetWidth * settings.scale .. 'px auto') | |||
local t = settings.size * settings.scale .. 'px' | local t = settings.size * settings.scale .. 'px' | ||
Line 253: | Line 255: | ||
append("background-position", '-' .. left .. 'px -' .. top .. 'px') | append("background-position", '-' .. left .. 'px -' .. top .. 'px') | ||
append("mask-position", '-' .. left .. 'px -' .. top .. 'px') | append("mask-position", '-' .. left .. 'px -' .. top .. 'px') | ||
append("-webkit-mask-position", '-' .. left .. 'px -' .. top .. 'px') | |||
return table.concat( styles, "; " ) | return table.concat( styles, "; " ) |