Hi
I would like to set a background image for a table in wikisyntax
(without changing CSS).
I tried:
{| style="background-image:url(http://mydomain.tld/myimage.jpg)"
| Data1
| Data2
|}
but it doesn't work. When i look at the generated html code there is no
attribute generated for <table>. Other attributes (e.g.
background-color:yellow) work perfectly. As soon as i put a
background-image:url(pathtoimage) statement, all other attributes disapear.
Whats wrong here?
Greetings
Ponte
Hi
I would like to set a background image for a table in wikisyntax
(without changing CSS).
I tried:
{| style="background-image:url(http://mydomain.tld/myimage.jpg)"
| Data1
| Data2
|}
but it doesn't work. When i look at the generated html code
there is no
attribute generated for <table>. Other attributes (e.g.
background-color:yellow) work perfectly. As soon as i put a
background-image:url(pathtoimage) statement, all other
attributes disapear.
Whats wrong here?
Greetings
Ponte
Any style value using url() is explicitly removed.
(see Sanitizer::checkCss() )
Jared
Hi
I would like to set a background image for a table in wikisyntax
(without changing CSS).
I tried:
{| style="background-image:url(http://mydomain.tld/myimage.jpg)"
| Data1
| Data2
|}
but it doesn't work. When i look at the generated html code
there is no
attribute generated for <table>. Other attributes (e.g.
background-color:yellow) work perfectly. As soon as i put a
background-image:url(pathtoimage) statement, all other
attributes disapear.
Whats wrong here?
Greetings
Ponte
Thats because of security reasons?
So i have to modify CSS then?
Ponte
Yes. It's undesirable that anyone loading the page loads an arbitrary
url. You can use class="tablebackground" and define at
mediawiki:Common.css that class as having
background-image:url(http://mydomain.tld/myimage.jpg)