ID:2430015
 
BYOND Version:512
Operating System:Windows 10 Pro 64-bit
Web Browser:Firefox 60.0
Applies to:Dream Daemon
Status: Open

Issue hasn't been assigned a status value.
Moved from Developer Help

Problem description:
Could someone explain me why, when i use class atribute in maptext it doesn't work as anyone could expect, is it a DM bug?

Video:
https://puu.sh/CRdVc.mp4

Code Snippet (if applicable) to Reproduce Problem:
/*
In Style.dms:

<STYLE>
.mtOutline {
font: ANSIble;
-dm-text-outline:1 blue;
font-family: monospace;
color: red;
}
</STYLE>
*/



mob
maptext_width=400
verb/_mtOutlineTest()
src<<"<SPAN CLASS='mtOutline'> Styled Text!</SPAN>"// When i use class and print it in output, it's work
maptext="<SPAN STYLE='font: ANSIble; -dm-text-outline:1 blue; font-family: monospace; color: red;'>Styled Text!</SPAN>"// When i use style atribute it's work - maptext
maptext="<SPAN CLASS='mtOutline'> Styled Text!</SPAN>"// When i use class it's doesn't work - maptext



Does the problem occur:
Every time? Or how often? Yes
In other games? Yes
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur?
When i set style maptext in style tag.
bump?