Bug 1101311 - Use text-decoration-* instead of -moz-text-decoration. r=florian, a=me
This commit is contained in:
Родитель
d1e40e678d
Коммит
d690f14bba
|
@ -102,7 +102,7 @@ const kStandardMode = {
|
|||
styles: {
|
||||
'font-style': true,
|
||||
'font-weight': true,
|
||||
'-moz-text-decoration-line': true
|
||||
'text-decoration-line': true
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -150,9 +150,9 @@ const kPermissiveMode = {
|
|||
'font-size': true,
|
||||
'font-style': true,
|
||||
'font-weight': true,
|
||||
'-moz-text-decoration-color': true,
|
||||
'-moz-text-decoration-style': true,
|
||||
'-moz-text-decoration-line': true
|
||||
'text-decoration-color': true,
|
||||
'text-decoration-style': true,
|
||||
'text-decoration-line': true
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -148,8 +148,8 @@ function test_standardMode() {
|
|||
let string = "<span style=\"" + css + "\">foo</span>";
|
||||
do_check_eq(string, cleanupImMarkup(string));
|
||||
}
|
||||
// text-decoration is a shorthand for several -moz-text-decoration properties.
|
||||
do_check_eq("<span style=\"-moz-text-decoration-line: underline;\">foo</span>",
|
||||
// text-decoration is a shorthand for several text-decoration properties.
|
||||
do_check_eq("<span style=\"text-decoration-line: underline;\">foo</span>",
|
||||
cleanupImMarkup("<span style=\"text-decoration: underline\">foo</span>"));
|
||||
|
||||
const badCSS = [
|
||||
|
|
Загрузка…
Ссылка в новой задаче