This test checks that text-justify parses properly the properties from CSS 3 Text.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


Value 'none':
PASS element.style.textJustify is 'none'
PASS computedStyle.textJustify is 'none'

Value 'inter-word':
PASS element.style.textJustify is 'inter-word'
PASS computedStyle.textJustify is 'inter-word'

Value 'distribute':
PASS element.style.textJustify is 'distribute'
PASS computedStyle.textJustify is 'distribute'

Presetted value is none
Invalid value test - 'green':
PASS element.style.textJustify is 'none'
PASS computedStyle.textJustify is 'none'

Invalid value test - 'inline':
PASS element.style.textJustify is 'none'
PASS computedStyle.textJustify is 'none'

Presetted value is distribute
Invalid value test - 'solid':
PASS element.style.textJustify is 'distribute'
PASS computedStyle.textJustify is 'distribute'

Invalid value test - 'normal':
PASS element.style.textJustify is 'distribute'
PASS computedStyle.textJustify is 'distribute'

Computed value test - 'inherit':
PASS element.style.textJustify is 'inherit'
PASS computedStyle.textJustify is 'none'

Computed value test - 'inherit':
PASS element.style.textJustify is 'inherit'
PASS computedStyle.textJustify is 'distribute'

Computed value test - 'initial':
PASS element.style.textJustify is 'initial'
PASS computedStyle.textJustify is 'auto'

Value of ancestor is 'inter-word, while child is 'distribute':
PASS element.style.textJustify is 'distribute'
PASS computedStyle.textJustify is 'distribute'

Value of ancestor is 'none, while child is 'inter-word':
PASS element.style.textJustify is 'inter-word'
PASS computedStyle.textJustify is 'inter-word'

PASS successfullyParsed is true

TEST COMPLETE