mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #21727
[Bug 1264098] Re: Whitelist more CSS3 options in skins
I was testing which html tags are allowed to have css rules.
If I try to add display: none to all the html tags (see www.w3schools.com/tags/ for list of valid tags and what they do).
a,
abbr,
acronym,
address,
applet,
area,
article,
aside,
audio,
b,
base,
basefont,
bdi,
bdo,
big,
blockquote,
body,
br,
button,
canvas,
caption,
center,
cite,
code,
col,
colgroup,
datalist,
dd,
del,
details,
dfn,
dialog,
dir,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
font,
footer,
form,
frame,
frameset,
head,
header,
hgroup,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
html,
i,
iframe,
img,
input,
ins,
kbd,
keygen,
label,
legend,
li,
link,
main,
map,
mark,
menu,
menuitem,
meta,
meter,
nav,
noframes,
noscript,
object,
ol,
optgroup,
option,
output,
p,
param,
pre,
progress,
q,
rp,
rt,
ruby,
s,
samp,
script,
section,
select,
small,
source,
span,
strike,
strong,
style,
sub,
summary,
sup,
table,
tbody,
td,
textarea,
tfoot,
th,
thead,
time,
title,
tr,
track,
tt,
u,
ul,
var,
video,
wbr {
display: none;
}
It only leaves me with:
a, abbr, acronym, address, b, basefont, bdo, big, blockquote, br, caption, center, cite, code, col, colgroup, dd, del, dfn, dir, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, ins, kbd, li, menu, ol, p, pre, q, s, samp, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var {
display:none
}
Ok most of the tags it strips out are of no/very little use when it comes to css and mahara - but some that I think maybe worth keeping are:
body,
button,
form,
input,
label,
legend,
option,
select,
textarea,
The 'body' one is especially useful for setting the default font-size,
font-family, color, background-colour etc.
What do others think, allow more html tags to accept css styling?
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1264098
Title:
Whitelist more CSS3 options in skins
Status in Mahara ePortfolio:
In Progress
Status in Mahara 1.10 series:
In Progress
Status in Mahara 1.11 series:
In Progress
Bug description:
I tried to create a new skin with custom CSS code added to the
"Advanced" tab.
collection-nav ul {
columns: 2;
-webkit-columns: 2;
-moz-columns: 2;
}
When I save it, and then try to edit the skin, everything is deleted
except:
ul {
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1264098/+subscriptions
References