Skip to content

Commit 98b09ef

Browse files
committed
test: Make sure CSS Logical won't be touched
Just as a guarantee that CSS Janus doesn't touch CSS Logical properties https://drafts.csswg.org/css-logical/ CSS Logical will be flipped automatically thus are written in a way that do not need CSS Janus inherently. Tests are brought from these changes, * https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1052443 * https://gerrit.wikimedia.org/r/c/css-sanitizer/+/1050707 * https://gerrit.wikimedia.org/r/c/css-sanitizer/+/1050724 Bug: T369475 Change-Id: I3f2439cc333a7f5f299226c46c43aa4124b184b2
1 parent 2f1d307 commit 98b09ef

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/data.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,5 +902,26 @@
902902
".x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}.x{left:0}"
903903
]
904904
]
905+
},
906+
"do not touch CSS Logical": {
907+
"cases": [
908+
[
909+
"ul { margin-top: 0.3em; margin-right: 0; margin-bottom: 0; margin-left: 1.6em; margin-inline-start: 1.6em; margin-inline-end: 0; padding: 0; }",
910+
"ul { margin-top: 0.3em; margin-left: 0; margin-bottom: 0; margin-right: 1.6em; margin-inline-start: 1.6em; margin-inline-end: 0; padding: 0; }"
911+
],
912+
[
913+
"ol { margin: 0.3em 0 0 3.2em; margin-inline: 3.2em 0; padding: 0; }",
914+
"ol { margin: 0.3em 3.2em 0 0; margin-inline: 3.2em 0; padding: 0; }"
915+
],
916+
[
917+
".foo { float: inline-start; text-align: end; } .bar { clear: inline-end; text-align: start; }"
918+
],
919+
[
920+
"div { inline-size: min-content; min-inline-size: max-content; max-inline-size: fit-content(10%); block-size: min-content; min-block-size: 10q; max-block-size: none; margin-block-start: auto; margin-block-end: 1ex; margin-inline-start: 10%; margin-inline-end: initial; margin-block: 1ex 10%; margin-inline: 20%; inset-block-start: 10px; inset-block-end: auto; inset-inline-start: auto; inset-inline-end: 10%; inset-block: 20% 10%; inset-inline: 10px; inset: 10px 20px 10px; padding-block-start: auto; bad-value-for-property; padding-block-end: 1ex; padding-inline-start: 10%; padding-inline-end: unset; padding-block: 10% 20%; padding-inline: 30%; }"
921+
],
922+
[
923+
"span { border-block-start-width: 1px; border-block-end-width: medium; border-inline-start-width: thin; border-inline-end-width: thick; border-block-width: thick thin; border-inline-width: medium; border-block-start-style: dotted; border-block-end-style: solid; border-inline-start-style: none; border-inline-end-style: outset; border-block-style: outset solid; border-inline-style: dotted; border-block-start-color: red; border-block-end-color: red; border-inline-start-color: red; border-inline-end-color: red; border-block-color: green; border-inline-color: transparent red; border-block-start: 1px; border-block-end: medium; border-inline-start: thin; border-inline-end: thick; border-block: thick; border-inline: red; border-start-start-radius: red; border-start-end-radius: red; border-end-start-radius: red; border-end-end-radius: red; }"
924+
]
925+
]
905926
}
906927
}

0 commit comments

Comments
 (0)