4 <script src="../resources/helper.js"></script>
5 <link rel="stylesheet" href="../resources/region-style.css"></link>
8 -webkit-writing-mode: horizontal-bt;
36 onMouseUpLogSelection("selected-content");
39 <body onload="selectContentByIds('word1', 'word2');">
40 <div id="region" class="greyBigBox">
41 inside region inside region inside region inside region
42 inside region inside region inside region inside region
44 <div id="outside-1" class="bigBox">
45 outside region outside region outside region outside region
46 <span id="word1" class="token">word1</span>
47 outside region outside region outside region outside region
49 <div id="outside-2" class="bigBox">
50 outside region outside region outside region outside region
51 <span id="word2" class="token">word2</span>
52 outside region outside region outside region outside region
54 <div id="description" class="description">
55 <h1><a href="https://bugs.webkit.org/show_bug.cgi?id=122353">Bug #122353 - [CSS Regions] Layout Test for selecting text ignoring region content</a></h1>
56 <p>This test checks the selection in 2 text wrapping a region. If you select from <span class="token">word1</span> to <span class="token">word2</span> you will see that "inside region" text is not highlighted and not included in the selected content (because of the content of the region is before the "outside region" element in the DOM).</p>
58 <dt>Selected content:</dt>
59 <dd id="selected-content"></dd>