Update web-platform-tests to revision 1c5816e523d00ad3854082245a52f09f7bdb0ff5

This commit is contained in:
WPT Sync Bot 2020-12-23 08:21:24 +00:00
parent 1fe67041bb
commit c0df267756
94 changed files with 887 additions and 144 deletions

View file

@ -69,6 +69,27 @@ export const writingModes = [
block: "horizontal", inline: "vertical" },
];
// Check if logical properties work well in WebKit non-standard
// '-webkit-writing-mode: horizontal-bt' mode
if (CSS.supports("-webkit-writing-mode", "horizontal-bt")) {
writingModes.push (
{
styles: [
{"-webkit-writing-mode": "horizontal-bt", "direction": "ltr"},
],
blockStart: "bottom", blockEnd: "top", inlineStart: "left", inlineEnd: "right",
over: "top", under: "bottom", lineLeft: "left", lineRight: "right",
block: "vertical", inline: "horizontal" },
{
styles: [
{"-webkit-writing-mode": "horizontal-bt", "direction": "rtl"},
],
blockStart: "bottom", blockEnd: "top", inlineStart: "right", inlineEnd: "left",
over: "top", under: "bottom", lineLeft: "left", lineRight: "right",
block: "vertical", inline: "horizontal" },
)
}
export function testCSSValues(testName, style, expectedValues) {
for (const [property, value] of expectedValues) {
assert_equals(style.getPropertyValue(property), value, `${testName}, ${property}`);