summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-12-31 10:19:45 +0000
committerMoonchild <moonchild@palemoon.org>2022-12-31 10:19:45 +0000
commit7bcc49489a63a778a770c671c669b5a35202c808 (patch)
tree822765a6aaf4bd0b577d573b573f77f6d943128c /layout
parent45193b1a82d66b7baa4723d6e4e4878bd4ca2749 (diff)
downloaduxp-7bcc49489a63a778a770c671c669b5a35202c808.tar.gz
Issue #2075 - Part 5: Allow logical aliases in the property database.
Diffstat (limited to 'layout')
-rw-r--r--layout/style/test/test_property_database.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/layout/style/test/test_property_database.html b/layout/style/test/test_property_database.html
index 30e6618fcb..e7751cf0b8 100644
--- a/layout/style/test/test_property_database.html
+++ b/layout/style/test/test_property_database.html
@@ -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");
}
}