mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 1c5816e523d00ad3854082245a52f09f7bdb0ff5
This commit is contained in:
parent
1fe67041bb
commit
c0df267756
94 changed files with 887 additions and 144 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue