mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 20:37:31 +09:00
Issue #2075 - Part 5: Allow logical aliases in the property database.
This commit is contained in:
parent
1b22ef40f9
commit
e38f362d44
1 changed files with 5 additions and 3 deletions
|
|
@ -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) {
|
for (var prop in gCSSProperties) {
|
||||||
var entry = gCSSProperties[prop];
|
var entry = gCSSProperties[prop];
|
||||||
if (entry.logical) {
|
if (entry.logical) {
|
||||||
is(entry.type, CSS_TYPE_LONGHAND,
|
ok(entry.type == CSS_TYPE_LONGHAND ||
|
||||||
"property '" + prop + "' is listed as CSS_TYPE_LONGHAND due to its " +
|
(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");
|
"being a logical property");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue