From af69db961fccebb477600c90ab0ddb72ca870332 Mon Sep 17 00:00:00 2001 From: Jonas Schade Date: Tue, 5 Sep 2023 15:43:09 +0200 Subject: [PATCH] test: :white_check_mark: adjust test values for getElementAxes --- test/getElementAxes.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/getElementAxes.test.ts b/test/getElementAxes.test.ts index f7855ee..e670593 100644 --- a/test/getElementAxes.test.ts +++ b/test/getElementAxes.test.ts @@ -7,13 +7,14 @@ describe('getElementAxes', () => { it('should return the correct axes on LTR pages', async () => { const page = getPage(); + // see https://drafts.csswg.org/css-writing-modes/#logical-to-physical const CASES = [ { id: 'my-elem-h-tb', block: 'top-bottom', inline: 'left-right' }, { id: 'my-elem-v-rl', block: 'right-left', inline: 'top-bottom' }, { id: 'my-elem-v-lr', block: 'left-right', inline: 'top-bottom' } // TODO: uncomment once chrome supports writing-mode sideways-rl / sideways-lr // { id: 'my-elem-s-rl', block: 'right-left', inline: 'top-bottom' }, - // { id: 'my-elem-s-lr', block: 'left-right', inline: 'top-bottom' } + // { id: 'my-elem-s-lr', block: 'left-right', inline: 'bottom-top' } ]; const promises = CASES.map(({ id, ...expected }) => @@ -41,13 +42,14 @@ describe('getElementAxes', () => { document.dir = 'rtl'; }); + // see https://drafts.csswg.org/css-writing-modes/#logical-to-physical const CASES = [ { id: 'my-elem-h-tb', block: 'top-bottom', inline: 'right-left' }, { id: 'my-elem-v-rl', block: 'right-left', inline: 'bottom-top' }, { id: 'my-elem-v-lr', block: 'left-right', inline: 'bottom-top' } // TODO: uncomment once chrome supports writing-mode sideways-rl / sideways-lr // { id: 'my-elem-s-rl', block: 'right-left', inline: 'bottom-top' }, - // { id: 'my-elem-s-lr', block: 'left-right', inline: 'bottom-top' } + // { id: 'my-elem-s-lr', block: 'left-right', inline: 'top-bottom' } ]; const promises = CASES.map(({ id, ...expected }) =>