function run_tests(test_cases, shorthand, subproperties) {
test_cases.forEach(function(test_case) {
test(function() { var element = document.createElement('div');
document.body.appendChild(element);
// Set text color to test initial value of text-decoration-color
// (currentColor).
element.style.color = "#ff00ff";
element.style[shorthand] = test_case.specified; var computed = window.getComputedStyle(element);
subproperties.forEach(function(longhand) {
assert_equals(
computed[longhand],
test_case[longhand] || initial_values[longhand],
longhand
);
});
}, "test parsing of 'text-decoration: " + test_case.specified + "'");
});
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.