This tests that double-clicking a word that follows newline and span

minimum case

abcd efgh ijkl mnop select1

with another word after the span

abcd efgh ijkl mnop select2 nottoselect

use linebreak as word separator (outside element)

abcd efgh ijkl mnop select3 nottoselect

use tab as word separator (outside element)

abcd efgh ijkl mnop select4 nottoselect

use multiple whitespaces as word separator (outside element)

abcd efgh ijkl mnop select5 nottoselect

use linebreak as word separator (inside element)

abcd efgh ijkl mnop select6 nottoselect

use tab as word separator (inside element)

abcd efgh ijkl mnop select7 nottoselect

use multiple whitespaces as word separator (inside element)

abcd efgh ijkl mnop select8 nottoselect

with another word in same the span

abcd efgh ijkl mnop select9 not notyet

with another word before the span, in the same line

abcd efgh ijkl mnop qrst select10 notyet

a first half of word is inside b element

abcd efgh ijkl mnop qrst select11 notyet

a second half of word is inside b element

abcd efgh ijkl mnop qrst uvwx yz123 selectHere12 notyet

cases for white-space: pre

Note: Here for pre, we change width value to 200 to prevent layout change on contentEditable enabled.

use linebreak as word separator (outside element, white-space:pre)

abcd efgh ijkl mnop select1 nottoselect

use tab as word separator (outside element, white-space:pre)

abcd efgh ijkl mnop select2 nottoselect

use multiple whitespaces as word separator (outside element, white-space:pre)

abcd efgh ijkl mnop select3 nottoselect

use linebreak as word separator (inside element, white-space:pre)

abcd efgh ijkl mnop select4 nottoselect

use tab as word separator (inside element, white-space:pre)

abcd efgh ijkl mnop select5 nottoselect

use multiple whitespaces as word separator (inside element, white-space:pre)

abcd efgh ijkl mnop select6 nottoselect

cases for white-space: pre-wrap

use linebreak as word separator (outside element, white-space:pre-wrap)

abcd efgh ijkl mnop select1 nottoselect

use tab as word separator (outside element, white-space:pre-wrap)

abcd efgh ijkl mnop select2 nottoselect

use multiple whitespaces as word separator (outside element, white-space:pre-wrap)

abcd efgh ijkl mnop select3 nottoselect

use linebreak as word separator (inside element, white-space:pre-wrap)

abcd efgh ijkl mnop select4 nottoselect

use tab as word separator (inside element, white-space:pre-wrap)

abcd efgh ijkl mnop select5 nottoselect

use multiple whitespaces as word separator (inside element, white-space:pre-wrap)

abcd efgh ijkl mnop select6 nottoselect

cases for white-space: pre-line

use linebreak as word separator (outside element, white-space:pre-line)

abcd efgh ijkl mnop select1 nottoselect

use tab as word separator (outside element, white-space:pre-line)

abcd efgh ijkl mnop select2 nottoselect

use multiple whitespaces as word separator (outside element, white-space:pre-line)

abcd efgh ijkl mnop select3 nottoselect

use linebreak as word separator (inside element, white-space:pre-line)

abcd efgh ijkl mnop select4 nottoselect

use tab as word separator (inside element, white-space:pre-line)

abcd efgh ijkl mnop select5 nottoselect

use multiple whitespaces as word separator (inside element, white-space:pre-line)

abcd efgh ijkl mnop select6 nottoselect

cases for white-space: nowrap

Note: Although following cases have no line-breaks that had caused problem reported bug28036, we add these for comprehensiveness.

use linebreak as word separator (outside element, white-space:nowrap)

abcd efgh ijkl mnop select1 nottoselect

use tab as word separator (outside element, white-space:nowrap)

abcd efgh ijkl mnop select2 nottoselect

use multiple whitespaces as word separator (outside element, white-space:nowrap)

abcd efgh ijkl mnop select3 nottoselect

use linebreak as word separator (inside element, white-space:nowrap)

abcd efgh ijkl mnop select4 nottoselect

use tab as word separator (inside element, white-space:nowrap)

abcd efgh ijkl mnop select5 nottoselect

use multiple whitespaces as word separator (inside element, white-space:nowrap)

abcd efgh ijkl mnop select6 nottoselect
x