[CSS Regions] Layout Test for selecting text ignoring region content
authorrego@igalia.com <rego@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Oct 2013 17:07:25 +0000 (17:07 +0000)
committerrego@igalia.com <rego@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Oct 2013 17:07:25 +0000 (17:07 +0000)
commitad75ea761c282ab8fbc0eb9bdcb471ea2add160b
treee4d9cf375d82f9abfcfab89d83d3f4fae2907f55
parent3ba318448e23bcf9e124ca52873b3b9f1213bc05
[CSS Regions] Layout Test for selecting text ignoring region content
https://bugs.webkit.org/show_bug.cgi?id=122353

Reviewed by Darin Adler.

Add new reftests for selecting text in texts wrapping a region, where
the region content is ignored. It compares the behavior (highlighted
text and selected content) in regions and absolute positions.

Absolute positioned elements do not fill the gaps on the right during
the selection, unlike regular elements. This is the reason why some
regular elements are floated in order to avoid such problems in the
reftests.

Provided layout tests for different writing models.

* fast/regions/resources/region-style.css: New CSS classes required for these tests.
* fast/regions/selection/selecting-text-ignoring-region-expected.html: Added.
* fast/regions/selection/selecting-text-ignoring-region-horiz-bt-expected.html: Added.
* fast/regions/selection/selecting-text-ignoring-region-horiz-bt.html: Added.
* fast/regions/selection/selecting-text-ignoring-region-vert-lr-expected.html: Added.
* fast/regions/selection/selecting-text-ignoring-region-vert-lr.html: Added.
* fast/regions/selection/selecting-text-ignoring-region-vert-rl-expected.html: Added.
* fast/regions/selection/selecting-text-ignoring-region-vert-rl.html: Added.
* fast/regions/selection/selecting-text-ignoring-region.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/regions/resources/region-style.css
LayoutTests/fast/regions/selection/selecting-text-ignoring-region-expected.html [new file with mode: 0644]
LayoutTests/fast/regions/selection/selecting-text-ignoring-region-horiz-bt-expected.html [new file with mode: 0644]
LayoutTests/fast/regions/selection/selecting-text-ignoring-region-horiz-bt.html [new file with mode: 0644]
LayoutTests/fast/regions/selection/selecting-text-ignoring-region-vert-lr-expected.html [new file with mode: 0644]
LayoutTests/fast/regions/selection/selecting-text-ignoring-region-vert-lr.html [new file with mode: 0644]
LayoutTests/fast/regions/selection/selecting-text-ignoring-region-vert-rl-expected.html [new file with mode: 0644]
LayoutTests/fast/regions/selection/selecting-text-ignoring-region-vert-rl.html [new file with mode: 0644]
LayoutTests/fast/regions/selection/selecting-text-ignoring-region.html [new file with mode: 0644]