CSS Writing Modes Module Level 3 CR Test Suite

The Principal Writing Mode (13 tests)

Test Refs Flags Info
+ 8 The Principal Writing Mode
wm-propagation-001 = propagation of the writing-mode property from body to root
  • the writing mode of the body must be propagated to the root, but the computed value must not change.
wm-propagation-002 = propagation of the direction property from body to root
  • the 'direction' of the body must be propagated to the root, but the computed value must not change.
wm-propagation-body-032 = 'writing-mode: vertical-rl' set to <body> element propagates to viewport
  • This test checks that when the root element has a <body> child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation.
wm-propagation-body-033 = 'writing-mode: vertical-lr' set to <body> element propagates to viewport
  • This test checks that when the root element has a <body> child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation.
wm-propagation-body-036 = 'writing-mode: vertical-rl' set to <body> element propagates to viewport
  • This test checks that when the root element has a <body> child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation.
wm-propagation-body-037 = 'writing-mode: vertical-lr' set to <body> element propagates to viewport
  • This test checks that when the root element has a <body> child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation.
wm-propagation-body-040 = 'writing-mode: horizontal-tb' set to <body> element propagates to viewport
  • This test checks that when the root element has a <body> child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation.
wm-propagation-body-041 = 'writing-mode: vertical-lr' set to <body> element propagates to viewport
  • This test checks that when the root element has a <body> child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation.
wm-propagation-body-044 = 'writing-mode: horizontal-tb' set to <body> element propagates to viewport
  • This test checks that when the root element has a <body> child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation. Finally, in order to make sure that the principal writing mode is indeed 'horizontal-tb', the test checks that a generated text's inline axis is indeed horizontal and not vertical.
wm-propagation-body-045 = 'writing-mode: vertical-rl' set to <body> element propagates to viewport
  • This test checks that when the root element has a <body> child element, then the principal writing mode is instead taken from the values of writing-mode and direction on the first such child element instead of taken from the root element. Also, a small script in this test verifies that the computed value of 'writing-mode' of the root element itself is not affected by such propagation.
wm-propagation-body-computed-root Script Computed writing-mode for html element when writing mode for body propagated to viewport
  • Test that propagating writing-mode from body to viewport does not affect the computed writing-mode of the html element
wm-propagation-body-scroll-offset-vertical-lr Script body vertical-lr propagated to viewport - scroll direction
  • Test that propagating writing-mode from body to viewport affects scroll direction
wm-propagation-body-scroll-offset-vertical-rl Script body vertical-rl propagated to viewport - scroll direction
  • Test that propagating writing-mode from body to viewport affects scroll direction
+ 8.1 Propagation to the Initial Containing Block
+ 8.2 Page Flow: the page progression direction