Issue #2075 - Part 5: Allow logical aliases in the property database.

This commit is contained in:
Moonchild 2022-12-31 10:19:45 +00:00 • committed by roytam1
commit e38f362d44

View file

@ -123,13 +123,15 @@ for (var prop in gCSSProperties) {
}
/*
* Test that only longhand properties are listed as logical properties.
* Test that only longhand properties or its aliases are listed as logical
* properties.
*/
for (var prop in gCSSProperties) {
var entry = gCSSProperties[prop];
if (entry.logical) {
is(entry.type, CSS_TYPE_LONGHAND,
"property '" + prop + "' is listed as CSS_TYPE_LONGHAND due to its " +
ok(entry.type == CSS_TYPE_LONGHAND ||
(entry.alias_for && gCSSProperties[entry.alias_for].logical),
"property '" + prop + "' is listed as CSS_TYPE_LONGHAND or is an alias due to it " +
"being a logical property");
}
}