summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordarin <darin@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2003-07-31 00:18:03 +0000
committerdarin <darin@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2003-07-31 00:18:03 +0000
commit79561979b984cd8ab9efb2ef47091d00451ceddb (patch)
tree664169507f32abbb269acbfa76c2a9b08097fd83
parent0257162719cacdee2ea1b9f5a0dc7a0163930c83 (diff)
downloadchromium_src-79561979b984cd8ab9efb2ef47091d00451ceddb.zip
chromium_src-79561979b984cd8ab9efb2ef47091d00451ceddb.tar.gz
chromium_src-79561979b984cd8ab9efb2ef47091d00451ceddb.tar.bz2
Moving layout tests in here.
git-svn-id: svn://svn.chromium.org/blink/trunk@4740 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/001-expected.txt33
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/001.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/002-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/002.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/003-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/003.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/004-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/004.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/005-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/005.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/006-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/006.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/007-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/007.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/008-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/008.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/009-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/009.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/010-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/010.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/011-expected.txt75
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/011.html177
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/012-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/012.html16
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/013-expected.txt43
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/013.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/014-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/014.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/015-expected.txt163
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/015.html94
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/016-expected.txt1212
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/016.html421
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/basic/resources/013-helper.html1
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/001-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/001.html1
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/002-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/002.html1
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/003-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/003.html14
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/004-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/004.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/005-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/005.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/006-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/006.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/007-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/007.html31
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/008-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/008.html4
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/009-expected.txt16
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/009.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/010-expected.txt22
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/010.html3
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/011-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/011.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/012-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/012.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/013-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/013.html69
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/014-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/014.html33
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/015-expected.txt25
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/015.html31
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/016-expected.txt74
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/016.html57
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/017-expected.txt29
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/017.html14
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/018-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/018.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/019-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/019.html8
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/020-expected.txt51
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/float/020.html99
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/001-expected.txt50
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/001.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/002-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/002.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/003-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/003.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/004-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/004.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/005-expected.txt52
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/005.html41
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/006-expected.txt34
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/006.html47
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/010-expected.txt34
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/010.html56
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/011-expected.txt39
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/011.html57
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/012-expected.txt28
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/012.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/013-expected.txt29
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/013.html43
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/014-expected.txt29
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/014.html43
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/015-expected.txt31
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/015.html43
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/016-expected.txt32
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/016.html45
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/017-expected.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/017.html35
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/018-expected.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/018.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/019-expected.txt31
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/019.html51
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/020-expected.txt31
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/020.html51
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/021-expected.txt25
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/021.html43
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/022-expected.txt25
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/022.html43
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/023-expected.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/023.html45
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/024-expected.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/024.html45
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/025-expected.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/025.html45
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/026-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/026.html16
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/027-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/027.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/028-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/028.html28
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/029-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/029.html28
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/030-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/030.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/031-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/031.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/032-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/032.html36
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/033-expected.txt22
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/033.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/034-expected.txt25
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/034.html46
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/035-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/035.html29
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/037-expected.txt21
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/037.html25
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/038-expected.txt21
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/038.html25
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/039-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/039.html24
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/040-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/040.html24
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/041-expected.txt24
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/041.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/042-expected.txt30
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/042.html52
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/043-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/margin-collapse/043.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/001-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/001.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/002-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/002.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/003-expected.txt7
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/003.html38
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/004-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/004.html38
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/005-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/005.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/006-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/006.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/007-expected.txt7
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/007.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/008-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/008.html44
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/009-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/009.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/010-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/010.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/011-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/011.html48
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/012-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/012.html46
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/013-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/013.html46
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/014-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/014.html50
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/015-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/015.html48
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/016-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/016.html48
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/017-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/017.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/018-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/018.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/019-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/019.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/020-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/020.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/021-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/021.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/022-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/022.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/023-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/023.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/024-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/024.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/025-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/025.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/026-expected.txt7
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/026.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/027-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/027.html41
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/028-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/028.html41
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/029-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/029.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/030-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/030.html41
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/031-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/031.html41
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/032-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/032.html48
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/033-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/033.html46
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/034-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/034.html46
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/035-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/035.html49
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/036-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/036.html47
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/037-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/037.html47
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/038-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/038.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/039-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/039.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/040-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/040.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/041-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/041.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/042-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/042.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/043-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/043.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/044-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/044.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/045-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/045.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/046-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/046.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/047-actual.txt59
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/047-diffs.txt88
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/047-expected.txt59
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/047.html62
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/048-expected.txt45
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/048.html57
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/049-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/049.html11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/050-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/050.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/051-actual.txt367
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/051-diffs.txt30
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/051-expected.txt367
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/051.html155
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/052-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/052.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/053-expected.txt25
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/053.html11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/054-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/054.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/055-expected.txt372
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/055.html134
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/001-expected.txt22
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/001.html15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/002-expected.txt22
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/002.html15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/003-expected.txt22
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/003.html15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/004-expected.txt22
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/004.html15
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/005-expected.txt29
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/005.html14
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/006-expected.txt31
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/006.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/007-expected.txt49
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/auto/007.html16
-rw-r--r--third_party/WebKit/LayoutTests/fast/block/positioning/readme.txt5
-rw-r--r--third_party/WebKit/LayoutTests/fast/compact/001-expected.txt16
-rw-r--r--third_party/WebKit/LayoutTests/fast/compact/001.html16
-rw-r--r--third_party/WebKit/LayoutTests/fast/compact/002-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/compact/002.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/css-generated-content/001-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/css-generated-content/001.html11
-rw-r--r--third_party/WebKit/LayoutTests/fast/css-generated-content/002-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/css-generated-content/002.html12
-rw-r--r--third_party/WebKit/LayoutTests/fast/css-generated-content/003-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/css-generated-content/003.html14
-rw-r--r--third_party/WebKit/LayoutTests/fast/css-generated-content/004-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/css-generated-content/004.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/doctypes/001-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/doctypes/001.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/doctypes/002-expected.txt22
-rw-r--r--third_party/WebKit/LayoutTests/fast/doctypes/002.html11
-rw-r--r--third_party/WebKit/LayoutTests/fast/doctypes/003-expected.txt22
-rw-r--r--third_party/WebKit/LayoutTests/fast/doctypes/003.html11
-rw-r--r--third_party/WebKit/LayoutTests/fast/doctypes/004-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/doctypes/004.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/dynamic/001-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/dynamic/001.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/dynamic/002-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/dynamic/002.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/dynamic/004-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/dynamic/004.html12
-rw-r--r--third_party/WebKit/LayoutTests/fast/encoding/utf-16-big-endian-expected.txt497
-rw-r--r--third_party/WebKit/LayoutTests/fast/encoding/utf-16-big-endian.htmlbin0 -> 13550 bytes
-rw-r--r--third_party/WebKit/LayoutTests/fast/encoding/utf-16-little-endian-expected.txt497
-rw-r--r--third_party/WebKit/LayoutTests/fast/encoding/utf-16-little-endian.htmlbin0 -> 13550 bytes
-rw-r--r--third_party/WebKit/LayoutTests/fast/events/onload-re-entry-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/events/onload-re-entry.html12
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/001-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/001.html37
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/002-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/002.html38
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/003-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/003.html38
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/004-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/004.html28
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/005-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/005.html29
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/006-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/006.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/007-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/007.html34
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/008-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/008.html33
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/009-expected.txt16
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/009.html23
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/010-expected.txt16
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/010.html30
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/011-expected.txt49
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/011.html56
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/012-expected.txt21
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/012.html51
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/013-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/013.html35
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/014-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/014.html38
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/015-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/015.html46
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/016-expected.txt21
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/016.html50
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/017-expected.txt91
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/017.html108
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/018-expected.txt47
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/018.html94
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/019-expected.txt47
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/019.html94
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/020-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/020.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/021-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/021.html41
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/022-expected.txt16
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/022.html30
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/023-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/023.html34
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/024-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/024.html37
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/025-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/flexbox/025.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/001-actual.txt50
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/001-diffs.txt34
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/001-expected.txt50
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/001.html33
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/002-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/002.html4
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/003-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/003.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/004-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/004.html1
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/005-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/005.html8
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/006-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/006.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/input-width-expected.txt6
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/input-width.html1
-rw-r--r--third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-actual.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-diffs.txt32
-rw-r--r--third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/frames/empty-frame-src.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/frames/resources/purple.html4
-rw-r--r--third_party/WebKit/LayoutTests/fast/frames/resources/red.html4
-rw-r--r--third_party/WebKit/LayoutTests/fast/inline-block/001-expected.txt46
-rw-r--r--third_party/WebKit/LayoutTests/fast/inline-block/001.html14
-rw-r--r--third_party/WebKit/LayoutTests/fast/inline/001-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/inline/001.html4
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/001-expected.txt19
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/001.html2
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/002-expected.txt29
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/002.html3
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/003-expected.txt70
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/003.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/004-expected.txt33
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/004.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/005-expected.txt21
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/005.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/006-expected.txt7
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/006.html15
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/007-expected.txt27
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/007.html3
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/008-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/008.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/009-expected.txt7
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/009.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/010-expected.txt51
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/010.html23
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/011-expected.txt7
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/011.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/012-expected.txt19
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/012.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/013-expected.txt7
-rw-r--r--third_party/WebKit/LayoutTests/fast/invalid/013.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/001-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/001.html30
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/002-expected.txt22
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/002.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/003-expected.txt210
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/003.html59
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/004-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/004.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/005-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/005.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/006-expected.txt19
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/006.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/007-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/lists/007.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/overflow/001-expected.txt21
-rw-r--r--third_party/WebKit/LayoutTests/fast/overflow/001.html11
-rw-r--r--third_party/WebKit/LayoutTests/fast/overflow/002-expected.txt81
-rw-r--r--third_party/WebKit/LayoutTests/fast/overflow/002.html34
-rw-r--r--third_party/WebKit/LayoutTests/fast/overflow/003-expected.txt4
-rw-r--r--third_party/WebKit/LayoutTests/fast/overflow/003.xml89
-rw-r--r--third_party/WebKit/LayoutTests/fast/overflow/resources/rss.css56
-rw-r--r--third_party/WebKit/LayoutTests/fast/parser/document-write-option-expected.txt6
-rw-r--r--third_party/WebKit/LayoutTests/fast/parser/document-write-option.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/parser/head-comment-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/parser/head-comment.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/parser/tabs-in-scripts-expected.txt7
-rw-r--r--third_party/WebKit/LayoutTests/fast/parser/tabs-in-scripts.html3
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/001-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/001.html16
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/002-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/002.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/003-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/003.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/004-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/004.html30
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/005-expected.txt41
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/005.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/006-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/006.html2
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/007-expected.txt25
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/007.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/008-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/008.html2
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/image-onload-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/image-onload.html1
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/image-sizing-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/image-sizing.html12
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/resources/007-sub.html4
-rw-r--r--third_party/WebKit/LayoutTests/fast/replaced/resources/compass.jpgbin0 -> 38616 bytes
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/001-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/001.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/002-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/002.html16
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/003-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/003.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/004-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/004.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/005-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/005.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/006-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/006.html23
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/007a-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/007a.html26
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/007b-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/007b.html23
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/008-expected.txt19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/008.html25
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/009-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/009.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/010-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/010.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/011-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/011.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/012-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/012.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/013-expected.txt21
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/013.html26
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/014-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/014.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/015-expected.txt19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/015.html24
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/016-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/016.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/017-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/017.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/018-expected.txt119
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/018.html68
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/018b-expected.txt43
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/018b.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/019-expected.txt16
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/019.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/020-expected.txt24
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/020.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/021-expected.txt39
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/021.html26
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/021b-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/021b.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/027-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/027.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/032-expected.txt45
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/032.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/033-expected.txt45
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/033.html40
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/038-expected.txt19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/038.html23
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/039-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/039.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/039b-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/039b.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/040-expected.txt10
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/040.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/041-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/041.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/042-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/042.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/043-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/043.html38
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/043b-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/043b.html38
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/044-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/044.html32
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/044b-expected.txt20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/044b.html32
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/044c-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/044c.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/044d-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/044d.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/045-expected.txt21
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/045.html23
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/045b-expected.txt21
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/045b.html24
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/045c-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/045c.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/054-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/054.html24
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/056-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/056.html24
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/058-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/058.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/059-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/059.html24
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/060-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/060.html24
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/061-expected.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/061.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/062-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/062.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/063-expected.txt16
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/063.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/064-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/064.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/065-expected.txt24
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/065.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/066-expected.txt39
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/066.html27
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/066b-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/066b.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/072-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/072.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/072b-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/072b.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/077-expected.txt46
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/077.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/077b-expected.txt46
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/077b.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/078-expected.txt46
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/078.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/078b-expected.txt46
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/078b.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/083-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/083.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/087b-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/087b.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/088b-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/088b.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/089-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/089.html23
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/090b-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/090b.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/154-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/154.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155a-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155a.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155b-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155b.html24
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155c-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155c.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155d-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/155d.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/156b-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/156b.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/157-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/157.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/158-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/158.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/160-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/160.html21
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/166-expected.txt1434
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/166.html180
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/166a-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/166a.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/167-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/167.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/167a-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/167a.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/168-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/168.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/168a-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/168a.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/169-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/169.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/169a-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/169a.html20
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170a-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170a.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170b-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170b.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170c-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170c.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170d-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/170d.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/175a-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/175a.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/175b-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/175b.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/175c-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/selectors/175c.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/001-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/001.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/002-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/002.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/003-expected.txt76
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/003.html31
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/004-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/004.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/005-expected.txt72
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/005.html51
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/006-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/006.html14
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/007-expected.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/007.html15
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/008-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/008.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/009-expected.txt42
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/009.html44
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/010-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/010.html8
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/011-expected.txt48
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/011.html43
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/012-expected.txt27
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/012.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/013-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/013.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/014-expected.txt19
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/014.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/015-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/015.html8
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/016-expected.txt19
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/016.html11
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/017-expected.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/017.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/018-expected.txt40
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/018.html29
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/020-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/020.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/021-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/021.html4
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/022-expected.txt52
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/022.html62
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/023-expected.txt100
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/023.html83
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/024-expected.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/024.html44
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/025-expected.txt94
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/025.html92
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/026-expected.txt24
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/026.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/027-expected.txt73
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/027.html50
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/028-expected.txt32
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/028.html42
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/029-expected.txt19
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/029.html29
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/030-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/030.html3
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/031-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/031.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/032-expected.txt25
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/032.html12
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/033-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/033.html8
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/034-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/034.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/035-expected.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/035.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/036-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/036.html8
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/037-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/037.xml12
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/large-width-expected.txt13
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/large-width.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/nobr-expected.txt36
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/nobr.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/wide-colspan-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/wide-colspan.html15
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/wide-column-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/table/wide-column.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/001-actual.txt24
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/001-diffs.txt26
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/001-expected.txt24
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/001.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/002-expected.txt27
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/002.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/003-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/003.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/004-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/004.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/005-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/005.html5
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/006-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/006.html7
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/007-expected.txt44
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/007.html17
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/008-expected.txt30
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/008.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/009-actual.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/009-diffs.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/009-expected.txt15
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/009.html3
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/011-expected.txt27
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/basic/011.html15
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/firstline/001-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/firstline/001.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/firstline/002-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/firstline/002.html10
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/firstline/003-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/firstline/003.html18
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/international/001-expected.txt27
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/international/001.html13
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/international/002-expected.txt16
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/international/002.html16
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/001-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/001.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/002-expected.txt87
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/002.html41
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/003-expected.txt87
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/003.html41
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/004-expected.txt47
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/004.html34
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/005-expected.txt35
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/005.html34
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/006-expected.txt107
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/006.html46
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/007-expected.txt48
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/007.html31
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/008-expected.txt17
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/008.html26
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/009-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/009.html23
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/010-expected.txt47
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/010.html34
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/011-expected.txt35
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/011.html34
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/012-expected.txt36
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/012.html19
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/013-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/013.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/014-expected.txt23
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/014.html22
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/015-expected.txt47
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/015.html34
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/016-expected.txt35
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/016.html34
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/017-expected.txt11
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/017.html14
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/018-expected.txt103
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/018.html39
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/019-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/019.html9
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/020-expected.txt35
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/020.html12
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/021-expected.txt18
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/021.html6
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/022-actual.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/022-diffs.txt12
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/022-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/022.html12
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/023-expected.txt9
-rw-r--r--third_party/WebKit/LayoutTests/fast/text/whitespace/023.html4
807 files changed, 24704 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/001-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/001-expected.txt
new file mode 100644
index 0000000..b72a43e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/001-expected.txt
@@ -0,0 +1,33 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x183
+ RenderBlock {HTML} at (0,0) size 800x183
+ RenderBody {BODY} at (8,8) size 784x161
+ RenderBlock {P} at (0,0) size 784x161
+ RenderBlock (anonymous) at (2,2) size 780x16
+ RenderInline {I} at (0,0) size 226x16
+ RenderText {TEXT} at (0,0) size 92x16
+ text run at (0,0) width 92: "Start of a line. "
+ RenderInline {FONT} at (0,0) size 134x16 [color=#FF0000]
+ RenderText {TEXT} at (92,0) size 134x16
+ text run at (92,0) width 134: "More red on this line:"
+ RenderBlock (anonymous) at (2,34) size 780x59 [color=#FF0000]
+ RenderBlock {H3} at (0,0) size 780x18
+ RenderText {TEXT} at (0,0) size 203x18
+ text run at (0,0) width 203: "Suddenly a block appears!"
+ RenderBlock {H2} at (0,35) size 780x24
+ RenderText {TEXT} at (0,0) size 194x24
+ text run at (0,0) width 194: "And another block!"
+ RenderBlock (anonymous) at (2,110) size 780x49
+ RenderInline {I} at (0,0) size 291x32
+ RenderInline {FONT} at (0,0) size 96x32 [color=#FF0000]
+ RenderText {TEXT} at (0,0) size 96x16
+ text run at (0,0) width 96: "Now more text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,16) size 66x16
+ text run at (0,16) width 66: "This is red"
+ RenderText {TEXT} at (66,16) size 225x16
+ text run at (66,16) width 225: " but now only italic on the same line"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,32) size 140x17
+ text run at (0,32) width 140: "Plain line at the end."
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/001.html b/third_party/WebKit/LayoutTests/fast/block/basic/001.html
new file mode 100644
index 0000000..d0e0df3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/001.html
@@ -0,0 +1,7 @@
+<p style="border:2px solid red">
+<i>Start of a line. <font color=red>More red on this line:
+<h3>Suddenly a block appears!</h3>
+<h2>And another block!</h2>
+Now more text.<br>
+This is red</font> but now only italic on the same line</i><br>
+Plain line at the end.
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/002-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/002-expected.txt
new file mode 100644
index 0000000..a684ad6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/002-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x37
+ RenderBlock {HTML} at (0,0) size 800x37
+ RenderBody {BODY} at (8,8) size 784x21
+ RenderBlock {DIV} at (0,0) size 784x21
+ RenderInline {A} at (0,0) size 30x17 [color=#008000]
+ RenderText {TEXT} at (2,2) size 30x17
+ text run at (2,2) width 30: "First"
+ RenderInline {A} at (0,0) size 49x17 [color=#008000]
+ RenderText {TEXT} at (32,2) size 49x17
+ text run at (32,2) width 49: "Second"
+ RenderInline {A} at (0,0) size 37x17 [color=#008000]
+ RenderText {TEXT} at (81,2) size 37x17
+ text run at (81,2) width 37: "Third"
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/002.html b/third_party/WebKit/LayoutTests/fast/block/basic/002.html
new file mode 100644
index 0000000..729721b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/002.html
@@ -0,0 +1,22 @@
+<head>
+<style>
+a { color: green; }
+</style>
+</head>
+<body>
+<script>
+function toggle(id)
+{
+ var node = document.getElementById(id);
+ node.style.display == 'none' ? node.style.display = 'block' : node.style.display = 'none';
+}
+</script>
+
+<div style="border:2px solid red"><a onclick="toggle('first');">First</a><span id="first" style="display:none">
+&nbsp;First Content.
+</span><a onclick="toggle('second');">Second</a><span id="second" style="display:none">
+&nbsp;Second Content.
+</span><a onclick="toggle('third');">Third</a><span id="third" style="display:none">
+&nbsp;Third Content.<a onclick="toggle('crashme');">&nbsp;Crash Me</a><span id="crashme" style="display:none">
+&nbsp;&nbsp;You win!
+</span></div>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/003-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/003-expected.txt
new file mode 100644
index 0000000..66fa75b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/003-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x54
+ RenderBlock {HTML} at (0,0) size 800x54
+ RenderBody {BODY} at (8,8) size 784x38
+ RenderBlock {DIV} at (0,0) size 204x38
+ RenderText {TEXT} at (2,2) size 198x34
+ text run at (2,2) width 176: "This is some text. What is"
+ text run at (2,19) width 198: "going on here. Does it work?"
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/003.html b/third_party/WebKit/LayoutTests/fast/block/basic/003.html
new file mode 100644
index 0000000..48dcdd0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/003.html
@@ -0,0 +1,6 @@
+<html>
+<body>
+<div style="border:2px solid red; min-width: 200px; max-width:150px">
+This is some text. What is going on here. Does it work?
+</div>
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/004-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/004-expected.txt
new file mode 100644
index 0000000..811250c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/004-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x81
+ RenderBlock {HTML} at (0,0) size 800x81
+ RenderBody {BODY} at (8,14) size 784x59
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 577x17
+ text run at (0,0) width 577: "The following two DIVs should be the same width (resulting in a single 4 by 2 block)."
+ RenderBlock {DIV} at (0,31) size 42x14 [bgcolor=#000080]
+ RenderBlock {DIV} at (0,0) size 56x14
+ RenderBlock {DIV} at (0,45) size 56x14 [bgcolor=#000080]
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/004.html b/third_party/WebKit/LayoutTests/fast/block/basic/004.html
new file mode 100644
index 0000000..5b17653
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/004.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>CSS Block Box Model: overconstrained horizontal box model and minimum widths</title>
+ <style type="text/css">
+ .container { width: 3em; }
+ .test { margin-left: 0; border-left: 2em solid; padding-left: 0; width: auto; padding-right: 0; border-right: 2em solid; margin-right: 0; }
+ .control { margin-left: 0; border-left: none; padding-left: 0; width: 4em; padding-right: 0; border-right: none; margin-right: 0; }
+ div { background: navy; border-color: navy; height: 1em; }
+ </style>
+ </head>
+ <body>
+ <p>The following two DIVs should be the same width (resulting in a single 4 by 2 block).</p>
+ <div class="container">
+ <div class="test"></div>
+ </div>
+ <div class="control"></div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/005-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/005-expected.txt
new file mode 100644
index 0000000..811250c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/005-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x81
+ RenderBlock {HTML} at (0,0) size 800x81
+ RenderBody {BODY} at (8,14) size 784x59
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 577x17
+ text run at (0,0) width 577: "The following two DIVs should be the same width (resulting in a single 4 by 2 block)."
+ RenderBlock {DIV} at (0,31) size 42x14 [bgcolor=#000080]
+ RenderBlock {DIV} at (0,0) size 56x14
+ RenderBlock {DIV} at (0,45) size 56x14 [bgcolor=#000080]
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/005.html b/third_party/WebKit/LayoutTests/fast/block/basic/005.html
new file mode 100644
index 0000000..4dba1d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/005.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>CSS Block Box Model: overconstrained horizontal box model and minimum widths</title>
+ <style type="text/css">
+ .container { width: 3em; }
+ .test { margin-left: 0; border-left: none; padding-left: 2em; width: auto; padding-right: 2em; border-right: none; margin-right: 0; }
+ .control { margin-left: 0; border-left: none; padding-left: 0; width: 4em; padding-right: 0; border-right: none; margin-right: 0; }
+ div { background: navy; height: 1em; }
+ </style>
+ </head>
+ <body>
+ <p>The following two DIVs should be the same width (resulting in a single 4 by 2 block).</p>
+ <div class="container">
+ <div class="test"></div>
+ </div>
+ <div class="control"></div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/006-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/006-expected.txt
new file mode 100644
index 0000000..dd63f0a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/006-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x109
+ RenderBlock {HTML} at (0,0) size 800x109
+ RenderBody {BODY} at (8,14) size 784x87
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 503x17
+ text run at (0,0) width 503: "The following two vertical bars should be at the same horizontal position."
+ RenderBlock {DIV} at (0,31) size 72x28
+ RenderBlock {DIV} at (48,0) size 0x28
+ RenderInline {SPAN} at (0,0) size 9x28
+ RenderText {TEXT} at (0,0) size 9x28
+ text run at (0,0) width 9: "|"
+ RenderBlock {DIV} at (0,59) size 784x28
+ RenderInline {SPAN} at (0,0) size 9x28
+ RenderText {TEXT} at (48,0) size 9x28
+ text run at (48,0) width 9: "|"
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/006.html b/third_party/WebKit/LayoutTests/fast/block/basic/006.html
new file mode 100644
index 0000000..9cc4138
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/006.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>CSS Block Box Model: overconstrained horizontal box model and minimum widths</title>
+ <style type="text/css">
+ .container { width: 3em; }
+ .test { margin-left: 2em; border-left: none; padding-left: 0; width: auto; padding-right: 0; border-right: none; margin-right: 2em; }
+ .control { padding-left: 2em; }
+ div { font-size: xx-large; }
+ </style>
+ </head>
+ <body>
+ <p>The following two vertical bars should be at the same horizontal position.</p>
+ <div class="container">
+ <div class="test"><span>|</span></div>
+ </div>
+ <div class="control"><span>|</span></div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/007-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/007-expected.txt
new file mode 100644
index 0000000..024a219
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/007-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x81
+ RenderBlock {HTML} at (0,0) size 800x81
+ RenderBody {BODY} at (8,14) size 784x59
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 577x17
+ text run at (0,0) width 577: "The following two DIVs should be the same width (resulting in a single 5 by 2 block)."
+ RenderBlock {DIV} at (0,31) size 70x14 [bgcolor=#000080]
+ RenderBlock {DIV} at (0,0) size 70x14
+ RenderBlock {DIV} at (0,45) size 70x14 [bgcolor=#000080]
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/007.html b/third_party/WebKit/LayoutTests/fast/block/basic/007.html
new file mode 100644
index 0000000..827ee15
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/007.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>CSS Block Box Model: sane horizontal box model and minimum widths</title>
+ <style type="text/css">
+ .container { width: 5em; }
+ .test { margin-left: 0; border-left: 2em solid; padding-left: 0; width: auto; padding-right: 0; border-right: 2em solid; margin-right: 0; }
+ .control { margin-left: 0; border-left: none; padding-left: 0; width: 5em; padding-right: 0; border-right: none; margin-right: 0; }
+ div { background: navy; border-color: navy; height: 1em; }
+ </style>
+ </head>
+ <body>
+ <p>The following two DIVs should be the same width (resulting in a single 5 by 2 block).</p>
+ <div class="container">
+ <div class="test"></div>
+ </div>
+ <div class="control"></div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/008-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/008-expected.txt
new file mode 100644
index 0000000..024a219
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/008-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x81
+ RenderBlock {HTML} at (0,0) size 800x81
+ RenderBody {BODY} at (8,14) size 784x59
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 577x17
+ text run at (0,0) width 577: "The following two DIVs should be the same width (resulting in a single 5 by 2 block)."
+ RenderBlock {DIV} at (0,31) size 70x14 [bgcolor=#000080]
+ RenderBlock {DIV} at (0,0) size 70x14
+ RenderBlock {DIV} at (0,45) size 70x14 [bgcolor=#000080]
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/008.html b/third_party/WebKit/LayoutTests/fast/block/basic/008.html
new file mode 100644
index 0000000..64df56b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/008.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>CSS Block Box Model: sane horizontal box model and minimum widths</title>
+ <style type="text/css">
+ .container { width: 5em; }
+ .test { margin-left: 0; border-left: none; padding-left: 2em; width: auto; padding-right: 2em; border-right: none; margin-right: 0; }
+ .control { margin-left: 0; border-left: none; padding-left: 0; width: 5em; padding-right: 0; border-right: none; margin-right: 0; }
+ div { background: navy; height: 1em; }
+ </style>
+ </head>
+ <body>
+ <p>The following two DIVs should be the same width (resulting in a single 5 by 2 block).</p>
+ <div class="container">
+ <div class="test"></div>
+ </div>
+ <div class="control"></div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/009-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/009-expected.txt
new file mode 100644
index 0000000..e9ac30e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/009-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x109
+ RenderBlock {HTML} at (0,0) size 800x109
+ RenderBody {BODY} at (8,14) size 784x87
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 503x17
+ text run at (0,0) width 503: "The following two vertical bars should be at the same horizontal position."
+ RenderBlock {DIV} at (0,31) size 120x28
+ RenderBlock {DIV} at (48,0) size 24x28
+ RenderInline {SPAN} at (0,0) size 9x28
+ RenderText {TEXT} at (0,0) size 9x28
+ text run at (0,0) width 9: "|"
+ RenderBlock {DIV} at (0,59) size 784x28
+ RenderInline {SPAN} at (0,0) size 9x28
+ RenderText {TEXT} at (48,0) size 9x28
+ text run at (48,0) width 9: "|"
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/009.html b/third_party/WebKit/LayoutTests/fast/block/basic/009.html
new file mode 100644
index 0000000..d304754
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/009.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>CSS Block Box Model: sane horizontal box model and minimum widths</title>
+ <style type="text/css">
+ .container { width: 5em; }
+ .test { margin-left: 2em; border-left: none; padding-left: 0; width: auto; padding-right: 0; border-right: none; margin-right: 2em; }
+ .control { padding-left: 2em; }
+ div { font-size: xx-large; }
+ </style>
+ </head>
+ <body>
+ <p>The following two vertical bars should be at the same horizontal position.</p>
+ <div class="container">
+ <div class="test"><span>|</span></div>
+ </div>
+ <div class="control"><span>|</span></div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/010-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/010-expected.txt
new file mode 100644
index 0000000..c10337e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/010-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x225
+ RenderBlock {HTML} at (0,0) size 800x133
+ RenderBody {BODY} at (8,8) size 784x117
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,17) size 300x100 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 600x200 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 300x100
+ text run at (0,0) width 300: "XXX"
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/010.html b/third_party/WebKit/LayoutTests/fast/block/basic/010.html
new file mode 100644
index 0000000..97bea67
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/010.html
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>CSS Block Box Model: block widths with position:static</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .outer { position: static; width: 300px; height: 100px; background: red; }
+ .inner { width: 200%; height: 200%; font: 100px/1 Ahem; color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <div class="outer">
+ <div class="inner">XXX</div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/011-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/011-expected.txt
new file mode 100644
index 0000000..364bd42
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/011-expected.txt
@@ -0,0 +1,75 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x420
+ RenderBlock {HTML} at (0,0) size 800x420 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderBody {BODY} at (15,15) size 490x390 [bgcolor=#FFFFFF]
+ RenderBlock {DL} at (5,5) size 480x10 [bgcolor=#000000]
+ RenderBlock (floating) {DT} at (5,5) size 77x310 [bgcolor=#CC0000]
+ RenderText {TEXT} at (15,14) size 31x10
+ text run at (15,14) width 31: "toggle"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {DD} at (95,5) size 380x310
+ RenderBlock {UL} at (20,20) size 340x0
+ RenderBlock (floating) {LI} at (0,0) size 80x120 [color=#000000] [bgcolor=#FFCC00]
+ RenderText {TEXT} at (15,14) size 40x10
+ text run at (15,14) width 40: "the way"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {LI} at (90,0) size 159x110 [bgcolor=#000000]
+ RenderBlock {P} at (10,10) size 139x10 [bgcolor=#000000]
+ RenderText {TEXT} at (0,-1) size 74x10
+ text run at (0,-1) width 74: "the world ends"
+ RenderBlock (anonymous) at (10,20) size 139x0 [bgcolor=#000000]
+ RenderInline {FORM} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (10,20) size 139x40 [bgcolor=#000000]
+ RenderBlock {P} at (0,0) size 139x20
+ RenderText {TEXT} at (0,4) size 28x18
+ text run at (0,4) width 28: "bang "
+ RenderRadioButton {INPUT} at (31,3) size 14x13 [color=#000000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,20) size 139x20
+ RenderText {TEXT} at (0,4) size 47x18
+ text run at (0,4) width 47: "whimper "
+ RenderRadioButton {INPUT} at (50,3) size 14x13 [color=#000000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (10,60) size 139x0 [bgcolor=#000000]
+ RenderInline {FORM} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {LI} at (259,0) size 80x120 [color=#000000] [bgcolor=#FFCC00]
+ RenderText {TEXT} at (15,14) size 50x10
+ text run at (15,14) width 50: "i grow old"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {LI} at (0,130) size 120x120 [bgcolor=#000000]
+ RenderText {TEXT} at (10,9) size 30x10
+ text run at (10,9) width 30: "pluot?"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {BLOCKQUOTE} at (160,150) size 70x140 [color=#000000] [bgcolor=#FFCC00]
+ RenderBlock {ADDRESS} at (5,20) size 50x20 [bgcolor=#000000]
+ RenderText {TEXT} at (0,-1) size 34x20
+ text run at (0,-1) width 16: "bar"
+ text run at (0,9) width 34: "maids,"
+ RenderBlock (floating) {H1} at (240,150) size 120x120 [bgcolor=#000000]
+ RenderText {TEXT} at (10,9) size 66x20
+ text run at (10,9) width 58: "sing to me,"
+ text run at (10,19) width 66: "erbarme dich"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (5,320) size 480x65 [color=#000000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 480x39
+ text run at (0,0) width 385: "This is a nonsensical document, but syntactically valid HTML 4.0. All 100%-"
+ text run at (385,0) width 88: "conformant CSS1"
+ text run at (0,13) width 480: "agents should be able to render the document elements above this paragraph indistinguishably"
+ text run at (0,26) width 122: "(to the pixel) from this "
+ RenderInline {A} at (0,0) size 102x12 [color=#0000EE]
+ RenderText {TEXT} at (122,26) size 102x13
+ text run at (122,26) width 102: "reference rendering,"
+ RenderText {TEXT} at (224,26) size 474x39
+ text run at (224,26) width 4: " "
+ text run at (228,26) width 246: "(except font rasterization and form widgets). All"
+ text run at (0,39) width 449: "discrepancies should be traceable to CSS1 implementation shortcomings. Once you have"
+ text run at (0,52) width 259: "finished evaluating this test, you can return to the "
+ RenderInline {A} at (0,0) size 60x12 [color=#0000EE]
+ RenderText {TEXT} at (259,52) size 60x13
+ text run at (259,52) width 60: "parent page"
+ RenderText {TEXT} at (319,52) size 4x13
+ text run at (319,52) width 4: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/011.html b/third_party/WebKit/LayoutTests/fast/block/basic/011.html
new file mode 100644
index 0000000..22dfeed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/011.html
@@ -0,0 +1,177 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html>
+ <head>
+ <title>
+ display/box/float/clear test
+ </title>
+ <style type="text/css">
+/* last modified: 1 Dec 98 */
+
+html {
+font: 10px/1 Verdana, sans-serif;
+background-color: blue;
+color: white;
+}
+
+body {
+margin: 1.5em;
+border: .5em solid black;
+padding: 0;
+width: 48em;
+background-color: white;
+}
+
+dl {
+margin: 0;
+border: 0;
+padding: .5em;
+}
+
+dt {
+background-color: rgb(204,0,0);
+margin: 0;
+padding: 1em;
+width: 10.638%; /* refers to parent element's width of 47em. = 5em or 50px */
+height: 28em;
+border: .5em solid black;
+float: left;
+}
+
+dd {
+float: right;
+margin: 0 0 0 1em;
+border: 1em solid black;
+padding: 1em;
+width: 34em;
+height: 27em;
+}
+
+ul {
+margin: 0;
+border: 0;
+padding: 0;
+}
+
+li {
+display: block; /* i.e., suppress marker */
+color: black;
+height: 9em;
+width: 5em;
+margin: 0;
+border: .5em solid black;
+padding: 1em;
+float: left;
+background-color: #FC0;
+}
+
+#bar {
+background-color: black;
+color: white;
+width: 41.17%; /* = 14em */
+border: 0;
+margin: 0 1em;
+}
+
+#baz {
+margin: 1em 0;
+border: 0;
+padding: 1em;
+width: 10em;
+height: 10em;
+background-color: black;
+color: white;
+}
+
+form {
+margin: 0;
+display: inline;
+}
+
+p {
+margin: 0;
+}
+
+form p {
+line-height: 1.9;
+}
+
+blockquote {
+margin: 1em 1em 1em 2em;
+border-width: 1em 1.5em 2em .5em;
+border-style: solid;
+border-color: black;
+padding: 1em 0;
+width: 5em;
+height: 9em;
+float: left;
+background-color: #FC0;
+color: black;
+}
+
+address {
+font-style: normal;
+}
+
+h1 {
+background-color: black;
+color: white;
+float: left;
+margin: 1em 0;
+border: 0;
+padding: 1em;
+width: 10em;
+height: 10em;
+font-weight: normal;
+font-size: 1em;
+}
+ </style>
+ </head>
+ <body>
+ <dl>
+ <dt>
+ toggle
+ </dt>
+ <dd>
+ <ul>
+ <li>
+ the way
+ </li>
+ <li id="bar">
+ <p>
+ the world ends
+ </p>
+ <form action="./" method="get">
+ <p>
+ bang
+ <input type="radio" name="foo" value="off">
+ </p>
+ <p>
+ whimper
+ <input type="radio" name="foo2" value="on">
+ </p>
+ </form>
+ </li>
+ <li>
+ i grow old
+ </li>
+ <li id="baz">
+ pluot?
+ </li>
+ </ul>
+ <blockquote>
+ <address>
+ bar maids,
+ </address>
+ </blockquote>
+ <h1>
+ sing to me, erbarme dich
+ </h1>
+ </dd>
+ </dl>
+ <p style="color: black; font-size: 1em; line-height: 1.3em; clear: both">
+ This is a nonsensical document, but syntactically valid HTML 4.0. All 100%-conformant CSS1 agents should be able to render the document elements above this paragraph indistinguishably (to the pixel) from this
+ <a href="sec5526c.gif">reference rendering,</a>
+ (except font rasterization and form widgets). All discrepancies should be traceable to CSS1 implementation shortcomings. Once you have finished evaluating this test, you can return to the <A HREF="sec5526c.htm">parent page</A>.
+ </p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/012-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/012-expected.txt
new file mode 100644
index 0000000..60f20d1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/012-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+ RenderBlock {DIV} at (0,0) size 784x100
+ RenderText {TEXT} at (0,0) size 421x17
+ text run at (0,0) width 421: "I should not have a border and I should not have a tiny width."
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/012.html b/third_party/WebKit/LayoutTests/fast/block/basic/012.html
new file mode 100644
index 0000000..0cf1d39
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/012.html
@@ -0,0 +1,16 @@
+<html>
+<head>
+<style>
+.5foo {
+ width:100px;
+ border: 2px solid red;
+}
+
+.goo {
+ height:100px;
+}
+</head>
+</style>
+<body>
+<div class="goo 5foo">I should not have a border and I should not have a tiny width.
+</div> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/013-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/013-expected.txt
new file mode 100644
index 0000000..a273e91
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/013-expected.txt
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x203
+ RenderBlock {HTML} at (0,0) size 800x203
+ RenderBody {BODY} at (0,0) size 800x203
+ RenderPartObject {IFRAME} at (0,0) size 500x100
+ layer at (0,0) size 91x172
+ RenderCanvas at (0,0) size 0x0
+ layer at (0,0) size 91x172
+ RenderBlock {HTML} at (0,0) size 0x172
+ RenderBody {BODY} at (8,8) size 0x150
+ RenderBlock {P} at (0,0) size 0x68
+ RenderText {TEXT} at (0,0) size 37x68
+ text run at (0,0) width 29: "This"
+ text run at (0,17) width 12: "is"
+ text run at (0,34) width 37: "some"
+ text run at (0,51) width 32: "text."
+ RenderBlock {P} at (0,82) size 0x68
+ RenderText {TEXT} at (0,0) size 83x68
+ text run at (0,0) width 29: "This"
+ text run at (0,17) width 27: "text"
+ text run at (0,34) width 12: "is"
+ text run at (0,51) width 83: "underneath."
+ RenderText {TEXT} at (500,86) size 4x17
+ text run at (500,86) width 4: " "
+ RenderPartObject {OBJECT} at (0,103) size 500x100
+ layer at (0,0) size 91x172
+ RenderCanvas at (0,0) size 0x0
+ layer at (0,0) size 91x172
+ RenderBlock {HTML} at (0,0) size 0x172
+ RenderBody {BODY} at (8,8) size 0x150
+ RenderBlock {P} at (0,0) size 0x68
+ RenderText {TEXT} at (0,0) size 37x68
+ text run at (0,0) width 29: "This"
+ text run at (0,17) width 12: "is"
+ text run at (0,34) width 37: "some"
+ text run at (0,51) width 32: "text."
+ RenderBlock {P} at (0,82) size 0x68
+ RenderText {TEXT} at (0,0) size 83x68
+ text run at (0,0) width 29: "This"
+ text run at (0,17) width 27: "text"
+ text run at (0,34) width 12: "is"
+ text run at (0,51) width 83: "underneath."
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/013.html b/third_party/WebKit/LayoutTests/fast/block/basic/013.html
new file mode 100644
index 0000000..15a76bc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/013.html
@@ -0,0 +1,5 @@
+<html>
+<body marginwidth=0 marginheight=0>
+
+<iframe width=500 height=100 src="resources/013-helper.html"></iframe>
+<object width=500 height=100 type="text/html" data="resources/013-helper.html"></object>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/014-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/014-expected.txt
new file mode 100644
index 0000000..921ce1b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/014-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x37
+ RenderBlock {HTML} at (0,0) size 800x37
+ RenderBody {BODY} at (8,8) size 784x21
+ RenderInline {A} at (0,0) size 21x16 [color=#0000EE]
+ RenderImage {IMG} at (0,0) size 21x21 [bgcolor=#008000]
+ RenderText {TEXT} at (21,1) size 4x16
+ text run at (21,1) width 4: " "
+ RenderImage {IMG} at (25,0) size 21x21 [bgcolor=#008000]
+ RenderText {TEXT} at (46,1) size 271x16
+ text run at (46,1) width 271: " The two green blocks should line up vertically."
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/014.html b/third_party/WebKit/LayoutTests/fast/block/basic/014.html
new file mode 100644
index 0000000..1b5ea83
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/014.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+<style>
+body {
+ font-family: 'Gill Sans', Arial, Helvetica, sans-serif;
+ font-size: 14px;
+}
+
+img
+{
+ vertical-align: middle;
+ border-style: none;
+}
+
+</style>
+</head>
+<body>
+<a href="foo.html"><img style="background-color:green" width=21 height=21></a> <img style="background-color:green" width=21 height=21>
+The two green blocks should line up
+vertically.
+
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/015-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/015-expected.txt
new file mode 100644
index 0000000..8f6914c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/015-expected.txt
@@ -0,0 +1,163 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x395
+ RenderBlock {HTML} at (0,0) size 800x395
+ RenderBody {BODY} at (8,18) size 784x363
+ RenderBlock {H1} at (0,0) size 784x33
+ RenderText {TEXT} at (0,0) size 456x33
+ text run at (0,0) width 456: "Minimum and Maximum Widths"
+ RenderBlock {DIV} at (0,51) size 784x23
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 448x17
+ text run at (60,3) width 448: " should have a medium solid purple border, as should all the rest."
+ RenderBlock {DIV} at (0,74) size 319x57
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 313x34
+ text run at (60,3) width 199: " should have a width of 40%. "
+ text run at (259,3) width 57: "This is a"
+ text run at (3,20) width 68: "reference "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (71,21) size 24x16
+ text run at (71,21) width 24: "div"
+ RenderText {TEXT} at (95,20) size 191x17
+ text run at (95,20) width 191: " and should work as long as"
+ RenderInline {CODE} at (0,0) size 40x16
+ RenderText {TEXT} at (3,38) size 40x16
+ text run at (3,38) width 40: "width"
+ RenderText {TEXT} at (43,37) size 50x17
+ text run at (43,37) width 50: " works."
+ RenderBlock {DIV} at (0,131) size 319x23
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 195x17
+ text run at (60,3) width 195: " should have a width of 40%."
+ RenderBlock {DIV} at (0,154) size 319x23
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 195x17
+ text run at (60,3) width 195: " should have a width of 40%."
+ RenderBlock {DIV} at (0,177) size 319x23
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 195x17
+ text run at (60,3) width 195: " should have a width of 40%."
+ RenderBlock {DIV} at (0,200) size 319x23
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 195x17
+ text run at (60,3) width 195: " should have a width of 40%."
+ RenderBlock {DIV} at (0,223) size 319x23
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 195x17
+ text run at (60,3) width 195: " should have a width of 40%."
+ RenderBlock {DIV} at (0,246) size 319x23
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 195x17
+ text run at (60,3) width 195: " should have a width of 40%."
+ RenderBlock {DIV} at (0,269) size 319x23
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 195x17
+ text run at (60,3) width 195: " should have a width of 40%."
+ RenderBlock {DIV} at (0,292) size 319x23
+ RenderText {TEXT} at (3,3) size 33x17
+ text run at (3,3) width 33: "This "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (36,4) size 24x16
+ text run at (36,4) width 24: "div"
+ RenderText {TEXT} at (60,3) size 195x17
+ text run at (60,3) width 195: " should have a width of 40%."
+ RenderBlock {P} at (0,329) size 784x34
+ RenderText {TEXT} at (0,0) size 221x17
+ text run at (0,0) width 221: "If the browser does not support "
+ RenderInline {CODE} at (0,0) size 72x16
+ RenderText {TEXT} at (221,1) size 72x16
+ text run at (221,1) width 72: "min-width"
+ RenderText {TEXT} at (293,0) size 34x17
+ text run at (293,0) width 34: " and "
+ RenderInline {CODE} at (0,0) size 72x16
+ RenderText {TEXT} at (327,1) size 72x16
+ text run at (327,1) width 72: "max-width"
+ RenderText {TEXT} at (399,0) size 190x17
+ text run at (399,0) width 190: ", then the widths should be "
+ RenderInline {CODE} at (0,0) size 32x16
+ RenderText {TEXT} at (589,1) size 32x16
+ text run at (589,1) width 32: "auto"
+ RenderText {TEXT} at (621,0) size 9x17
+ text run at (621,0) width 9: ", "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (630,1) size 24x16
+ text run at (630,1) width 24: "40%"
+ RenderText {TEXT} at (654,0) size 9x17
+ text run at (654,0) width 9: ", "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (663,1) size 24x16
+ text run at (663,1) width 24: "30%"
+ RenderText {TEXT} at (687,0) size 9x17
+ text run at (687,0) width 9: ", "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (696,1) size 24x16
+ text run at (696,1) width 24: "50%"
+ RenderText {TEXT} at (720,0) size 9x17
+ text run at (720,0) width 9: ", "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (729,1) size 24x16
+ text run at (729,1) width 24: "50%"
+ RenderText {TEXT} at (753,0) size 5x17
+ text run at (753,0) width 5: ","
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (0,18) size 24x16
+ text run at (0,18) width 24: "40%"
+ RenderText {TEXT} at (24,17) size 9x17
+ text run at (24,17) width 9: ", "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (33,18) size 24x16
+ text run at (33,18) width 24: "30%"
+ RenderText {TEXT} at (57,17) size 9x17
+ text run at (57,17) width 9: ", "
+ RenderInline {CODE} at (0,0) size 24x16
+ RenderText {TEXT} at (66,18) size 24x16
+ text run at (66,18) width 24: "40%"
+ RenderText {TEXT} at (90,17) size 9x17
+ text run at (90,17) width 9: ", "
+ RenderInline {CODE} at (0,0) size 32x16
+ RenderText {TEXT} at (99,18) size 32x16
+ text run at (99,18) width 32: "auto"
+ RenderText {TEXT} at (131,17) size 207x17
+ text run at (131,17) width 207: " (with 70% margin-right), and "
+ RenderInline {CODE} at (0,0) size 32x16
+ RenderText {TEXT} at (338,18) size 32x16
+ text run at (338,18) width 32: "auto"
+ RenderText {TEXT} at (370,17) size 5x17
+ text run at (370,17) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/015.html b/third_party/WebKit/LayoutTests/fast/block/basic/015.html
new file mode 100644
index 0000000..4cad267
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/015.html
@@ -0,0 +1,94 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html>
+<head>
+<title>Minimum and Maximum Widths</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="copyright" href="/~dbaron/legal.html">
+<style type="text/css">
+.test {
+ border: medium solid purple;
+ padding: 0;
+ margin: 0;
+ }
+
+.one {
+ width: 40%;
+ }
+
+.two {
+ width: 30%;
+ min-width: 40%;
+ max-width: 30%;
+ }
+
+.three {
+ width: 50%;
+ min-width: 40%;
+ max-width: 30%;
+ }
+
+.four {
+ width: 50%;
+ max-width: 40%;
+ }
+
+.five {
+ max-width: 60%;
+ width: 40%;
+ }
+
+.six {
+ width: 30%;
+ min-width: 40%;
+ }
+
+.seven {
+ min-width: 20%;
+ width: 40%;
+ }
+
+
+.eight {
+ width: auto;
+ margin: 0 70% 0 0;
+ min-width: 40%;
+ }
+
+.nine {
+ max-width: 40%;
+ }
+
+</style>
+</head>
+<body>
+
+<h1>Minimum and Maximum Widths</h1>
+
+<div class="test">This <code>div</code> should have a medium solid purple
+border, as should all the rest.</div>
+
+<div class="test one">This <code>div</code> should have a width of 40%. This is a reference <code>div</code> and should work as long as <code>width</code> works.</div>
+
+<div class="test two">This <code>div</code> should have a width of 40%.</div>
+
+<div class="test three">This <code>div</code> should have a width of 40%.</div>
+
+<div class="test four">This <code>div</code> should have a width of 40%.</div>
+
+<div class="test five">This <code>div</code> should have a width of 40%.</div>
+
+<div class="test six">This <code>div</code> should have a width of 40%.</div>
+
+<div class="test seven">This <code>div</code> should have a width of 40%.</div>
+
+<div class="test eight">This <code>div</code> should have a width of 40%.</div>
+
+<div class="test nine">This <code>div</code> should have a width of 40%.</div>
+
+<p>If the browser does not support <code>min-width</code> and
+<code>max-width</code>, then the widths should be <code>auto</code>,
+<code>40%</code>, <code>30%</code>, <code>50%</code>, <code>50%</code>,
+<code>40%</code>, <code>30%</code>, <code>40%</code>, <code>auto</code>
+(with 70% margin-right), and <code>auto</code>.</p>
+</body></html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/016-expected.txt b/third_party/WebKit/LayoutTests/fast/block/basic/016-expected.txt
new file mode 100644
index 0000000..84f7305
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/016-expected.txt
@@ -0,0 +1,1212 @@
+layer at (0,0) size 800x7314
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x7314
+ RenderBlock {HTML} at (0,0) size 800x7314
+ RenderBody {BODY} at (8,8) size 784x7298
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 470x17
+ text run at (0,0) width 470: "This is a test of all the various HTML alignments using LTR direction."
+ RenderBlock {DIV} at (0,17) size 784x218
+ RenderBlock {DIV} at (6,6) size 772x25
+ RenderText {TEXT} at (4,4) size 197x17
+ text run at (4,4) width 197: "Normal div inside normal div"
+ RenderBlock {DIV} at (6,31) size 772x25
+ RenderText {TEXT} at (4,4) size 173x17
+ text run at (4,4) width 173: "Left div inside normal div"
+ RenderBlock {DIV} at (6,56) size 772x25
+ RenderText {TEXT} at (290,4) size 192x17
+ text run at (290,4) width 192: "Center div inside normal div"
+ RenderBlock {DIV} at (6,81) size 772x25
+ RenderText {TEXT} at (585,4) size 183x17
+ text run at (585,4) width 183: "Right div inside normal div"
+ RenderBlock {CENTER} at (6,106) size 772x25
+ RenderText {TEXT} at (289,4) size 193x17
+ text run at (289,4) width 193: "Center tag inside normal div"
+ RenderTable {TABLE} at (6,131) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (316,158) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (8,185) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderBlock {DIV} at (0,235) size 784x218
+ RenderBlock {DIV} at (6,6) size 408x25
+ RenderText {TEXT} at (4,4) size 278x17
+ text run at (4,4) width 278: "Normal fixed width div inside normal div"
+ RenderBlock {DIV} at (6,31) size 408x25
+ RenderText {TEXT} at (4,4) size 254x17
+ text run at (4,4) width 254: "Left fixed width div inside normal div"
+ RenderBlock {DIV} at (6,56) size 408x25
+ RenderText {TEXT} at (67,4) size 273x17
+ text run at (67,4) width 273: "Center fixed width div inside normal div"
+ RenderBlock {DIV} at (6,81) size 408x25
+ RenderText {TEXT} at (140,4) size 264x17
+ text run at (140,4) width 264: "Right fixed width div inside normal div"
+ RenderBlock {CENTER} at (6,106) size 408x25
+ RenderText {TEXT} at (62,4) size 283x17
+ text run at (62,4) width 283: "Center tag (fixed width) inside normal div"
+ RenderTable {TABLE} at (6,131) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (192,158) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (8,185) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderBlock {DIV} at (0,453) size 784x218
+ RenderBlock {DIV} at (6,6) size 772x25
+ RenderText {TEXT} at (4,4) size 216x17
+ text run at (4,4) width 216: "Normal div inside align=left div"
+ RenderBlock {DIV} at (6,31) size 772x25
+ RenderText {TEXT} at (4,4) size 192x17
+ text run at (4,4) width 192: "Left div inside align=left div"
+ RenderBlock {DIV} at (6,56) size 772x25
+ RenderText {TEXT} at (280,4) size 211x17
+ text run at (280,4) width 211: "Center div inside align=left div"
+ RenderBlock {DIV} at (6,81) size 772x25
+ RenderText {TEXT} at (566,4) size 202x17
+ text run at (566,4) width 202: "Right div inside align=left div"
+ RenderBlock {CENTER} at (6,106) size 772x25
+ RenderText {TEXT} at (280,4) size 212x17
+ text run at (280,4) width 212: "Center tag inside align=left div"
+ RenderTable {TABLE} at (6,131) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (316,158) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (8,185) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderBlock {DIV} at (0,671) size 784x218
+ RenderBlock {DIV} at (6,6) size 408x25
+ RenderText {TEXT} at (4,4) size 297x17
+ text run at (4,4) width 297: "Normal fixed width div inside align=left div"
+ RenderBlock {DIV} at (6,31) size 408x25
+ RenderText {TEXT} at (4,4) size 273x17
+ text run at (4,4) width 273: "Left fixed width div inside align=left div"
+ RenderBlock {DIV} at (6,56) size 408x25
+ RenderText {TEXT} at (58,4) size 292x17
+ text run at (58,4) width 292: "Center fixed width div inside align=left div"
+ RenderBlock {DIV} at (6,81) size 408x25
+ RenderText {TEXT} at (121,4) size 283x17
+ text run at (121,4) width 283: "Right fixed width div inside align=left div"
+ RenderBlock {CENTER} at (6,106) size 408x25
+ RenderText {TEXT} at (53,4) size 302x17
+ text run at (53,4) width 302: "Center tag (fixed width) inside align=left div"
+ RenderTable {TABLE} at (6,131) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (192,158) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (8,185) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderBlock {DIV} at (0,889) size 784x218
+ RenderBlock {DIV} at (6,6) size 772x25
+ RenderText {TEXT} at (265,4) size 241x17
+ text run at (265,4) width 241: "Normal div inside align= center div"
+ RenderBlock {DIV} at (6,31) size 772x25
+ RenderText {TEXT} at (4,4) size 212x17
+ text run at (4,4) width 212: "Left div inside align=center div"
+ RenderBlock {DIV} at (6,56) size 772x25
+ RenderText {TEXT} at (270,4) size 231x17
+ text run at (270,4) width 231: "Center div inside align=center div"
+ RenderBlock {DIV} at (6,81) size 772x25
+ RenderText {TEXT} at (546,4) size 222x17
+ text run at (546,4) width 222: "Right div inside align=center div"
+ RenderBlock {CENTER} at (6,106) size 772x25
+ RenderText {TEXT} at (270,4) size 232x17
+ text run at (270,4) width 232: "Center tag inside align=center div"
+ RenderTable {TABLE} at (340,131) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (316,158) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (289,185) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderBlock {DIV} at (0,1107) size 784x302
+ RenderBlock {DIV} at (188,6) size 408x25
+ RenderText {TEXT} at (45,4) size 317x17
+ text run at (45,4) width 317: "Normal fixed width div inside align=center div"
+ RenderBlock {DIV} at (370,31) size 408x42
+ RenderText {TEXT} at (42,4) size 324x34
+ text run at (42,4) width 324: "Normal fixed width div (auto left margin) inside"
+ text run at (148,21) width 112: "align=center div"
+ RenderBlock {DIV} at (6,73) size 408x42
+ RenderText {TEXT} at (37,4) size 334x34
+ text run at (37,4) width 334: "Normal fixed width div (auto right margin) inside"
+ text run at (148,21) width 112: "align=center div"
+ RenderBlock {DIV} at (188,115) size 408x25
+ RenderText {TEXT} at (4,4) size 293x17
+ text run at (4,4) width 293: "Left fixed width div inside align=center div"
+ RenderBlock {DIV} at (188,140) size 408x25
+ RenderText {TEXT} at (48,4) size 312x17
+ text run at (48,4) width 312: "Center fixed width div inside align=center div"
+ RenderBlock {DIV} at (188,165) size 408x25
+ RenderText {TEXT} at (101,4) size 303x17
+ text run at (101,4) width 303: "Right fixed width div inside align=center div"
+ RenderBlock {CENTER} at (188,190) size 408x25
+ RenderText {TEXT} at (43,4) size 322x17
+ text run at (43,4) width 322: "Center tag (fixed width) inside align=center div"
+ RenderTable {TABLE} at (192,215) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (192,242) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (192,269) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderBlock {DIV} at (0,1409) size 784x218
+ RenderBlock {DIV} at (6,6) size 772x25
+ RenderText {TEXT} at (542,4) size 226x17
+ text run at (542,4) width 226: "Normal div inside align=right div"
+ RenderBlock {DIV} at (6,31) size 772x25
+ RenderText {TEXT} at (4,4) size 202x17
+ text run at (4,4) width 202: "Left div inside align=right div"
+ RenderBlock {DIV} at (6,56) size 772x25
+ RenderText {TEXT} at (275,4) size 221x17
+ text run at (275,4) width 221: "Center div inside align=right div"
+ RenderBlock {DIV} at (6,81) size 772x25
+ RenderText {TEXT} at (556,4) size 212x17
+ text run at (556,4) width 212: "Right div inside align=right div"
+ RenderBlock {CENTER} at (6,106) size 772x25
+ RenderText {TEXT} at (275,4) size 222x17
+ text run at (275,4) width 222: "Center tag inside align=right div"
+ RenderTable {TABLE} at (675,131) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (316,158) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (571,185) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderBlock {DIV} at (0,1627) size 784x218
+ RenderBlock {DIV} at (370,6) size 408x25
+ RenderText {TEXT} at (97,4) size 307x17
+ text run at (97,4) width 307: "Normal fixed width div inside align=right div"
+ RenderBlock {DIV} at (370,31) size 408x25
+ RenderText {TEXT} at (4,4) size 283x17
+ text run at (4,4) width 283: "Left fixed width div inside align=right div"
+ RenderBlock {DIV} at (370,56) size 408x25
+ RenderText {TEXT} at (53,4) size 302x17
+ text run at (53,4) width 302: "Center fixed width div inside align=right div"
+ RenderBlock {DIV} at (370,81) size 408x25
+ RenderText {TEXT} at (111,4) size 293x17
+ text run at (111,4) width 293: "Right fixed width div inside align=right div"
+ RenderBlock {CENTER} at (370,106) size 408x25
+ RenderText {TEXT} at (48,4) size 312x17
+ text run at (48,4) width 312: "Center tag (fixed width) inside align=right div"
+ RenderTable {TABLE} at (378,131) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (192,158) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (376,185) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderBlock {P} at (0,1859) size 784x17
+ RenderText {TEXT} at (0,0) size 382x17
+ text run at (0,0) width 382: "This is a test using TABLE cells (all in the LTR direction)."
+ RenderTable {TABLE} at (0,1890) size 784x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 776x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 766x25
+ RenderText {TEXT} at (4,4) size 191x17
+ text run at (4,4) width 191: "Normal div inside normal td"
+ RenderBlock {DIV} at (5,30) size 766x25
+ RenderText {TEXT} at (4,4) size 167x17
+ text run at (4,4) width 167: "Left div inside normal td"
+ RenderBlock {DIV} at (5,55) size 766x25
+ RenderText {TEXT} at (290,4) size 186x17
+ text run at (290,4) width 186: "Center div inside normal td"
+ RenderBlock {DIV} at (5,80) size 766x25
+ RenderText {TEXT} at (585,4) size 177x17
+ text run at (585,4) width 177: "Right div inside normal td"
+ RenderBlock {CENTER} at (5,105) size 766x25
+ RenderText {TEXT} at (289,4) size 187x17
+ text run at (289,4) width 187: "Center tag inside normal td"
+ RenderTable {TABLE} at (5,130) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (312,157) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (7,184) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderTable {TABLE} at (0,2114) size 784x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 776x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 408x25
+ RenderText {TEXT} at (4,4) size 272x17
+ text run at (4,4) width 272: "Normal fixed width div inside normal td"
+ RenderBlock {DIV} at (5,30) size 408x25
+ RenderText {TEXT} at (4,4) size 248x17
+ text run at (4,4) width 248: "Left fixed width div inside normal td"
+ RenderBlock {DIV} at (5,55) size 408x25
+ RenderText {TEXT} at (70,4) size 267x17
+ text run at (70,4) width 267: "Center fixed width div inside normal td"
+ RenderBlock {DIV} at (5,80) size 408x25
+ RenderText {TEXT} at (146,4) size 258x17
+ text run at (146,4) width 258: "Right fixed width div inside normal td"
+ RenderBlock {CENTER} at (5,105) size 408x25
+ RenderText {TEXT} at (65,4) size 277x17
+ text run at (65,4) width 277: "Center tag (fixed width) inside normal td"
+ RenderTable {TABLE} at (5,130) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (188,157) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (7,184) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderTable {TABLE} at (0,2338) size 784x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 776x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 766x25
+ RenderText {TEXT} at (4,4) size 210x17
+ text run at (4,4) width 210: "Normal div inside align=left td"
+ RenderBlock {DIV} at (5,30) size 766x25
+ RenderText {TEXT} at (4,4) size 186x17
+ text run at (4,4) width 186: "Left div inside align=left td"
+ RenderBlock {DIV} at (5,55) size 766x25
+ RenderText {TEXT} at (280,4) size 205x17
+ text run at (280,4) width 205: "Center div inside align=left td"
+ RenderBlock {DIV} at (5,80) size 766x25
+ RenderText {TEXT} at (566,4) size 196x17
+ text run at (566,4) width 196: "Right div inside align=left td"
+ RenderBlock {CENTER} at (5,105) size 766x25
+ RenderText {TEXT} at (280,4) size 206x17
+ text run at (280,4) width 206: "Center tag inside align=left td"
+ RenderTable {TABLE} at (5,130) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (312,157) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (7,184) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderTable {TABLE} at (0,2562) size 784x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 776x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 408x25
+ RenderText {TEXT} at (4,4) size 291x17
+ text run at (4,4) width 291: "Normal fixed width div inside align=left td"
+ RenderBlock {DIV} at (5,30) size 408x25
+ RenderText {TEXT} at (4,4) size 267x17
+ text run at (4,4) width 267: "Left fixed width div inside align=left td"
+ RenderBlock {DIV} at (5,55) size 408x25
+ RenderText {TEXT} at (61,4) size 286x17
+ text run at (61,4) width 286: "Center fixed width div inside align=left td"
+ RenderBlock {DIV} at (5,80) size 408x25
+ RenderText {TEXT} at (127,4) size 277x17
+ text run at (127,4) width 277: "Right fixed width div inside align=left td"
+ RenderBlock {CENTER} at (5,105) size 408x25
+ RenderText {TEXT} at (56,4) size 296x17
+ text run at (56,4) width 296: "Center tag (fixed width) inside align=left td"
+ RenderTable {TABLE} at (5,130) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (188,157) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (7,184) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderTable {TABLE} at (0,2786) size 784x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 776x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 766x25
+ RenderText {TEXT} at (265,4) size 235x17
+ text run at (265,4) width 235: "Normal div inside align= center td"
+ RenderBlock {DIV} at (5,30) size 766x25
+ RenderText {TEXT} at (4,4) size 206x17
+ text run at (4,4) width 206: "Left div inside align=center td"
+ RenderBlock {DIV} at (5,55) size 766x25
+ RenderText {TEXT} at (270,4) size 225x17
+ text run at (270,4) width 225: "Center div inside align=center td"
+ RenderBlock {DIV} at (5,80) size 766x25
+ RenderText {TEXT} at (546,4) size 216x17
+ text run at (546,4) width 216: "Right div inside align=center td"
+ RenderBlock {CENTER} at (5,105) size 766x25
+ RenderText {TEXT} at (270,4) size 226x17
+ text run at (270,4) width 226: "Center tag inside align=center td"
+ RenderTable {TABLE} at (336,130) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (312,157) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (285,184) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderTable {TABLE} at (0,3010) size 784x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 776x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (184,5) size 408x25
+ RenderText {TEXT} at (48,4) size 311x17
+ text run at (48,4) width 311: "Normal fixed width div inside align=center td"
+ RenderBlock {DIV} at (184,30) size 408x25
+ RenderText {TEXT} at (4,4) size 287x17
+ text run at (4,4) width 287: "Left fixed width div inside align=center td"
+ RenderBlock {DIV} at (184,55) size 408x25
+ RenderText {TEXT} at (51,4) size 306x17
+ text run at (51,4) width 306: "Center fixed width div inside align=center td"
+ RenderBlock {DIV} at (184,80) size 408x25
+ RenderText {TEXT} at (107,4) size 297x17
+ text run at (107,4) width 297: "Right fixed width div inside align=center td"
+ RenderBlock {CENTER} at (184,105) size 408x25
+ RenderText {TEXT} at (46,4) size 316x17
+ text run at (46,4) width 316: "Center tag (fixed width) inside align=center td"
+ RenderTable {TABLE} at (188,130) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (188,157) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (188,184) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderTable {TABLE} at (0,3234) size 784x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 776x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 766x25
+ RenderText {TEXT} at (542,4) size 220x17
+ text run at (542,4) width 220: "Normal div inside align=right td"
+ RenderBlock {DIV} at (5,30) size 766x25
+ RenderText {TEXT} at (4,4) size 196x17
+ text run at (4,4) width 196: "Left div inside align=right td"
+ RenderBlock {DIV} at (5,55) size 766x25
+ RenderText {TEXT} at (275,4) size 215x17
+ text run at (275,4) width 215: "Center div inside align=right td"
+ RenderBlock {DIV} at (5,80) size 766x25
+ RenderText {TEXT} at (556,4) size 206x17
+ text run at (556,4) width 206: "Right div inside align=right td"
+ RenderBlock {CENTER} at (5,105) size 766x25
+ RenderText {TEXT} at (275,4) size 216x17
+ text run at (275,4) width 216: "Center tag inside align=right td"
+ RenderTable {TABLE} at (668,130) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (312,157) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (564,184) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderTable {TABLE} at (0,3458) size 784x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 776x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (363,5) size 408x25
+ RenderText {TEXT} at (103,4) size 301x17
+ text run at (103,4) width 301: "Normal fixed width div inside align=right td"
+ RenderBlock {DIV} at (363,30) size 408x25
+ RenderText {TEXT} at (4,4) size 277x17
+ text run at (4,4) width 277: "Left fixed width div inside align=right td"
+ RenderBlock {DIV} at (363,55) size 408x25
+ RenderText {TEXT} at (56,4) size 296x17
+ text run at (56,4) width 296: "Center fixed width div inside align=right td"
+ RenderBlock {DIV} at (363,80) size 408x25
+ RenderText {TEXT} at (117,4) size 287x17
+ text run at (117,4) width 287: "Right fixed width div inside align=right td"
+ RenderBlock {CENTER} at (363,105) size 408x25
+ RenderText {TEXT} at (51,4) size 306x17
+ text run at (51,4) width 306: "Center tag (fixed width) inside align=right td"
+ RenderTable {TABLE} at (371,130) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 93: "Normal table."
+ RenderTable {TABLE} at (188,157) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 142: "Center aligned table."
+ RenderTable {TABLE} at (369,184) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 195x17
+ text run at (1,1) width 195: "Center table (fixed margins)."
+ RenderBlock {DIV} at (0,3696) size 784x3602
+ RenderBlock (anonymous) at (2,2) size 780x17
+ RenderText {TEXT} at (310,0) size 470x17
+ text run at (310,0) width 5: "."
+ text run at (315,0) width 465: "This is a test of all the various HTML alignments using RTL direction"
+ RenderBlock {DIV} at (2,19) size 780x218
+ RenderBlock {DIV} at (6,6) size 768x25
+ RenderText {TEXT} at (567,4) size 197x17
+ text run at (567,4) width 197: "Normal div inside normal div"
+ RenderBlock {DIV} at (6,31) size 768x25
+ RenderText {TEXT} at (4,4) size 173x17
+ text run at (4,4) width 173: "Left div inside normal div"
+ RenderBlock {DIV} at (6,56) size 768x25
+ RenderText {TEXT} at (288,4) size 192x17
+ text run at (288,4) width 192: "Center div inside normal div"
+ RenderBlock {DIV} at (6,81) size 768x25
+ RenderText {TEXT} at (581,4) size 183x17
+ text run at (581,4) width 183: "Right div inside normal div"
+ RenderBlock {CENTER} at (6,106) size 768x25
+ RenderText {TEXT} at (287,4) size 193x17
+ text run at (287,4) width 193: "Center tag inside normal div"
+ RenderTable {TABLE} at (665,131) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 88: "Normal table"
+ RenderTable {TABLE} at (308,158) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (561,185) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,1) size 196x17
+ text run at (0,1) width 10: ")."
+ text run at (10,1) width 186: "Center table (fixed margins"
+ RenderBlock {DIV} at (2,237) size 780x218
+ RenderBlock {DIV} at (366,6) size 408x25
+ RenderText {TEXT} at (126,4) size 278x17
+ text run at (126,4) width 278: "Normal fixed width div inside normal div"
+ RenderBlock {DIV} at (366,31) size 408x25
+ RenderText {TEXT} at (4,4) size 254x17
+ text run at (4,4) width 254: "Left fixed width div inside normal div"
+ RenderBlock {DIV} at (366,56) size 408x25
+ RenderText {TEXT} at (67,4) size 273x17
+ text run at (67,4) width 273: "Center fixed width div inside normal div"
+ RenderBlock {DIV} at (366,81) size 408x25
+ RenderText {TEXT} at (140,4) size 264x17
+ text run at (140,4) width 264: "Right fixed width div inside normal div"
+ RenderBlock {CENTER} at (366,106) size 408x25
+ RenderText {TEXT} at (62,4) size 283x17
+ text run at (62,4) width 283: "Center tag (fixed width) inside normal div"
+ RenderTable {TABLE} at (368,131) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (298,1) size 93x17
+ text run at (298,1) width 5: "."
+ text run at (303,1) width 88: "Normal table"
+ RenderTable {TABLE} at (184,158) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (249,1) size 142x17
+ text run at (249,1) width 5: "."
+ text run at (254,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (366,185) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (195,1) size 196x17
+ text run at (195,1) width 10: ")."
+ text run at (205,1) width 186: "Center table (fixed margins"
+ RenderBlock {DIV} at (2,455) size 780x218
+ RenderBlock {DIV} at (6,6) size 768x25
+ RenderText {TEXT} at (4,4) size 216x17
+ text run at (4,4) width 216: "Normal div inside align=left div"
+ RenderBlock {DIV} at (6,31) size 768x25
+ RenderText {TEXT} at (4,4) size 192x17
+ text run at (4,4) width 192: "Left div inside align=left div"
+ RenderBlock {DIV} at (6,56) size 768x25
+ RenderText {TEXT} at (278,4) size 211x17
+ text run at (278,4) width 211: "Center div inside align=left div"
+ RenderBlock {DIV} at (6,81) size 768x25
+ RenderText {TEXT} at (562,4) size 202x17
+ text run at (562,4) width 202: "Right div inside align=left div"
+ RenderBlock {CENTER} at (6,106) size 768x25
+ RenderText {TEXT} at (278,4) size 212x17
+ text run at (278,4) width 212: "Center tag inside align=left div"
+ RenderTable {TABLE} at (0,131) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 88: "Normal table"
+ RenderTable {TABLE} at (308,158) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (2,185) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,1) size 196x17
+ text run at (0,1) width 10: ")."
+ text run at (10,1) width 186: "Center table (fixed margins"
+ RenderBlock {DIV} at (2,673) size 780x218
+ RenderBlock {DIV} at (6,6) size 408x25
+ RenderText {TEXT} at (4,4) size 297x17
+ text run at (4,4) width 297: "Normal fixed width div inside align=left div"
+ RenderBlock {DIV} at (6,31) size 408x25
+ RenderText {TEXT} at (4,4) size 273x17
+ text run at (4,4) width 273: "Left fixed width div inside align=left div"
+ RenderBlock {DIV} at (6,56) size 408x25
+ RenderText {TEXT} at (58,4) size 292x17
+ text run at (58,4) width 292: "Center fixed width div inside align=left div"
+ RenderBlock {DIV} at (6,81) size 408x25
+ RenderText {TEXT} at (121,4) size 283x17
+ text run at (121,4) width 283: "Right fixed width div inside align=left div"
+ RenderBlock {CENTER} at (6,106) size 408x25
+ RenderText {TEXT} at (53,4) size 302x17
+ text run at (53,4) width 302: "Center tag (fixed width) inside align=left div"
+ RenderTable {TABLE} at (0,131) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (298,1) size 93x17
+ text run at (298,1) width 5: "."
+ text run at (303,1) width 88: "Normal table"
+ RenderTable {TABLE} at (184,158) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (249,1) size 142x17
+ text run at (249,1) width 5: "."
+ text run at (254,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (2,185) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (195,1) size 196x17
+ text run at (195,1) width 10: ")."
+ text run at (205,1) width 186: "Center table (fixed margins"
+ RenderBlock {DIV} at (2,891) size 780x218
+ RenderBlock {DIV} at (6,6) size 768x25
+ RenderText {TEXT} at (263,4) size 241x17
+ text run at (263,4) width 241: "Normal div inside align= center div"
+ RenderBlock {DIV} at (6,31) size 768x25
+ RenderText {TEXT} at (4,4) size 212x17
+ text run at (4,4) width 212: "Left div inside align=center div"
+ RenderBlock {DIV} at (6,56) size 768x25
+ RenderText {TEXT} at (268,4) size 231x17
+ text run at (268,4) width 231: "Center div inside align=center div"
+ RenderBlock {DIV} at (6,81) size 768x25
+ RenderText {TEXT} at (542,4) size 222x17
+ text run at (542,4) width 222: "Right div inside align=center div"
+ RenderBlock {CENTER} at (6,106) size 768x25
+ RenderText {TEXT} at (268,4) size 232x17
+ text run at (268,4) width 232: "Center tag inside align=center div"
+ RenderTable {TABLE} at (332,131) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 88: "Normal table"
+ RenderTable {TABLE} at (308,158) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (281,185) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,1) size 196x17
+ text run at (0,1) width 10: ")."
+ text run at (10,1) width 186: "Center table (fixed margins"
+ RenderBlock {DIV} at (2,1109) size 780x218
+ RenderBlock {DIV} at (186,6) size 408x25
+ RenderText {TEXT} at (45,4) size 317x17
+ text run at (45,4) width 317: "Normal fixed width div inside align=center div"
+ RenderBlock {DIV} at (186,31) size 408x25
+ RenderText {TEXT} at (4,4) size 293x17
+ text run at (4,4) width 293: "Left fixed width div inside align=center div"
+ RenderBlock {DIV} at (186,56) size 408x25
+ RenderText {TEXT} at (48,4) size 312x17
+ text run at (48,4) width 312: "Center fixed width div inside align=center div"
+ RenderBlock {DIV} at (186,81) size 408x25
+ RenderText {TEXT} at (101,4) size 303x17
+ text run at (101,4) width 303: "Right fixed width div inside align=center div"
+ RenderBlock {CENTER} at (186,106) size 408x25
+ RenderText {TEXT} at (43,4) size 322x17
+ text run at (43,4) width 322: "Center tag (fixed width) inside align=center div"
+ RenderTable {TABLE} at (184,131) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (298,1) size 93x17
+ text run at (298,1) width 5: "."
+ text run at (303,1) width 88: "Normal table"
+ RenderTable {TABLE} at (184,158) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (249,1) size 142x17
+ text run at (249,1) width 5: "."
+ text run at (254,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (184,185) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (195,1) size 196x17
+ text run at (195,1) width 10: ")."
+ text run at (205,1) width 186: "Center table (fixed margins"
+ RenderBlock {DIV} at (2,1327) size 780x218
+ RenderBlock {DIV} at (6,6) size 768x25
+ RenderText {TEXT} at (538,4) size 226x17
+ text run at (538,4) width 226: "Normal div inside align=right div"
+ RenderBlock {DIV} at (6,31) size 768x25
+ RenderText {TEXT} at (4,4) size 202x17
+ text run at (4,4) width 202: "Left div inside align=right div"
+ RenderBlock {DIV} at (6,56) size 768x25
+ RenderText {TEXT} at (273,4) size 221x17
+ text run at (273,4) width 221: "Center div inside align=right div"
+ RenderBlock {DIV} at (6,81) size 768x25
+ RenderText {TEXT} at (552,4) size 212x17
+ text run at (552,4) width 212: "Right div inside align=right div"
+ RenderBlock {CENTER} at (6,106) size 768x25
+ RenderText {TEXT} at (273,4) size 222x17
+ text run at (273,4) width 222: "Center tag inside align=right div"
+ RenderTable {TABLE} at (665,131) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 88: "Normal table"
+ RenderTable {TABLE} at (308,158) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (561,185) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,1) size 196x17
+ text run at (0,1) width 10: ")."
+ text run at (10,1) width 186: "Center table (fixed margins"
+ RenderBlock {DIV} at (2,1545) size 780x218
+ RenderBlock {DIV} at (366,6) size 408x25
+ RenderText {TEXT} at (97,4) size 307x17
+ text run at (97,4) width 307: "Normal fixed width div inside align=right div"
+ RenderBlock {DIV} at (366,31) size 408x25
+ RenderText {TEXT} at (4,4) size 283x17
+ text run at (4,4) width 283: "Left fixed width div inside align=right div"
+ RenderBlock {DIV} at (366,56) size 408x25
+ RenderText {TEXT} at (53,4) size 302x17
+ text run at (53,4) width 302: "Center fixed width div inside align=right div"
+ RenderBlock {DIV} at (366,81) size 408x25
+ RenderText {TEXT} at (111,4) size 293x17
+ text run at (111,4) width 293: "Right fixed width div inside align=right div"
+ RenderBlock {CENTER} at (366,106) size 408x25
+ RenderText {TEXT} at (48,4) size 312x17
+ text run at (48,4) width 312: "Center tag (fixed width) inside align=right div"
+ RenderTable {TABLE} at (368,131) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (298,1) size 93x17
+ text run at (298,1) width 5: "."
+ text run at (303,1) width 88: "Normal table"
+ RenderTable {TABLE} at (184,158) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (249,1) size 142x17
+ text run at (249,1) width 5: "."
+ text run at (254,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (366,185) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (195,1) size 196x17
+ text run at (195,1) width 10: ")."
+ text run at (205,1) width 186: "Center table (fixed margins"
+ RenderBlock {P} at (2,1777) size 780x17
+ RenderText {TEXT} at (397,0) size 383x17
+ text run at (397,0) width 10: ")."
+ text run at (407,0) width 373: "This is a test using TABLE cells (all in the RTL direction"
+ RenderTable {TABLE} at (0,1808) size 780x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 772x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 762x25
+ RenderText {TEXT} at (567,4) size 191x17
+ text run at (567,4) width 191: "Normal div inside normal td"
+ RenderBlock {DIV} at (5,30) size 762x25
+ RenderText {TEXT} at (4,4) size 167x17
+ text run at (4,4) width 167: "Left div inside normal td"
+ RenderBlock {DIV} at (5,55) size 762x25
+ RenderText {TEXT} at (288,4) size 186x17
+ text run at (288,4) width 186: "Center div inside normal td"
+ RenderBlock {DIV} at (5,80) size 762x25
+ RenderText {TEXT} at (581,4) size 177x17
+ text run at (581,4) width 177: "Right div inside normal td"
+ RenderBlock {CENTER} at (5,105) size 762x25
+ RenderText {TEXT} at (287,4) size 187x17
+ text run at (287,4) width 187: "Center tag inside normal td"
+ RenderTable {TABLE} at (659,130) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 88: "Normal table"
+ RenderTable {TABLE} at (305,157) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (555,184) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,1) size 196x17
+ text run at (0,1) width 10: ")."
+ text run at (10,1) width 186: "Center table (fixed margins"
+ RenderTable {TABLE} at (0,2032) size 780x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 772x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (359,5) size 408x25
+ RenderText {TEXT} at (132,4) size 272x17
+ text run at (132,4) width 272: "Normal fixed width div inside normal td"
+ RenderBlock {DIV} at (359,30) size 408x25
+ RenderText {TEXT} at (4,4) size 248x17
+ text run at (4,4) width 248: "Left fixed width div inside normal td"
+ RenderBlock {DIV} at (359,55) size 408x25
+ RenderText {TEXT} at (70,4) size 267x17
+ text run at (70,4) width 267: "Center fixed width div inside normal td"
+ RenderBlock {DIV} at (359,80) size 408x25
+ RenderText {TEXT} at (146,4) size 258x17
+ text run at (146,4) width 258: "Right fixed width div inside normal td"
+ RenderBlock {CENTER} at (359,105) size 408x25
+ RenderText {TEXT} at (65,4) size 277x17
+ text run at (65,4) width 277: "Center tag (fixed width) inside normal td"
+ RenderTable {TABLE} at (362,130) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (298,1) size 93x17
+ text run at (298,1) width 5: "."
+ text run at (303,1) width 88: "Normal table"
+ RenderTable {TABLE} at (181,157) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (249,1) size 142x17
+ text run at (249,1) width 5: "."
+ text run at (254,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (360,184) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (195,1) size 196x17
+ text run at (195,1) width 10: ")."
+ text run at (205,1) width 186: "Center table (fixed margins"
+ RenderTable {TABLE} at (0,2256) size 780x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 772x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 762x25
+ RenderText {TEXT} at (4,4) size 210x17
+ text run at (4,4) width 210: "Normal div inside align=left td"
+ RenderBlock {DIV} at (5,30) size 762x25
+ RenderText {TEXT} at (4,4) size 186x17
+ text run at (4,4) width 186: "Left div inside align=left td"
+ RenderBlock {DIV} at (5,55) size 762x25
+ RenderText {TEXT} at (278,4) size 205x17
+ text run at (278,4) width 205: "Center div inside align=left td"
+ RenderBlock {DIV} at (5,80) size 762x25
+ RenderText {TEXT} at (562,4) size 196x17
+ text run at (562,4) width 196: "Right div inside align=left td"
+ RenderBlock {CENTER} at (5,105) size 762x25
+ RenderText {TEXT} at (278,4) size 206x17
+ text run at (278,4) width 206: "Center tag inside align=left td"
+ RenderTable {TABLE} at (0,130) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 88: "Normal table"
+ RenderTable {TABLE} at (305,157) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (2,184) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,1) size 196x17
+ text run at (0,1) width 10: ")."
+ text run at (10,1) width 186: "Center table (fixed margins"
+ RenderTable {TABLE} at (0,2480) size 780x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 772x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 408x25
+ RenderText {TEXT} at (4,4) size 291x17
+ text run at (4,4) width 291: "Normal fixed width div inside align=left td"
+ RenderBlock {DIV} at (5,30) size 408x25
+ RenderText {TEXT} at (4,4) size 267x17
+ text run at (4,4) width 267: "Left fixed width div inside align=left td"
+ RenderBlock {DIV} at (5,55) size 408x25
+ RenderText {TEXT} at (61,4) size 286x17
+ text run at (61,4) width 286: "Center fixed width div inside align=left td"
+ RenderBlock {DIV} at (5,80) size 408x25
+ RenderText {TEXT} at (127,4) size 277x17
+ text run at (127,4) width 277: "Right fixed width div inside align=left td"
+ RenderBlock {CENTER} at (5,105) size 408x25
+ RenderText {TEXT} at (56,4) size 296x17
+ text run at (56,4) width 296: "Center tag (fixed width) inside align=left td"
+ RenderTable {TABLE} at (0,130) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (298,1) size 93x17
+ text run at (298,1) width 5: "."
+ text run at (303,1) width 88: "Normal table"
+ RenderTable {TABLE} at (181,157) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (249,1) size 142x17
+ text run at (249,1) width 5: "."
+ text run at (254,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (2,184) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (195,1) size 196x17
+ text run at (195,1) width 10: ")."
+ text run at (205,1) width 186: "Center table (fixed margins"
+ RenderTable {TABLE} at (0,2704) size 780x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 772x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 762x25
+ RenderText {TEXT} at (263,4) size 235x17
+ text run at (263,4) width 235: "Normal div inside align= center td"
+ RenderBlock {DIV} at (5,30) size 762x25
+ RenderText {TEXT} at (4,4) size 206x17
+ text run at (4,4) width 206: "Left div inside align=center td"
+ RenderBlock {DIV} at (5,55) size 762x25
+ RenderText {TEXT} at (268,4) size 225x17
+ text run at (268,4) width 225: "Center div inside align=center td"
+ RenderBlock {DIV} at (5,80) size 762x25
+ RenderText {TEXT} at (542,4) size 216x17
+ text run at (542,4) width 216: "Right div inside align=center td"
+ RenderBlock {CENTER} at (5,105) size 762x25
+ RenderText {TEXT} at (268,4) size 226x17
+ text run at (268,4) width 226: "Center tag inside align=center td"
+ RenderTable {TABLE} at (329,130) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 88: "Normal table"
+ RenderTable {TABLE} at (305,157) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (278,184) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,1) size 196x17
+ text run at (0,1) width 10: ")."
+ text run at (10,1) width 186: "Center table (fixed margins"
+ RenderTable {TABLE} at (0,2928) size 780x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 772x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (182,5) size 408x25
+ RenderText {TEXT} at (48,4) size 311x17
+ text run at (48,4) width 311: "Normal fixed width div inside align=center td"
+ RenderBlock {DIV} at (182,30) size 408x25
+ RenderText {TEXT} at (4,4) size 287x17
+ text run at (4,4) width 287: "Left fixed width div inside align=center td"
+ RenderBlock {DIV} at (182,55) size 408x25
+ RenderText {TEXT} at (51,4) size 306x17
+ text run at (51,4) width 306: "Center fixed width div inside align=center td"
+ RenderBlock {DIV} at (182,80) size 408x25
+ RenderText {TEXT} at (107,4) size 297x17
+ text run at (107,4) width 297: "Right fixed width div inside align=center td"
+ RenderBlock {CENTER} at (182,105) size 408x25
+ RenderText {TEXT} at (46,4) size 316x17
+ text run at (46,4) width 316: "Center tag (fixed width) inside align=center td"
+ RenderTable {TABLE} at (181,130) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (298,1) size 93x17
+ text run at (298,1) width 5: "."
+ text run at (303,1) width 88: "Normal table"
+ RenderTable {TABLE} at (181,157) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (249,1) size 142x17
+ text run at (249,1) width 5: "."
+ text run at (254,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (181,184) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (195,1) size 196x17
+ text run at (195,1) width 10: ")."
+ text run at (205,1) width 186: "Center table (fixed margins"
+ RenderTable {TABLE} at (0,3152) size 780x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 772x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (5,5) size 762x25
+ RenderText {TEXT} at (538,4) size 220x17
+ text run at (538,4) width 220: "Normal div inside align=right td"
+ RenderBlock {DIV} at (5,30) size 762x25
+ RenderText {TEXT} at (4,4) size 196x17
+ text run at (4,4) width 196: "Left div inside align=right td"
+ RenderBlock {DIV} at (5,55) size 762x25
+ RenderText {TEXT} at (273,4) size 215x17
+ text run at (273,4) width 215: "Center div inside align=right td"
+ RenderBlock {DIV} at (5,80) size 762x25
+ RenderText {TEXT} at (552,4) size 206x17
+ text run at (552,4) width 206: "Right div inside align=right td"
+ RenderBlock {CENTER} at (5,105) size 762x25
+ RenderText {TEXT} at (273,4) size 216x17
+ text run at (273,4) width 216: "Center tag inside align=right td"
+ RenderTable {TABLE} at (659,130) size 103x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 95x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 88: "Normal table"
+ RenderTable {TABLE} at (305,157) size 152x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 144x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 142x17
+ text run at (1,1) width 5: "."
+ text run at (6,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (555,184) size 205x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 197x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,1) size 196x17
+ text run at (0,1) width 10: ")."
+ text run at (10,1) width 186: "Center table (fixed margins"
+ RenderTable {TABLE} at (0,3376) size 780x224
+ RenderTableSection {TBODY} at (2,2) size 0x220
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 772x216 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (359,5) size 408x25
+ RenderText {TEXT} at (103,4) size 301x17
+ text run at (103,4) width 301: "Normal fixed width div inside align=right td"
+ RenderBlock {DIV} at (359,30) size 408x25
+ RenderText {TEXT} at (4,4) size 277x17
+ text run at (4,4) width 277: "Left fixed width div inside align=right td"
+ RenderBlock {DIV} at (359,55) size 408x25
+ RenderText {TEXT} at (56,4) size 296x17
+ text run at (56,4) width 296: "Center fixed width div inside align=right td"
+ RenderBlock {DIV} at (359,80) size 408x25
+ RenderText {TEXT} at (117,4) size 287x17
+ text run at (117,4) width 287: "Right fixed width div inside align=right td"
+ RenderBlock {CENTER} at (359,105) size 408x25
+ RenderText {TEXT} at (51,4) size 306x17
+ text run at (51,4) width 306: "Center tag (fixed width) inside align=right td"
+ RenderTable {TABLE} at (362,130) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (298,1) size 93x17
+ text run at (298,1) width 5: "."
+ text run at (303,1) width 88: "Normal table"
+ RenderTable {TABLE} at (181,157) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (249,1) size 142x17
+ text run at (249,1) width 5: "."
+ text run at (254,1) width 137: "Center aligned table"
+ RenderTable {TABLE} at (360,184) size 400x27
+ RenderTableSection {TBODY} at (2,2) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 392x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (195,1) size 196x17
+ text run at (195,1) width 10: ")."
+ text run at (205,1) width 186: "Center table (fixed margins"
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/016.html b/third_party/WebKit/LayoutTests/fast/block/basic/016.html
new file mode 100644
index 0000000..b26141a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/016.html
@@ -0,0 +1,421 @@
+<head>
+<style>
+div, center, table {
+ border: 2px solid blue;
+ padding: 2px;
+}
+
+.fixedMargin {
+ margin-left: 2px;
+ margin-right: 2px;
+}
+
+.autoWidth {
+ border: 4px solid green;
+}
+
+.fixedWidth {
+ border: 4px solid purple;
+}
+
+.fixedWidth > * {
+ width: 400px;
+}
+
+.full {
+ width: 100%;
+}
+
+.rtl {
+ border: none;
+ direction: rtl;
+ margin-top: 1em;
+}
+
+</style>
+</head>
+
+This is a test of all the various HTML alignments using LTR direction.
+
+<div class="autoWidth">
+ <div>Normal div inside normal div</div>
+ <div align=left>Left div inside normal div</div>
+ <div align=center>Center div inside normal div</div>
+ <div align=right>Right div inside normal div</div>
+ <center>Center tag inside normal div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div class="fixedWidth">
+ <div>Normal fixed width div inside normal div</div>
+ <div align=left>Left fixed width div inside normal div</div>
+ <div align=center>Center fixed width div inside normal div</div>
+ <div align=right>Right fixed width div inside normal div</div>
+ <center>Center tag (fixed width) inside normal div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=left class="autoWidth">
+ <div>Normal div inside align=left div</div>
+ <div align=left>Left div inside align=left div</div>
+ <div align=center>Center div inside align=left div</div>
+ <div align=right>Right div inside align=left div</div>
+ <center>Center tag inside align=left div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=left class="fixedWidth">
+ <div>Normal fixed width div inside align=left div</div>
+ <div align=left>Left fixed width div inside align=left div</div>
+ <div align=center>Center fixed width div inside align=left div</div>
+ <div align=right>Right fixed width div inside align=left div</div>
+ <center>Center tag (fixed width) inside align=left div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=center class="autoWidth">
+ <div>Normal div inside align= center div</div>
+ <div align=left>Left div inside align=center div</div>
+ <div align=center>Center div inside align=center div</div>
+ <div align=right>Right div inside align=center div</div>
+ <center>Center tag inside align=center div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=center class="fixedWidth">
+ <div>Normal fixed width div inside align=center div</div>
+ <div style="margin-left: auto">Normal fixed width div (auto left margin) inside align=center div</div>
+ <div style="margin-right: auto">Normal fixed width div (auto right margin) inside align=center div</div>
+ <div align=left>Left fixed width div inside align=center div</div>
+ <div align=center>Center fixed width div inside align=center div</div>
+ <div align=right>Right fixed width div inside align=center div</div>
+ <center>Center tag (fixed width) inside align=center div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=right class="autoWidth">
+ <div>Normal div inside align=right div</div>
+ <div align=left>Left div inside align=right div</div>
+ <div align=center>Center div inside align=right div</div>
+ <div align=right>Right div inside align=right div</div>
+ <center>Center tag inside align=right div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=right class="fixedWidth">
+ <div>Normal fixed width div inside align=right div</div>
+ <div align=left>Left fixed width div inside align=right div</div>
+ <div align=center>Center fixed width div inside align=right div</div>
+ <div align=right>Right fixed width div inside align=right div</div>
+ <center>Center tag (fixed width) inside align=right div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<p>
+This is a test using TABLE cells (all in the LTR direction).
+</p>
+
+
+
+
+
+
+
+<table class="full"><tr><td class="autoWidth">
+ <div>Normal div inside normal td</div>
+ <div align=left>Left div inside normal td </div>
+ <div align=center>Center div inside normal td </div>
+ <div align=right>Right div inside normal td </div>
+ <center>Center tag inside normal td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</td></tr></table>
+
+<table class="full"><tr><td class="fixedWidth">
+ <div>Normal fixed width div inside normal td </div>
+ <div align=left>Left fixed width div inside normal td </div>
+ <div align=center>Center fixed width div inside normal td </div>
+ <div align=right>Right fixed width div inside normal td </div>
+ <center>Center tag (fixed width) inside normal td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=left class="autoWidth">
+ <div>Normal div inside align=left td </div>
+ <div align=left>Left div inside align=left td </div>
+ <div align=center>Center div inside align=left td </div>
+ <div align=right>Right div inside align=left td </div>
+ <center>Center tag inside align=left td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=left class="fixedWidth">
+ <div>Normal fixed width div inside align=left td </div>
+ <div align=left>Left fixed width div inside align=left td </div>
+ <div align=center>Center fixed width div inside align=left td </div>
+ <div align=right>Right fixed width div inside align=left td </div>
+ <center>Center tag (fixed width) inside align=left td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=center class="autoWidth">
+ <div>Normal div inside align= center td </div>
+ <div align=left>Left div inside align=center td </div>
+ <div align=center>Center div inside align=center td </div>
+ <div align=right>Right div inside align=center td </div>
+ <center>Center tag inside align=center td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=center class="fixedWidth">
+ <div>Normal fixed width div inside align=center td </div>
+ <div align=left>Left fixed width div inside align=center td </div>
+ <div align=center>Center fixed width div inside align=center td </div>
+ <div align=right>Right fixed width div inside align=center td </div>
+ <center>Center tag (fixed width) inside align=center td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=right class="autoWidth">
+ <div>Normal div inside align=right td </div>
+ <div align=left>Left div inside align=right td </div>
+ <div align=center>Center div inside align=right td </div>
+ <div align=right>Right div inside align=right td </div>
+ <center>Center tag inside align=right td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=right class="fixedWidth">
+ <div>Normal fixed width div inside align=right td </div>
+ <div align=left>Left fixed width div inside align=right td </div>
+ <div align=center>Center fixed width div inside align=right td </div>
+ <div align=right>Right fixed width div inside align=right td </div>
+ <center>Center tag (fixed width) inside align=right td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+
+
+
+
+<div class="rtl">
+
+This is a test of all the various HTML alignments using RTL direction.
+
+<div class="autoWidth">
+ <div>Normal div inside normal div</div>
+ <div align=left>Left div inside normal div</div>
+ <div align=center>Center div inside normal div</div>
+ <div align=right>Right div inside normal div</div>
+ <center>Center tag inside normal div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div class="fixedWidth">
+ <div>Normal fixed width div inside normal div</div>
+ <div align=left>Left fixed width div inside normal div</div>
+ <div align=center>Center fixed width div inside normal div</div>
+ <div align=right>Right fixed width div inside normal div</div>
+ <center>Center tag (fixed width) inside normal div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=left class="autoWidth">
+ <div>Normal div inside align=left div</div>
+ <div align=left>Left div inside align=left div</div>
+ <div align=center>Center div inside align=left div</div>
+ <div align=right>Right div inside align=left div</div>
+ <center>Center tag inside align=left div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=left class="fixedWidth">
+ <div>Normal fixed width div inside align=left div</div>
+ <div align=left>Left fixed width div inside align=left div</div>
+ <div align=center>Center fixed width div inside align=left div</div>
+ <div align=right>Right fixed width div inside align=left div</div>
+ <center>Center tag (fixed width) inside align=left div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=center class="autoWidth">
+ <div>Normal div inside align= center div</div>
+ <div align=left>Left div inside align=center div</div>
+ <div align=center>Center div inside align=center div</div>
+ <div align=right>Right div inside align=center div</div>
+ <center>Center tag inside align=center div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=center class="fixedWidth">
+ <div>Normal fixed width div inside align=center div</div>
+ <div align=left>Left fixed width div inside align=center div</div>
+ <div align=center>Center fixed width div inside align=center div</div>
+ <div align=right>Right fixed width div inside align=center div</div>
+ <center>Center tag (fixed width) inside align=center div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=right class="autoWidth">
+ <div>Normal div inside align=right div</div>
+ <div align=left>Left div inside align=right div</div>
+ <div align=center>Center div inside align=right div</div>
+ <div align=right>Right div inside align=right div</div>
+ <center>Center tag inside align=right div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<div align=right class="fixedWidth">
+ <div>Normal fixed width div inside align=right div</div>
+ <div align=left>Left fixed width div inside align=right div</div>
+ <div align=center>Center fixed width div inside align=right div</div>
+ <div align=right>Right fixed width div inside align=right div</div>
+ <center>Center tag (fixed width) inside align=right div</center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</div>
+
+<p>
+This is a test using TABLE cells (all in the RTL direction).
+</p>
+
+
+
+
+
+
+
+<table class="full"><tr><td class="autoWidth">
+ <div>Normal div inside normal td</div>
+ <div align=left>Left div inside normal td </div>
+ <div align=center>Center div inside normal td </div>
+ <div align=right>Right div inside normal td </div>
+ <center>Center tag inside normal td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</td></tr></table>
+
+<table class="full"><tr><td class="fixedWidth">
+ <div>Normal fixed width div inside normal td </div>
+ <div align=left>Left fixed width div inside normal td </div>
+ <div align=center>Center fixed width div inside normal td </div>
+ <div align=right>Right fixed width div inside normal td </div>
+ <center>Center tag (fixed width) inside normal td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=left class="autoWidth">
+ <div>Normal div inside align=left td </div>
+ <div align=left>Left div inside align=left td </div>
+ <div align=center>Center div inside align=left td </div>
+ <div align=right>Right div inside align=left td </div>
+ <center>Center tag inside align=left td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=left class="fixedWidth">
+ <div>Normal fixed width div inside align=left td </div>
+ <div align=left>Left fixed width div inside align=left td </div>
+ <div align=center>Center fixed width div inside align=left td </div>
+ <div align=right>Right fixed width div inside align=left td </div>
+ <center>Center tag (fixed width) inside align=left td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=center class="autoWidth">
+ <div>Normal div inside align= center td </div>
+ <div align=left>Left div inside align=center td </div>
+ <div align=center>Center div inside align=center td </div>
+ <div align=right>Right div inside align=center td </div>
+ <center>Center tag inside align=center td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=center class="fixedWidth">
+ <div>Normal fixed width div inside align=center td </div>
+ <div align=left>Left fixed width div inside align=center td </div>
+ <div align=center>Center fixed width div inside align=center td </div>
+ <div align=right>Right fixed width div inside align=center td </div>
+ <center>Center tag (fixed width) inside align=center td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=right class="autoWidth">
+ <div>Normal div inside align=right td </div>
+ <div align=left>Left div inside align=right td </div>
+ <div align=center>Center div inside align=right td </div>
+ <div align=right>Right div inside align=right td </div>
+ <center>Center tag inside align=right td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+
+<table class="full"><tr><td align=right class="fixedWidth">
+ <div>Normal fixed width div inside align=right td </div>
+ <div align=left>Left fixed width div inside align=right td </div>
+ <div align=center>Center fixed width div inside align=right td </div>
+ <div align=right>Right fixed width div inside align=right td </div>
+ <center>Center tag (fixed width) inside align=right td </center>
+ <table><tr><td>Normal table.</tr></td></table>
+ <table align="center"><tr><td>Center aligned table.</tr></td></table>
+ <table align="center" class="fixedMargin"><tr><td>Center table (fixed margins).</tr></td></table>
+</table>
+</div> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/resources/013-helper.html b/third_party/WebKit/LayoutTests/fast/block/basic/resources/013-helper.html
new file mode 100644
index 0000000..52e0013
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/resources/013-helper.html
@@ -0,0 +1 @@
+<body><p>This is some text.</p><p>This text is underneath.</p></body>
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/001-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/001-expected.txt
new file mode 100644
index 0000000..5599157
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/001-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderBlock (floating) {DIV} at (0,1) size 100x100 [bgcolor=#008000]
+ RenderInline {A} at (0,0) size 30x17 [color=#0000EE] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 30x17
+ text run at (0,0) width 30: "Test"
+ RenderText {TEXT} at (100,0) size 35x17
+ text run at (100,0) width 35: "Hello"
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/001.html b/third_party/WebKit/LayoutTests/fast/block/float/001.html
new file mode 100644
index 0000000..93631db
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/001.html
@@ -0,0 +1 @@
+<body><div style="float:left; margin-top: 1px; width:100px; height:100px; background-color: green"><a href="foo.html">Test</a></div>Hello</body>
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/002-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/002-expected.txt
new file mode 100644
index 0000000..3239565
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/002-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x67
+ RenderBlock {HTML} at (0,0) size 800x67
+ RenderBody {BODY} at (8,8) size 784x51
+ RenderImage {IMG} at (643,10) size 121x84
+ RenderInline {A} at (0,0) size 426x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 426x17
+ text run at (0,0) width 325: "http://www.apple.com/pr/library/2003/jan/02"
+ text run at (325,0) width 101: "ical_isync.html"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderInline {A} at (0,0) size 194x17 [color=#0000EE]
+ RenderText {TEXT} at (0,17) size 194x17
+ text run at (0,17) width 194: "http://www.apple.com/ical/"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderInline {A} at (0,0) size 206x17 [color=#0000EE]
+ RenderText {TEXT} at (0,34) size 206x17
+ text run at (0,34) width 206: "http://www.apple.com/isync/"
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/002.html b/third_party/WebKit/LayoutTests/fast/block/float/002.html
new file mode 100644
index 0000000..f7d9f6d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/002.html
@@ -0,0 +1 @@
+<img src="topicnews2.gif" width="121" height="84" border="0" ALIGN="RIGHT" HSPACE="20" VSPACE="10" alt="News for Nerds!"><a href="http://www.apple.com/pr/library/2003/jan/02ical_isync.html">http://www.apple.com/pr/library/2003/jan/02ical_isync.html</a><BR><a href="http://www.apple.com/ical/">http://www.apple.com/ical/</a><BR><a href="http://www.apple.com/isync/">http://www.apple.com/isync/</a> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/003-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/003-expected.txt
new file mode 100644
index 0000000..e2e6d42
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/003-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x124
+ RenderBlock {HTML} at (0,0) size 800x124
+ RenderBody {BODY} at (8,8) size 784x102
+ RenderImage {IMG} at (664,0) size 120x200 [bgcolor=#FF0000]
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {OL} at (0,0) size 704x0
+ RenderBlock {P} at (0,0) size 784x102
+ RenderText {TEXT} at (0,0) size 653x102
+ text run at (0,0) width 628: "Vatican approves policy on sex abuse in clergy. The Vatican gave its approval Monday to the"
+ text run at (0,17) width 653: "revised U.S. bishops' policy to combat sex abuse in the clergy, declaring the need to restore the"
+ text run at (0,34) width 628: "image of the priesthood in a scandal that has rocked the Roman Catholic Church. The policy"
+ text run at (0,51) width 650: "allows bishops to conduct a confidential, preliminary inquiry when a molestation claim is made"
+ text run at (0,68) width 632: "to determine whether it is plausible. If it is, the accused priest is to be put on leave and then"
+ text run at (0,85) width 473: "must go before a clerical tribunal to determine his guilt or innocence."
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/003.html b/third_party/WebKit/LayoutTests/fast/block/float/003.html
new file mode 100644
index 0000000..ac94ffd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/003.html
@@ -0,0 +1,14 @@
+<html>
+<body>
+<img style="float:right;width:120px;height:200px;background-color:red;">
+<ol style="height:0px; width:100%"></ol>
+<p>
+Vatican approves policy on sex abuse in clergy.
+The Vatican gave its approval Monday to the revised U.S. bishops'
+policy to combat sex abuse in the clergy, declaring the need to restore the
+image of the priesthood in a scandal that has rocked the Roman Catholic Church.
+The policy allows bishops to conduct a confidential,
+preliminary inquiry when a molestation claim is made to determine whether
+it is plausible. If it is, the accused priest is to be put on leave and then
+must go before a clerical tribunal to determine his guilt or innocence.
+</p> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/004-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/004-expected.txt
new file mode 100644
index 0000000..ea301b2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/004-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x208
+ RenderBlock {HTML} at (0,0) size 800x208
+ RenderBody {BODY} at (8,8) size 784x172
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {P} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two boxes should look identical."
+ RenderBlock {DIV} at (28,76) size 34x34 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (3,3) size 28x28 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 28x28
+ text run at (0,0) width 28: "x"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (28,138) size 34x34 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (3,3) size 28x28 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 28x28
+ text run at (0,0) width 28: "x"
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/004.html b/third_party/WebKit/LayoutTests/fast/block/float/004.html
new file mode 100644
index 0000000..a6fb5ee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/004.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>CSS Floats: Shrink Wrapped Right Floats With Right Aligned Text</title>
+ <style>
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .container { width: 40%; padding: 0; margin: 1em; border: solid black; font: 2em/1 Ahem; height: 1em; width: 1em; background: red; }
+ .test { text-align: right; float: right; clear: right; color: green; }
+ </style>
+ </head>
+ <body>
+ <p class="control">Ahem_font_required_for_this_test.</p>
+ <p>The following two boxes should look identical.</p>
+ <div class="container"> <div class="test">x</div> </div>
+ <div class="container"> <div class="test"> x </div> </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/005-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/005-expected.txt
new file mode 100644
index 0000000..d87f8e5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/005-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x208
+ RenderBlock {HTML} at (0,0) size 800x208
+ RenderBody {BODY} at (8,8) size 784x172
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {P} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two boxes should look identical."
+ RenderBlock {DIV} at (28,76) size 62x34 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (3,3) size 56x28 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 56x28
+ text run at (0,0) width 56: "xx"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (28,138) size 62x34 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (3,3) size 56x28 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 56x28
+ text run at (0,0) width 56: "xx"
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/005.html b/third_party/WebKit/LayoutTests/fast/block/float/005.html
new file mode 100644
index 0000000..ac99ad8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/005.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>CSS Floats: Shrink Wrapped Right Floats With Right Aligned Text</title>
+ <style>
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .container { width: 40%; padding: 0; margin: 1em; border: solid black; font: 2em/1 Ahem; height: 1em; width: 2em; background: red; }
+ .test { text-align: right; float: right; clear: right; color: green; }
+ </style>
+ </head>
+ <body>
+ <p class="control">Ahem_font_required_for_this_test.</p>
+ <p>The following two boxes should look identical.</p>
+ <div class="container"> <div class="test">xx</div> </div>
+ <div class="container"> <div class="test"> xx </div> </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/006-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/006-expected.txt
new file mode 100644
index 0000000..fde2655
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/006-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x208
+ RenderBlock {HTML} at (0,0) size 800x208
+ RenderBody {BODY} at (8,8) size 784x172
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {P} at (0,0) size 532x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 532x14
+ text run at (0,3) width 532: "Ahem_font_would_be_nice_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two boxes should look identical."
+ RenderBlock {DIV} at (28,76) size 90x34 [bgcolor=#FFFFFF]
+ RenderBlock (floating) {DIV} at (3,3) size 84x28 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 84x28
+ text run at (0,0) width 84: "x x"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (28,138) size 90x34 [bgcolor=#FFFFFF]
+ RenderBlock (floating) {DIV} at (3,3) size 84x28 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 84x28
+ text run at (0,0) width 84: "x x"
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/006.html b/third_party/WebKit/LayoutTests/fast/block/float/006.html
new file mode 100644
index 0000000..0937997
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/006.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>CSS Floats: Shrink Wrapped Right Floats With Right Aligned Text</title>
+ <style>
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .container { width: 40%; padding: 0; margin: 1em; border: solid black; font: 2em/1 Ahem; height: 1em; width: 3em; background: white; }
+ .test { text-align: right; float: right; clear: right; color: green; }
+ </style>
+ </head>
+ <body>
+ <p class="control">Ahem_font_would_be_nice_for_this_test.</p>
+ <p>The following two boxes should look identical.</p>
+ <div class="container"> <div class="test">x x</div> </div>
+ <div class="container"> <div class="test"> x x </div> </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/007-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/007-expected.txt
new file mode 100644
index 0000000..62fa7c1f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/007-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderBlock (floating) {DIV} at (0,7) size 352x19
+ RenderText {TEXT} at (1,1) size 188x17
+ text run at (1,1) width 188: "this div disappears in Safari"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/007.html b/third_party/WebKit/LayoutTests/fast/block/float/007.html
new file mode 100644
index 0000000..a35f807
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/007.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+
+<html>
+<head>
+<title>Safari float/margin-top bug</title>
+
+<style type="text/css">
+<!--
+#foo {
+ border:1px solid black;
+ margin-top:0.5em;
+ width:25em;
+ float:left;
+}
+-->
+</style>
+
+
+</head>
+
+<body>
+
+<!-- explanation at:
+http://www.paranoidfish.org/notes/2003/01/08/1500/
+-->
+
+<div id="foo">this div disappears in Safari</div>
+
+</body>
+</html>
+
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/008-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/008-expected.txt
new file mode 100644
index 0000000..84b65e5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/008-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x608
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x316
+ RenderBlock {HTML} at (0,0) size 800x316
+ RenderBody {BODY} at (8,8) size 784x300
+ RenderBlock (floating) {DIV} at (0,0) size 784x100 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {DIV} at (0,100) size 100x100 [bgcolor=#800080]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {DIV} at (584,100) size 200x500 [bgcolor=#FFA500]
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/008.html b/third_party/WebKit/LayoutTests/fast/block/float/008.html
new file mode 100644
index 0000000..7da54a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/008.html
@@ -0,0 +1,4 @@
+<body style="height:300px">
+<div style="float:left;width:100%;background-color:green;height:100px"></div>
+<div style="float:left;width:100px;background-color:purple;height:100px"></div>
+<div style="float:right;width:200px;background-color:orange;height:500px"></div>
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/009-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/009-expected.txt
new file mode 100644
index 0000000..dc85b4b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/009-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x316
+ RenderBlock {HTML} at (0,0) size 800x316
+ RenderBody {BODY} at (8,8) size 784x300
+ RenderBlock (floating) {DIV} at (0,0) size 392x100 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {DIV} at (392,0) size 100x100 [bgcolor=#800080]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {DIV} at (584,0) size 200x500 [bgcolor=#FFA500]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {DIV} at (484,100) size 100x50 [bgcolor=#0000FF]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {DIV} at (0,100) size 140x200 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {DIV} at (384,100) size 100x100 [bgcolor=#808000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/009.html b/third_party/WebKit/LayoutTests/fast/block/float/009.html
new file mode 100644
index 0000000..c2b4de2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/009.html
@@ -0,0 +1,7 @@
+<body style="height:300px">
+<div style="float:left;width:50%;background-color:green;height:100px"></div>
+<div style="float:left;width:100px;background-color:purple;height:100px"></div>
+<div style="float:right;width:200px;background-color:orange;height:500px"></div>
+<div style="float:right;width:100px;background-color:blue;height:50px"></div>
+<div style="float:left;width:10em;background-color:red;height:200px"></div>
+<div style="float:right;width:100px;background-color:olive;height:100px"></div> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/010-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/010-expected.txt
new file mode 100644
index 0000000..d375fa5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/010-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x316
+ RenderBlock {HTML} at (0,0) size 800x316
+ RenderBody {BODY} at (8,8) size 784x300
+ RenderBlock (floating) {DIV} at (0,0) size 392x100 [bgcolor=#008000]
+ RenderBlock (floating) {DIV} at (392,0) size 100x100 [bgcolor=#800080]
+ RenderBlock (floating) {DIV} at (584,0) size 200x500 [bgcolor=#FFA500]
+ RenderBlock (floating) {DIV} at (484,100) size 100x50 [bgcolor=#0000FF]
+ RenderBlock (floating) {DIV} at (0,100) size 140x200 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (384,100) size 100x100 [bgcolor=#808000]
+ RenderText {TEXT} at (492,0) size 439x153
+ text run at (492,0) width 74: "Some text."
+ text run at (492,17) width 79: "This should"
+ text run at (492,34) width 87: "find a way to"
+ text run at (492,51) width 85: "wrap among"
+ text run at (492,68) width 84: "all the floats"
+ text run at (492,85) width 52: "without"
+ text run at (140,102) width 175: "overlapping any of them. "
+ text run at (315,102) width 60: "It should"
+ text run at (140,119) width 226: "start just under the blue box and"
+ text run at (140,136) width 145: "wrap to several lines."
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/010.html b/third_party/WebKit/LayoutTests/fast/block/float/010.html
new file mode 100644
index 0000000..616fe65
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/010.html
@@ -0,0 +1,3 @@
+<body style="height:300px"><div style="float:left;width:50%;background-color:green;height:100px"></div><div style="float:left;width:100px;background-color:purple;height:100px"></div><div style="float:right;width:200px;background-color:orange;height:500px"></div><div style="float:right;width:100px;background-color:blue;height:50px"></div><div style="float:left;width:10em;background-color:red;height:200px"></div><div style="float:right;width:100px;background-color:olive;height:100px"></div>Some text. This
+should find a way to wrap among all the floats without overlapping any of them. It should
+start just under the blue box and wrap to several lines.
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/011-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/011-expected.txt
new file mode 100644
index 0000000..9d3bfc9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/011-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,8) size 784x29
+ RenderTable {TABLE} at (0,0) size 593x29
+ RenderTableSection {TBODY} at (0,0) size 0x29
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 285x25 [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (1,1) size 283x23
+ RenderTableSection {TBODY} at (0,0) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 279x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 277x17
+ text run at (1,1) width 277: "Look at me contributing some minwidth."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (289,13) size 302x2 [bgcolor=#FF0000] [r=0 c=1 rs=1 cs=1]
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/011.html b/third_party/WebKit/LayoutTests/fast/block/float/011.html
new file mode 100644
index 0000000..37b5c6f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/011.html
@@ -0,0 +1,9 @@
+<html>
+<table>
+<tr><td>
+<table align=left>
+<tr><td>Look at me contributing some minwidth.
+</table>
+<td width=300 bgcolor=red></td>
+</table>
+
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/012-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/012-expected.txt
new file mode 100644
index 0000000..4730aa5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/012-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderBlock (floating) {DIV} at (0,0) size 326x21
+ RenderInline {SPAN} at (0,0) size 322x17
+ RenderText {TEXT} at (102,2) size 122x17
+ text run at (102,2) width 122: "This is some text."
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,0) size 784x0
+ RenderBlock (floating) {DIV} at (692,0) size 92x38
+ RenderInline {SPAN} at (0,0) size 88x34
+ RenderText {TEXT} at (12,2) size 78x34
+ text run at (12,2) width 59: "First line"
+ text run at (2,19) width 78: "Second line"
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/012.html b/third_party/WebKit/LayoutTests/fast/block/float/012.html
new file mode 100644
index 0000000..e65febb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/012.html
@@ -0,0 +1,6 @@
+<body>
+<div style="float:left;border:2px solid red"><span style="padding-left:50px; padding-right: 50px; border-left:50px solid blue; border-right:50px solid blue">This is some text.</span></div>
+<p></p>
+<div style="float:right; white-space:pre; border:2px solid red"><span style="white-space:pre; border-left:10px solid green; border-right:10px solid green">First line
+Second line</span></div>
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/013-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/013-expected.txt
new file mode 100644
index 0000000..d7dd070
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/013-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 808x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (8,64) size 800x122
+ RenderBlock (positioned) {DIV} at (8,64) size 800x108 [bgcolor=#0000FF]
+ RenderBlock (anonymous) at (0,8) size 800x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#0000FF]
+ RenderBlock {DIV} at (38,8) size 723x57 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 200x17
+ text run at (0,0) width 200: "some other macromedia logo"
+ RenderBlock (floating) {DIV} at (0,65) size 132x49 [bgcolor=#FFFF00]
+ RenderText {TEXT} at (54,16) size 24x17
+ text run at (54,16) width 24: "Feh"
+layer at (567,58) size 178x169 backgroundClip at (575,122) size 178x169
+ RenderBlock (positioned) {DIV} at (567,58) size 178x169 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,8) size 178x17
+ text run at (0,8) width 178: "this is the pseudorNav div"
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/013.html b/third_party/WebKit/LayoutTests/fast/block/float/013.html
new file mode 100644
index 0000000..9da7864
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/013.html
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+
+<title>Macromedia - Products</title>
+
+
+<style type="text/css">
+
+#bluebox {
+ background-color: blue;
+ position: absolute;
+ top: 64px;
+ width: 100%;
+ height: 100px;
+ padding: 8px 0px 0px 0px;
+ margin: 0px;
+ text-align: center;
+
+}
+
+#greenbox {
+ background-color: green;
+ margin: 0px auto;
+ text-align: left;
+ width: 723px;
+ height: 55px;
+}
+
+#yellowbox {
+ float: left;
+ padding: 16px 16px 16px 16px;
+ background-color: yellow;
+
+}
+
+#redbox {
+ position:absolute;
+ top: 58px;
+ left: 567px;
+ padding: 8px 0px 0px 0px;
+
+ background-color: red;
+
+ height: 161px;
+}
+
+
+</style>
+
+</head>
+
+<body>
+
+<div id="bluebox">
+
+ <div id="redbox">this is the pseudorNav div</div>
+ <div id="greenbox" style="border-bottom:2px solid #888878;">
+ some other macromedia logo
+ </div>
+
+ <div id="yellowbox" style="width: 100px;">Feh
+
+
+
+ </div>
+
+</div>
+
+</body><!-- InstanceEnd --></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/014-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/014-expected.txt
new file mode 100644
index 0000000..d9d1638
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/014-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x140
+ RenderBlock {HTML} at (0,0) size 800x140
+ RenderBody {BODY} at (8,8) size 784x118
+ RenderBlock {DIV} at (0,0) size 784x118
+ RenderBlock {DIV} at (0,0) size 784x2
+ RenderBlock (floating) {DIV} at (0,2) size 60x45
+ RenderImage {IMG} at (0,0) size 60x45
+ RenderBlock {UL} at (15,47) size 769x71 [bgcolor=#FF0000]
+ RenderListItem {LI} at (0,8) size 769x17 [bgcolor=#000000]
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 133x17
+ text run at (0,0) width 133: "Classroom Training"
+ RenderListItem {LI} at (0,39) size 769x17 [bgcolor=#000000]
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 82x17
+ text run at (0,0) width 82: "Find a Class"
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/014.html b/third_party/WebKit/LayoutTests/fast/block/float/014.html
new file mode 100644
index 0000000..a348133
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/014.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><!-- InstanceBegin template="/Templates/master.dwt" codeOutsideHTMLIsLocked="false" -->
+<head>
+
+<style type="text/css">
+ul {
+ background-color: red;
+ clear: both;
+ padding: 0px 0px 1px 0px;
+ margin: 0em 0em 1em 15px;
+}
+
+/* List Element Definitions */
+li {
+ margin: 0em 0em 1em 0em;
+}
+</style>
+
+</head>
+<body>
+
+ <div><div style="height:2px"></div>
+ <div style="float: left;"><img src="http://www.macromedia.com/images/shared/editorial/60x45/training_thumb.jpg" /></div>
+
+ <ul style="padding-top: 8px;">
+ <li>Classroom Training</li>
+ <li>Find a Class</li>
+ </ul>
+ </div>
+
+
+ </body>
+ </html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/015-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/015-expected.txt
new file mode 100644
index 0000000..2ba9695
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/015-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x158
+ RenderBlock {HTML} at (0,0) size 800x158
+ RenderBody {BODY} at (8,8) size 784x142
+ RenderTable {TABLE} at (0,0) size 735x142
+ RenderTableSection {TBODY} at (1,1) size 0x140
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,57) size 12x25 [bgcolor=#C0C0C0] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (4,4) size 4x17
+ text run at (4,4) width 4: "\x{A0}"
+ RenderTableCell {TD} at (12,0) size 721x140 [r=0 c=1 rs=1 cs=1]
+ RenderImage {IMG} at (4,4) size 106x50 [bgcolor=#FFA500]
+ RenderBlock (anonymous) at (4,4) size 713x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (4,4) size 713x34
+ RenderText {TEXT} at (109,0) size 586x34
+ text run at (109,0) width 586: "This text should be flowing past a tall orange rectangle on the left side of the browser"
+ text run at (109,17) width 57: "window."
+ RenderBlock {DIV} at (4,52) size 713x17 [bgcolor=#008000]
+ RenderBR {BR} at (0,0) size 0x0 [bgcolor=#000000]
+ RenderImage {IMG} at (4,69) size 106x50 [bgcolor=#FFA500]
+ RenderBlock {DIV} at (4,119) size 713x17
+ RenderText {TEXT} at (0,0) size 713x17
+ text run at (0,0) width 713: "This paragraph should appear below the tall orange rectangle above and to the left, and not flow past it."
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/015.html b/third_party/WebKit/LayoutTests/fast/block/float/015.html
new file mode 100644
index 0000000..0d1458c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/015.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
+<HTML>
+<HEAD>
+<TITLE>CSS1 Test Suite: 5.5.26 clear</TITLE>
+<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<META http-equiv="Content-Style-Type" content="text/css">
+
+<LINK rel="stylesheet" type="text/css" media="screen" href="../resources/base.css">
+<STYLE type="text/css">
+.one {clear: left;}
+.two {clear: right;}
+.three {clear: both;}
+.four {clear: none;}
+img { background-color: orange; }</STYLE>
+
+</HEAD>
+<BODY><TABLE border cellspacing="0" cellpadding="3" class="tabletest">
+<TR>
+<TD bgcolor="silver">&nbsp;</TD>
+<TD><IMG SRC="../resources/vblank.gif" height="50" align="left" alt="[Image]">
+<p >
+This text should be flowing past a tall orange rectangle on the left side of the browser window.
+</p>
+<div style="background-color:green"><BR clear="all"></div>
+<IMG SRC="../resources/vblank.gif" height="50" align="left" alt="[Image]">
+ <div class="one">
+This paragraph should appear below the tall orange rectangle above and to the left, and not flow past it.
+</div>
+
+</TD></TR></TABLE></BODY>
+</HTML>
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/016-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/016-expected.txt
new file mode 100644
index 0000000..d7b4688
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/016-expected.txt
@@ -0,0 +1,74 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x447
+ RenderBlock {HTML} at (0,0) size 800x447
+ RenderBody {BODY} at (8,8) size 784x425
+ RenderBlock {UL} at (211,0) size 361x168
+ RenderListItem {LI} at (0,42) size 247x62
+ RenderBlock {A} at (107,0) size 140x121 [color=#CCCCCC]
+ RenderBlock {B} at (0,0) size 140x61
+ RenderBlock {B} at (0,61) size 140x61
+ RenderBlock {SPAN} at (7,53) size 126x17 [color=#000000]
+ RenderInline {ABBR} at (0,0) size 28x16
+ RenderText {TEXT} at (14,1) size 28x16
+ text run at (14,1) width 28: "CSS"
+ RenderText {TEXT} at (42,0) size 69x17
+ text run at (42,0) width 69: " examples"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderListItem {LI} at (0,104) size 215x62
+ RenderBlock {A} at (0,0) size 140x121 [color=#CCCCCC]
+ RenderBlock {B} at (0,0) size 140x61
+ RenderBlock {B} at (0,61) size 140x61
+ RenderBlock {SPAN} at (7,53) size 126x17 [color=#000000]
+ RenderText {TEXT} at (35,0) size 55x17
+ text run at (35,0) width 55: "Favelets"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderListItem {LI} at (215,104) size 140x62
+ RenderBlock {A} at (0,0) size 140x121 [color=#CCCCCC]
+ RenderBlock {B} at (0,0) size 140x61
+ RenderBlock {B} at (0,61) size 140x61
+ RenderBlock {SPAN} at (7,53) size 126x17 [color=#000000]
+ RenderInline {ABBR} at (0,0) size 19x16
+ RenderText {TEXT} at (53,1) size 19x16
+ text run at (53,1) width 19: "CV"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderListItem {LI} at (0,166) size 247x62
+ RenderBlock {A} at (107,0) size 140x121 [color=#CCCCCC]
+ RenderBlock {B} at (0,0) size 140x61
+ RenderBlock {B} at (0,61) size 140x61
+ RenderBlock {SPAN} at (7,53) size 126x17 [color=#000000]
+ RenderText {TEXT} at (52,0) size 22x17
+ text run at (52,0) width 22: "log"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderListItem {LI} at (0,228) size 215x62
+ RenderBlock {A} at (0,0) size 140x121 [color=#CCCCCC]
+ RenderBlock {B} at (0,0) size 140x61
+ RenderBlock {B} at (0,61) size 140x61
+ RenderBlock {SPAN} at (7,53) size 126x34 [color=#000000]
+ RenderText {TEXT} at (14,0) size 49x17
+ text run at (14,0) width 49: "simple "
+ RenderInline {ABBR} at (0,0) size 48x16
+ RenderText {TEXT} at (63,1) size 48x16
+ text run at (63,1) width 48: "XHTML"
+ RenderText {TEXT} at (46,17) size 33x17
+ text run at (46,17) width 33: "tests"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderListItem {LI} at (215,228) size 140x62
+ RenderBlock {A} at (0,0) size 140x121 [color=#CCCCCC]
+ RenderBlock {B} at (0,0) size 140x61
+ RenderBlock {B} at (0,61) size 140x61
+ RenderBlock {SPAN} at (7,53) size 126x17 [color=#000000]
+ RenderText {TEXT} at (30,0) size 66x17
+ text run at (30,0) width 66: "entrances"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderListItem {LI} at (0,290) size 247x62
+ RenderBlock {A} at (107,0) size 140x121 [color=#CCCCCC]
+ RenderBlock {B} at (0,0) size 140x61
+ RenderBlock {B} at (0,61) size 140x61
+ RenderBlock {SPAN} at (7,53) size 126x17 [color=#000000]
+ RenderText {TEXT} at (50,0) size 26x17
+ text run at (50,0) width 26: "exit"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,352) size 784x73
+ RenderText {TEXT} at (343,28) size 98x17
+ text run at (343,28) width 98: "Ceci n'est pas Flash."
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/016.html b/third_party/WebKit/LayoutTests/fast/block/float/016.html
new file mode 100644
index 0000000..173d083
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/016.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><title>tantek.com</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<meta http-equiv="Content-Style-Type" content="text/css" />
+<meta http-equiv="Content-Language" content="en" />
+<meta name="author" lang="tr" content="Tantek &Ccedil;elik" />
+<meta name="copyright" content="&copy; Copyright 2002-03 Tantek &Ccedil;elik. All rights reserved." />
+<meta name="description" content="Tantek's site map." />
+<meta name="keywords" content="Tantek,&Ccedil;elik" />
+<style type="text/css">
+i{content:"\"/*"}
+*{text-decoration:none;outline:none}
+body{font-family:sans-serif;text-align:center}
+h1{display:none}
+p{clear:both;padding:2em 0;font-family:cursive}
+ul,li{margin:0;padding:0;list-style:none}
+ul{width:30.8em;margin:0 auto;padding:3em 0 9em}
+body>ul{width:25.8em}
+a,b,span{display:block}
+li{float:left;height:4.45em;margin-bottom:-5em}
+ul>li{margin-bottom:0}
+li.o{padding-left:10.2em}
+li.e{padding-right:10.4em}
+ul>li.o{padding-left:7.7em}
+ul>li.e{padding-right:5.4em}
+li a{width:10em;height:8.66em}
+b.h0{border-bottom:4.33em solid}
+b.h1{border-top:4.33em solid;margin-bottom:-8.66em}
+b.h0,b.h1{width:5em;height:1px;border-left:2.5em solid #fff;border-right:2.5em solid #fff}
+a>b.h0,a>b.h1{border-left-color:transparent;border-right-color:transparent}
+a {color:#ccc}
+a:hover{color:#6ff}
+a:active{color:#6f6}
+a:focus{color:#ff6}
+span{margin:2.73em 5% 0;color:#000;}
+a>span{margin-top:3.73em}
+</style>
+</head>
+<body><h1>tantek.com</h1>
+<ul>
+<li class="o"><a href="CSS/Examples/"><b class="h0"></b><b class="h1"></b>
+ <span><abbr title="Cascading Style Sheets">CSS</abbr> examples</span></a></li>
+<li class="e"><a href="favelets/"><b class="h0"></b><b class="h1"></b>
+ <span>Favelets</span></a></li>
+<li><a href="projects/resume.html"><b class="h0"></b><b class="h1"></b>
+ <span><abbr title="curriculum vitae">CV</abbr></span></a></li>
+<li class="o"><a href="log/"><b class="h0"></b><b class="h1"></b>
+ <span>log</span></a></li>
+<li class="e"><a href="XHTML/Test/"><b class="h0"></b><b class="h1"></b>
+ <span>simple <abbr title="Extensible Hypertext Markup Language">XHTML</abbr> tests</span></a></li>
+<li><a href="entrances.html"><b class="h0"></b><b class="h1"></b>
+ <span>entrances</span></a></li>
+<li class="o"><a href="exit.html"><b class="h0"></b><b class="h1"></b>
+ <span>exit</span></a></li>
+</ul>
+<p>Ceci n'est pas Flash.</p></body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/017-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/017-expected.txt
new file mode 100644
index 0000000..9cca931
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/017-expected.txt
@@ -0,0 +1,29 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x237
+ RenderBlock {HTML} at (0,0) size 800x237
+ RenderBody {BODY} at (8,8) size 784x221
+ RenderBlock {DIV} at (0,0) size 454x169
+ RenderImage {IMG} at (2,2) size 450x29 [bgcolor=#FFFF00]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (2,31) size 250x125 [bgcolor=#FFA500]
+ RenderText {TEXT} at (255,31) size 197x136
+ text run at (255,31) width 197: "Theme Park Roller Coaster is"
+ text run at (255,48) width 185: "an excellent game that lets"
+ text run at (255,65) width 186: "you create your own virtual"
+ text run at (255,82) width 194: "amusement park. Go behind"
+ text run at (255,99) width 111: "the scenes of its"
+ text run at (255,116) width 139: "development and its"
+ text run at (255,133) width 195: "transition from the PC to the"
+ text run at (255,150) width 30: "PS2."
+ RenderBlock {P} at (0,183) size 784x0
+ RenderBlock {DIV} at (0,183) size 304x38
+ RenderImage {IMG} at (197,5) size 105x70 [bgcolor=#800080]
+ RenderText {TEXT} at (2,2) size 162x17
+ text run at (2,2) width 162: "First non-breaking line."
+ RenderInline {NOBR} at (0,0) size 181x17
+ RenderText {TEXT} at (2,19) size 181x17
+ text run at (2,19) width 181: "Second non-breaking line."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/017.html b/third_party/WebKit/LayoutTests/fast/block/float/017.html
new file mode 100644
index 0000000..3f081ed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/017.html
@@ -0,0 +1,14 @@
+<div style="width:450px; border:2px solid green">
+<img style="background-color:yellow" width="450" height="29">
+<br clear="all">
+<img style="background-color: orange" width="250" height="125" border="0" alt="Theme Park Roller Coaster" align="left">
+
+Theme Park Roller Coaster is an excellent game that lets you create your own virtual amusement park. Go behind the scenes of its development and its transition from the PC to the PS2. </div>
+
+<p></p>
+
+<div style="width:300px; border:2px solid green"><img style="background-color:purple" width="105" height="70" border="0" align="right" vspace="3">
+
+First non-breaking line.
+<nobr>Second non-breaking line.</nobr>
+</div> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/018-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/018-expected.txt
new file mode 100644
index 0000000..4497b9373
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/018-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x100
+ RenderBlock {HTML} at (0,0) size 800x100
+ RenderBody {BODY} at (8,8) size 784x84
+ RenderBlock {DIV} at (0,0) size 110x84 [bgcolor=#808080]
+ RenderImage {IMG} at (60,0) size 50x50 [bgcolor=#FFFF00]
+ RenderText {TEXT} at (0,0) size 38x17
+ text run at (0,0) width 38: "Blah. "
+ RenderImage {IMG} at (7,17) size 50x50 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,67) size 102x17
+ text run at (0,67) width 102: "Blah blah blah."
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/018.html b/third_party/WebKit/LayoutTests/fast/block/float/018.html
new file mode 100644
index 0000000..56ab780
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/018.html
@@ -0,0 +1,7 @@
+<div style="background-color:gray; width:110px">
+<img width="50" height="50" align="right" style="background-color:yellow">
+Blah.
+<img width="50" height="50" align="right" style="background-color:red">
+Blah blah blah.
+</div>
+
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/019-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/019-expected.txt
new file mode 100644
index 0000000..871cdd1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/019-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 2008x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 2008x170
+ RenderBlock {HTML} at (0,0) size 800x170
+ RenderBody {BODY} at (8,8) size 784x154
+ RenderBlock {DIV} at (0,0) size 784x154
+ RenderBlock (floating) {DIV} at (700,0) size 84x104 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,104) size 2000x50 [bgcolor=#FFA500]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/019.html b/third_party/WebKit/LayoutTests/fast/block/float/019.html
new file mode 100644
index 0000000..58bbb07
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/019.html
@@ -0,0 +1,8 @@
+<html>
+<body>
+<div>
+<div style="border:2px solid olive; float:right;width:80px;height:100px; background-color:green"></div>
+<img width=2000 height=50 style="background-color:orange">
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/020-expected.txt b/third_party/WebKit/LayoutTests/fast/block/float/020-expected.txt
new file mode 100644
index 0000000..97c5919
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/020-expected.txt
@@ -0,0 +1,51 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x537
+ RenderBlock {HTML} at (0,0) size 800x537
+ RenderBody {BODY} at (8,8) size 784x515
+ RenderBlock {P} at (0,0) size 784x102
+ RenderText {TEXT} at (0,0) size 780x102
+ text run at (0,0) width 777: "P1: This represents the header and should be flush-left. Lorem ipsum dolor sit amet, consectetuer adipiscing elit,"
+ text run at (0,17) width 776: "sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim"
+ text run at (0,34) width 758: "veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis"
+ text run at (0,51) width 780: "autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla"
+ text run at (0,68) width 758: "facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis"
+ text run at (0,85) width 205: "dolore te feugait nulla facilisi."
+ RenderBlock {DIV} at (0,116) size 784x283
+ RenderBlock (floating) {H2} at (0,0) size 98x51
+ RenderText {TEXT} at (37,0) size 89x51
+ text run at (37,0) width 61: "H2: This"
+ text run at (9,17) width 89: "should float"
+ text run at (73,34) width 25: "left"
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,0) size 784x283
+ RenderBlock {H3} at (112,0) size 672x17
+ RenderText {TEXT} at (0,0) size 286x17
+ text run at (0,0) width 286: "H3: This should be indented and inline"
+ RenderBlock {P} at (112,31) size 672x119
+ RenderText {TEXT} at (0,0) size 670x119
+ text run at (0,0) width 661: "P2: This should be indented and inline. Lorem ipsum dolor sit amet, consectetuer adipiscing elit,"
+ text run at (0,17) width 670: "sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi"
+ text run at (0,34) width 658: "enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex"
+ text run at (0,51) width 624: "ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse"
+ text run at (0,68) width 644: "molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto"
+ text run at (0,85) width 628: "odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla"
+ text run at (0,102) width 49: "facilisi."
+ RenderBlock {P} at (112,164) size 672x119
+ RenderText {TEXT} at (0,0) size 666x119
+ text run at (0,0) width 661: "P3: This should be indented and inline. Ut wisi enim ad minim veniam, quis nostrud exerci tation"
+ text run at (0,17) width 666: "ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure"
+ text run at (0,34) width 634: "dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla"
+ text run at (0,51) width 628: "facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril"
+ text run at (0,68) width 624: "delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer"
+ text run at (0,85) width 660: "adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat"
+ text run at (0,102) width 61: "volutpat."
+ RenderBlock {P} at (0,413) size 784x102
+ RenderText {TEXT} at (0,0) size 779x102
+ text run at (0,0) width 768: "P4: This represents the footer and should be flush-left. Duis autem vel eum iriure dolor in hendrerit in vulputate"
+ text run at (0,17) width 746: "velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio"
+ text run at (0,34) width 779: "dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor"
+ text run at (0,51) width 726: "sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna"
+ text run at (0,68) width 773: "aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl"
+ text run at (0,85) width 257: "ut aliquip ex ea commodo consequat."
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/020.html b/third_party/WebKit/LayoutTests/fast/block/float/020.html
new file mode 100644
index 0000000..b65ae39
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/020.html
@@ -0,0 +1,99 @@
+<html>
+<head>
+ <title>CSS Test Document from Adam Rice</title>
+ <style type="text/css">
+
+
+.subunit {
+ padding-left:8em;
+ }
+
+#content h2 {
+ float:left;
+ width:7em;
+ padding:0;
+ margin:0;
+ font-size:1em;
+ text-align:right;
+ }
+
+#content h3 {
+ color: black;
+ font-weight:bold;
+ font-size:1em;
+ padding:0px;
+ margin:0px;
+ margin-bottom:2px;
+ /*padding-left:8em;*/
+ }
+
+
+#content p {
+ /*padding-left:8em;*/
+ }
+
+
+</style>
+</head>
+<body>
+
+
+
+<p>P1: This represents the header and should be flush-left. Lorem ipsum
+dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
+euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut
+wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper
+suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem
+vel eum iriure dolor in hendrerit in vulputate velit esse molestie
+consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et
+accumsan et iusto odio dignissim qui blandit praesent luptatum zzril
+delenit augue duis dolore te feugait nulla facilisi.</p>
+
+
+<div id="content">
+
+
+<h2>H2: This should float left</h2>
+
+<div class="subunit">
+<h3>H3: This should be indented and inline</h3>
+<p>
+P2: This should be indented and inline. Lorem ipsum dolor sit amet,
+consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt
+ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim
+veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl
+ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in
+hendrerit in vulputate velit esse molestie consequat, vel illum dolore
+eu feugiat nulla facilisis at vero eros et accumsan et iusto odio
+dignissim qui blandit praesent luptatum zzril delenit augue duis dolore
+te feugait nulla facilisi.
+</p>
+
+<p>
+P3: This should be indented and inline. Ut wisi enim ad minim veniam,
+quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut
+aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in
+hendrerit in vulputate velit esse molestie consequat, vel illum dolore
+eu feugiat nulla facilisis at vero eros et accumsan et iusto odio
+dignissim qui blandit praesent luptatum zzril delenit augue duis dolore
+te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer
+adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet
+dolore magna aliquam erat volutpat.
+</p>
+</div>
+
+</div>
+<p>
+P4: This represents the footer and should be flush-left. Duis autem vel
+eum iriure dolor in hendrerit in vulputate velit esse molestie
+consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et
+accumsan et iusto odio dignissim qui blandit praesent luptatum zzril
+delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor
+sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
+tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim
+ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
+lobortis nisl ut aliquip ex ea commodo consequat.
+</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/001-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/001-expected.txt
new file mode 100644
index 0000000..b6e8d32
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/001-expected.txt
@@ -0,0 +1,50 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x473
+ RenderBlock {HTML} at (0,0) size 800x473
+ RenderBody {BODY} at (8,14) size 784x445
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 542x17
+ text run at (0,0) width 542: "The following two columns should be pixel perfect identical with no red visible."
+ RenderTable {TABLE} at (0,31) size 76x383
+ RenderTableSection {TBODY} at (3,3) size 0x377
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 35x377 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 35x277 [bgcolor=#0000FF]
+ RenderBlock {DIV} at (0,0) size 35x59 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 35x59
+ RenderBlock {DIV} at (0,0) size 35x59 [bgcolor=#FFFF00]
+ RenderText {TEXT} at (0,0) size 35x59
+ text run at (0,0) width 35: "A"
+ RenderBlock {DIV} at (0,109) size 35x0
+ RenderBlock {DIV} at (0,109) size 35x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,109) size 35x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 35x0
+ RenderBlock {DIV} at (0,109) size 35x59 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 35x59 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 35x0 [bgcolor=#FF0000]
+ RenderBlock (anonymous) at (0,0) size 35x59 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 29x59 [bgcolor=#00FF00]
+ text run at (0,0) width 29: "B"
+ RenderBlock {DIV} at (0,218) size 35x59 [bgcolor=#00FFFF]
+ RenderText {TEXT} at (0,0) size 35x59
+ text run at (0,0) width 35: "C"
+ RenderTableCell {TD} at (35,0) size 35x377 [bgcolor=#FFA500] [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 35x277 [bgcolor=#0000FF]
+ RenderBlock {DIV} at (0,0) size 35x59 [bgcolor=#FFFF00]
+ RenderText {TEXT} at (0,0) size 35x59
+ text run at (0,0) width 35: "A"
+ RenderBlock {DIV} at (0,109) size 35x59 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 29x59
+ text run at (0,0) width 29: "B"
+ RenderBlock {DIV} at (0,218) size 35x59 [bgcolor=#00FFFF]
+ RenderText {TEXT} at (0,0) size 35x59
+ text run at (0,0) width 35: "C"
+ RenderBlock {P} at (0,428) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 006"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/001.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/001.html
new file mode 100644
index 0000000..6747d90
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/001.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; }
+ td { background: orange; padding: 0; }
+ div { margin: 1em 0; }
+ .a { background: yellow; }
+ .b { background: lime; }
+ .c { background: aqua; }
+ .d { background: blue; }
+ .red { background: red; }
+ </style>
+ </head>
+ <body>
+ <p>The following two columns should be pixel perfect identical with no red visible.</p>
+ <table>
+ <tr>
+ <td class="test">
+ <div class="d">
+ <div class="red"><div class="red"><div class="a">A</div></div><div class="red"></div></div>
+ <div class="red"></div>
+ <div class="red"><div class="red"></div></div>
+ <div class="red"><div class="b"><div class="red"></div>B</div></div>
+ <div class="c">C</div>
+ </div>
+ </td>
+ <td class="control">
+ <div class="d">
+ <div class="a">A</div>
+ <div class="b">B</div>
+ <div class="c">C</div>
+ </div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="006.html">test 006</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/002-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/002-expected.txt
new file mode 100644
index 0000000..c7e4c6b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/002-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 401x17
+ text run at (0,0) width 401: "This page should have one square green block and no red."
+layer at (8,45) size 70x70
+ RenderBlock (positioned) {DIV} at (8,45) size 70x70 [bgcolor=#FF0000]
+layer at (8,45) size 70x70
+ RenderBlock (positioned) {DIV} at (8,45) size 70x70 [bgcolor=#008000]
+ RenderBlock {DIV} at (35,70) size 0x0 [bgcolor=#FF0000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/002.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/002.html
new file mode 100644
index 0000000..6ebefce
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/002.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: absolutely positioned</title>
+ <style type="text/css">
+ div.test { background: green; position: absolute; }
+ div.test div { background: red; margin: 5em 2.5em; }
+ div.control { height: 5em; width: 5em; background: red; position: absolute; }
+ </style>
+ </head>
+ <body>
+ <p>This page should have one square green block and no red.</p>
+ <div class="control"></div>
+ <div class="test">
+ <div></div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/003-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/003-expected.txt
new file mode 100644
index 0000000..5b5d8d9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/003-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 401x17
+ text run at (0,0) width 401: "This page should have one square green block and no red."
+layer at (8,56) size 70x70
+ RenderBlock (positioned) {DIV} at (8,56) size 70x70 [bgcolor=#FF0000]
+layer at (8,56) size 70x70
+ RenderBlock (positioned) {DIV} at (8,56) size 70x70 [bgcolor=#008000]
+ RenderBlock {DIV} at (35,70) size 0x0 [bgcolor=#FF0000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/003.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/003.html
new file mode 100644
index 0000000..970f27f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/003.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: fixed positioned</title>
+ <style type="text/css">
+ div.test { background: green; position: fixed; top: 4em; }
+ div.test div { background: red; margin: 5em 2.5em; }
+ div.control { height: 5em; width: 5em; background: red; position: fixed; top: 4em; }
+ </style>
+ </head>
+ <body>
+ <p>This page should have one square green block and no red.</p>
+ <div class="control"></div>
+ <div class="test">
+ <div></div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/004-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/004-expected.txt
new file mode 100644
index 0000000..7dcf195
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/004-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x115
+ RenderBlock {HTML} at (0,0) size 800x53
+ RenderBody {BODY} at (8,14) size 784x101
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 401x17
+ text run at (0,0) width 401: "This page should have one square green block and no red."
+ RenderBlock {DIV} at (0,31) size 70x70 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (0,31) size 70x70 [bgcolor=#008000]
+ RenderBlock {DIV} at (35,70) size 0x0 [bgcolor=#FF0000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/004.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/004.html
new file mode 100644
index 0000000..ad1b2c0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/004.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: floats</title>
+ <style type="text/css">
+ div.test { background: green; float: left; }
+ div.test div { background: red; margin: 5em 2.5em; }
+ div.control { height: 5em; width: 5em; margin: 0 0 -5em 0; background: red; }
+ </style>
+ </head>
+ <body>
+ <p>This page should have one square green block and no red.</p>
+ <div class="control"></div>
+ <div class="test">
+ <div></div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/005-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/005-expected.txt
new file mode 100644
index 0000000..c740bfa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/005-expected.txt
@@ -0,0 +1,52 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x473
+ RenderBlock {HTML} at (0,0) size 800x473
+ RenderBody {BODY} at (8,14) size 784x445
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 542x17
+ text run at (0,0) width 542: "The following two columns should be pixel perfect identical with no red visible."
+ RenderTable {TABLE} at (0,31) size 76x383
+ RenderTableSection {TBODY} at (3,3) size 0x377
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 35x377 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (35,0) size 35x377 [bgcolor=#FFA500] [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 35x277 [bgcolor=#0000FF]
+ RenderBlock {DIV} at (0,0) size 35x59 [bgcolor=#FFFF00]
+ RenderText {TEXT} at (0,0) size 35x59
+ text run at (0,0) width 35: "A"
+ RenderBlock {DIV} at (0,109) size 35x59 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 29x59
+ text run at (0,0) width 29: "B"
+ RenderBlock {DIV} at (0,218) size 35x59 [bgcolor=#00FFFF]
+ RenderText {TEXT} at (0,0) size 35x59
+ text run at (0,0) width 35: "C"
+ RenderBlock {P} at (0,428) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 006"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
+layer at (11,98) size 35x277
+ RenderBlock (relative positioned) {DIV} at (0,50) size 35x277 [bgcolor=#0000FF]
+layer at (0,0) size 35x59 backgroundClip at (11,98) size 35x59
+ RenderBlock (relative positioned) {DIV} at (0,0) size 35x59 [bgcolor=#FF0000]
+layer at (0,0) size 35x59 backgroundClip at (11,98) size 35x59
+ RenderBlock (relative positioned) {DIV} at (0,0) size 35x59
+layer at (0,0) size 35x59 backgroundClip at (11,98) size 35x59
+ RenderBlock (relative positioned) {DIV} at (0,0) size 35x59 [bgcolor=#FFFF00]
+ RenderText {TEXT} at (0,0) size 35x59
+ text run at (0,0) width 35: "A"
+layer at (0,109) size 35x59 backgroundClip at (11,207) size 35x59
+ RenderBlock (relative positioned) {DIV} at (0,109) size 35x59 [bgcolor=#FF0000]
+layer at (0,0) size 35x59 backgroundClip at (11,207) size 35x59
+ RenderBlock (relative positioned) {DIV} at (0,0) size 35x59 [bgcolor=#00FF00]
+ RenderBlock (anonymous) at (0,0) size 35x59 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 29x59 [bgcolor=#00FF00]
+ text run at (0,0) width 29: "B"
+layer at (0,218) size 35x59 backgroundClip at (11,316) size 35x59
+ RenderBlock (relative positioned) {DIV} at (0,218) size 35x59 [bgcolor=#00FFFF]
+ RenderText {TEXT} at (0,0) size 35x59
+ text run at (0,0) width 35: "C"
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/005.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/005.html
new file mode 100644
index 0000000..12a5e47
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/005.html
@@ -0,0 +1,41 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (relatively positioned)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; }
+ td { background: orange; padding: 0; }
+ div { margin: 1em 0; }
+ .test div { position: relative; }
+ .a { background: yellow; }
+ .b { background: lime; }
+ .c { background: aqua; }
+ .d { background: blue; }
+ .red { background: red; }
+ </style>
+ </head>
+ <body>
+ <p>The following two columns should be pixel perfect identical with no red visible.</p>
+ <table>
+ <tr>
+ <td class="test">
+ <div class="d">
+ <div class="red"><div class="red"><div class="a">A</div></div><div class="red"></div></div>
+ <div class="red"></div>
+ <div class="red"><div class="red"></div></div>
+ <div class="red"><div class="b"><div class="red"></div>B</div></div>
+ <div class="c">C</div>
+ </div>
+ </td>
+ <td class="control">
+ <div class="d">
+ <div class="a">A</div>
+ <div class="b">B</div>
+ <div class="c">C</div>
+ </div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="006.html">test 006</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/006-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/006-expected.txt
new file mode 100644
index 0000000..319e2e2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/006-expected.txt
@@ -0,0 +1,34 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x399
+ RenderBlock {HTML} at (0,0) size 800x399
+ RenderBody {BODY} at (8,8) size 784x383
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 542x17
+ text run at (0,0) width 542: "The following two columns should be pixel perfect identical with no red visible."
+ RenderTable {TABLE} at (0,62) size 106x256 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x250 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x250 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [color=#FFFF00] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 50x50
+ text run at (0,0) width 50: "X"
+ RenderBlock {DIV} at (0,150) size 50x50 [color=#00FF00] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 50x50
+ text run at (0,0) width 50: "X"
+ RenderTableCell {TD} at (50,0) size 50x250 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,50) size 50x50
+ RenderBlock {DIV} at (0,100) size 50x50
+ RenderBlock {DIV} at (0,150) size 50x50
+ RenderBlock {DIV} at (0,200) size 50x50
+ RenderBlock {P} at (0,332) size 784x17
+ RenderText {TEXT} at (0,0) size 605x17
+ text run at (0,0) width 605: "Control: This test is meaningless if you see any red below. (You should only see orange.)"
+ RenderBlock {DIV} at (0,363) size 146x20 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (3,3) size 140x14 [bgcolor=#000000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/006.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/006.html
new file mode 100644
index 0000000..a68f482
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/006.html
@@ -0,0 +1,47 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (simple)</title>
+ <style type="text/css">
+ .ahem { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ table { border-spacing: 0; font: 50px/1 Ahem; border: solid; background: red; }
+ td { padding: 0; }
+ /* test */
+ .test { background: orange; }
+ .test div { margin: 1em 0; background: red; }
+ .test .a { color: yellow; }
+ .test .b { color: lime; }
+ /* control */
+ .control div { width: 1em; }
+ .control .c { border-top: 1em orange solid; }
+ .control .a { border-top: 1em yellow solid; }
+ .control .b { border-top: 1em lime solid; }
+ /* control control */
+ .red { background: red; height: 1em; width: 10em; border: solid; }
+ .orange { border-top: 1em orange solid; }
+ </style>
+ </head>
+ <body>
+ <div class="ahem">Ahem_font_required_for_this_test.</div>
+ <p>The following two columns should be pixel perfect identical with no red visible.</p>
+ <table>
+ <tr>
+ <td class="test">
+ <div class="a">X</div>
+ <div class="b">X</div>
+ </td>
+ <td class="control">
+ <div class="c"></div>
+ <div class="a"></div>
+ <div class="c"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ </td>
+ </tr>
+ </table>
+ <p>Control: This test is meaningless if you see any red below. (You should only see orange.)</p>
+ <div class="red">
+ <div class="orange"></div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/010-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/010-expected.txt
new file mode 100644
index 0000000..cb212b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/010-expected.txt
@@ -0,0 +1,34 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x346
+ RenderBlock {HTML} at (0,0) size 800x346
+ RenderBody {BODY} at (8,14) size 784x318
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 632x17
+ text run at (0,0) width 632: "The square should consist of exactly five equal bands, orange, lime, orange, yellow, orange."
+ RenderTable {TABLE} at (0,31) size 256x256 [bgcolor=#FFA500]
+ RenderTableSection {TBODY} at (3,3) size 0x250 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x250 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderTableCell {TD} at (50,0) size 50x250 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderTableCell {TD} at (100,0) size 50x250 [r=0 c=2 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderTableCell {TD} at (150,0) size 50x250 [r=0 c=3 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderTableCell {TD} at (200,0) size 50x250 [r=0 c=4 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderBlock {P} at (0,301) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 006"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/010.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/010.html
new file mode 100644
index 0000000..4925a8f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/010.html
@@ -0,0 +1,56 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (simple)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: orange; }
+ td { padding: 0; }
+ div { height: 1em; width: 1em; }
+ .a { background: lime; }
+ .b { background: yellow; }
+ /* column 1 */
+ .t1 .a { margin: 1em 0 1em; }
+ .t1 .b { margin: 1em 0 1em; }
+ /* column 2 */
+ .t2 .a { margin: 1em 0 1em; }
+ .t2 .b { margin: 0em 0 1em; }
+ /* column 3 */
+ .t3 .a { margin: 1em 0 0em; }
+ .t3 .b { margin: 1em 0 1em; }
+ /* column 4 */
+ .t4 .a { margin: 1em 0 2em; }
+ .t4 .b { margin: -1em 0 1em; }
+ /* column 5 */
+ .t5 .a { margin: 1em 0 -1em; }
+ .t5 .b { margin: 2em 0 1em; }
+ </style>
+ </head>
+ <body>
+ <p>The square should consist of exactly five equal bands, orange, lime, orange, yellow, orange.</p>
+ <table>
+ <tr>
+ <td class="t1">
+ <div class="a"></div>
+ <div class="b"></div>
+ </td>
+ <td class="t2">
+ <div class="a"></div>
+ <div class="b"></div>
+ </td>
+ <td class="t3">
+ <div class="a"></div>
+ <div class="b"></div>
+ </td>
+ <td class="t4">
+ <div class="a"></div>
+ <div class="b"></div>
+ </td>
+ <td class="t5">
+ <div class="a"></div>
+ <div class="b"></div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="006.html">test 006</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/011-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/011-expected.txt
new file mode 100644
index 0000000..4d3bc32
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/011-expected.txt
@@ -0,0 +1,39 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x346
+ RenderBlock {HTML} at (0,0) size 800x346
+ RenderBody {BODY} at (8,14) size 784x318
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 632x17
+ text run at (0,0) width 632: "The square should consist of exactly five equal bands, orange, lime, orange, yellow, orange."
+ RenderTable {TABLE} at (0,31) size 256x256 [bgcolor=#FFA500]
+ RenderTableSection {TBODY} at (3,3) size 0x250 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x250 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,150) size 50x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderTableCell {TD} at (50,0) size 50x250 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,150) size 50x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderTableCell {TD} at (100,0) size 50x250 [r=0 c=2 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,150) size 50x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderTableCell {TD} at (150,0) size 50x250 [r=0 c=3 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,200) size 50x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderTableCell {TD} at (200,0) size 50x250 [r=0 c=4 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,100) size 50x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#FFFF00]
+ RenderBlock {P} at (0,301) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 006"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/011.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/011.html
new file mode 100644
index 0000000..df8bd4c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/011.html
@@ -0,0 +1,57 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (simple)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: orange; }
+ td { padding: 0; }
+ .a, .b { height: 1em; width: 1em; }
+ .a { background: lime; }
+ .b { background: yellow; }
+ .c { background: red; margin: 1em 0 1em; }
+ .t1 .a { margin: 1em 0 1em; }
+ .t1 .b { margin: 1em 0 1em; }
+ .t2 .a { margin: 1em 0 1em; }
+ .t2 .b { margin: 0em 0 1em; }
+ .t3 .a { margin: 1em 0 0em; }
+ .t3 .b { margin: 1em 0 1em; }
+ .t4 .a { margin: 1em 0 2em; }
+ .t4 .b { margin: -1em 0 1em; }
+ .t5 .a { margin: 1em 0 -1em; }
+ .t5 .b { margin: 2em 0 1em; }
+ </style>
+ </head>
+ <body>
+ <p>The square should consist of exactly five equal bands, orange, lime, orange, yellow, orange.</p>
+ <table>
+ <tr>
+ <td class="t1">
+ <div class="a"></div>
+ <div class="c"></div>
+ <div class="b"></div>
+ </td>
+ <td class="t2">
+ <div class="a"></div>
+ <div class="c"></div>
+ <div class="b"></div>
+ </td>
+ <td class="t3">
+ <div class="a"></div>
+ <div class="c"></div>
+ <div class="b"></div>
+ </td>
+ <td class="t4">
+ <div class="a"></div>
+ <div class="c"></div>
+ <div class="b"></div>
+ </td>
+ <td class="t5">
+ <div class="a"></div>
+ <div class="c"></div>
+ <div class="b"></div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="006.html">test 006</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/012-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/012-expected.txt
new file mode 100644
index 0000000..157f25a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/012-expected.txt
@@ -0,0 +1,28 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x346
+ RenderBlock {HTML} at (0,0) size 800x346
+ RenderBody {BODY} at (8,14) size 784x318
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 542x17
+ text run at (0,0) width 542: "The following two columns should be pixel perfect identical with no red visible."
+ RenderTable {TABLE} at (0,31) size 106x256 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x250 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x250 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#00FF00]
+ RenderTableCell {TD} at (50,0) size 50x250 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,50) size 50x50
+ RenderBlock {DIV} at (0,100) size 50x50
+ RenderBlock {DIV} at (0,150) size 50x50
+ RenderBlock {DIV} at (0,200) size 50x50
+ RenderBlock {P} at (0,301) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 006"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/012.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/012.html
new file mode 100644
index 0000000..3bdb6b2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/012.html
@@ -0,0 +1,39 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (simple)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font: 50px/1 Ahem; border: solid; background: red; }
+ td { padding: 0; }
+ /* test */
+ .test { background: orange; }
+ .test div { margin: 1em 0; background: red; height: 1em; width: 1em; }
+ .test .a { background: yellow; }
+ .test .b { background: lime; }
+ /* control */
+ .control div { width: 1em; }
+ .control .c { border-top: 1em orange solid; }
+ .control .a { border-top: 1em yellow solid; }
+ .control .b { border-top: 1em lime solid; }
+ </style>
+ </head>
+ <body>
+ <p>The following two columns should be pixel perfect identical with no red visible.</p>
+ <table>
+ <tr>
+ <td class="test">
+ <div class="a"></div>
+ <div class="b"></div>
+ </td>
+ <td class="control">
+ <div class="c"></div>
+ <div class="a"></div>
+ <div class="c"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="006.html">test 006</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/013-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/013-expected.txt
new file mode 100644
index 0000000..12a2b9c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/013-expected.txt
@@ -0,0 +1,29 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x346
+ RenderBlock {HTML} at (0,0) size 800x346
+ RenderBody {BODY} at (8,14) size 784x318
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 542x17
+ text run at (0,0) width 542: "The following two columns should be pixel perfect identical with no red visible."
+ RenderTable {TABLE} at (0,31) size 106x256 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x250 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x250 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,150) size 50x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,200) size 50x50 [bgcolor=#00FFFF]
+ RenderTableCell {TD} at (50,0) size 50x250 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,50) size 50x100
+ RenderBlock {DIV} at (0,150) size 50x50
+ RenderBlock {DIV} at (0,200) size 50x50
+ RenderBlock {P} at (0,301) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 006"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/013.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/013.html
new file mode 100644
index 0000000..2dc6a62
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/013.html
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (position of collapsed-through element)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
+ td { padding: 0; }
+ /* test */
+ .test { background: orange; width: 1em; }
+ .test .a { background: yellow; margin: 0 0 1em 0; height: 1em; }
+ .test .b { background: red; margin: 2em 0 0 0; height: 0; }
+ .test .c { background: aqua; margin: 3em 0 0 0; height: 1em; }
+ .test .d { background: lime; margin: 0; height: 1em; }
+ /* control */
+ .control div { width: 1em; }
+ .control .a { border-top: 1em yellow solid; }
+ .control .b { border-top: 2em orange solid; }
+ .control .c { border-top: 1em lime solid; }
+ .control .d { border-top: 1em aqua solid; }
+ </style>
+ </head>
+ <body>
+ <p>The following two columns should be pixel perfect identical with no red visible.</p>
+ <table>
+ <tr>
+ <td class="test">
+ <div class="a"></div>
+ <div class="b">
+ <div class="d"></div>
+ </div>
+ <div class="c"></div>
+ </td>
+ <td class="control">
+ <div class="a"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ <div class="d"></div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="006.html">test 006</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/014-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/014-expected.txt
new file mode 100644
index 0000000..12a2b9c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/014-expected.txt
@@ -0,0 +1,29 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x346
+ RenderBlock {HTML} at (0,0) size 800x346
+ RenderBody {BODY} at (8,14) size 784x318
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 542x17
+ text run at (0,0) width 542: "The following two columns should be pixel perfect identical with no red visible."
+ RenderTable {TABLE} at (0,31) size 106x256 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x250 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x250 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,150) size 50x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,200) size 50x50 [bgcolor=#00FFFF]
+ RenderTableCell {TD} at (50,0) size 50x250 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,50) size 50x100
+ RenderBlock {DIV} at (0,150) size 50x50
+ RenderBlock {DIV} at (0,200) size 50x50
+ RenderBlock {P} at (0,301) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 006"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/014.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/014.html
new file mode 100644
index 0000000..7f0881e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/014.html
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (position of collapsed-through element)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
+ td { padding: 0; }
+ /* test */
+ .test { background: orange; width: 1em; }
+ .test .a { background: yellow; margin: 0 0 1em 0; height: 1em; }
+ .test .b { background: red; margin: 2em 0 0 0; height: 0; }
+ .test .c { background: aqua; margin: 3em 0 0 0; height: 1em; }
+ .test .d { background: lime; margin: 2em 0 1em 0; height: 1em; }
+ /* control */
+ .control div { width: 1em; }
+ .control .a { border-top: 1em yellow solid; }
+ .control .b { border-top: 2em orange solid; }
+ .control .c { border-top: 1em lime solid; }
+ .control .d { border-top: 1em aqua solid; }
+ </style>
+ </head>
+ <body>
+ <p>The following two columns should be pixel perfect identical with no red visible.</p>
+ <table>
+ <tr>
+ <td class="test">
+ <div class="a"></div>
+ <div class="b">
+ <div class="d"></div>
+ </div>
+ <div class="c"></div>
+ </td>
+ <td class="control">
+ <div class="a"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ <div class="d"></div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="006.html">test 006</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/015-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/015-expected.txt
new file mode 100644
index 0000000..8df3406
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/015-expected.txt
@@ -0,0 +1,31 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x346
+ RenderBlock {HTML} at (0,0) size 800x346
+ RenderBody {BODY} at (8,14) size 784x318
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 542x17
+ text run at (0,0) width 542: "The following two columns should be pixel perfect identical with no red visible."
+ RenderTable {TABLE} at (0,31) size 106x256 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x250 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x250 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,150) size 50x0 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,200) size 50x50 [bgcolor=#00FFFF]
+ RenderTableCell {TD} at (50,0) size 50x250 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,50) size 50x100
+ RenderBlock {DIV} at (0,150) size 50x50
+ RenderBlock {DIV} at (0,200) size 50x50
+ RenderBlock {P} at (0,301) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 006"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
+layer at (11,198) size 50x50
+ RenderBlock (positioned) {DIV} at (11,198) size 50x50 [bgcolor=#00FF00]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/015.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/015.html
new file mode 100644
index 0000000..ccca31d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/015.html
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (position of collapsed-through element)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
+ td { padding: 0; }
+ /* test */
+ .test { background: orange; width: 1em; }
+ .test .a { background: yellow; margin: 0 0 1em 0; height: 1em; }
+ .test .b { background: red; margin: 2em 0 0 0; }
+ .test .c { background: aqua; margin: 3em 0 0 0; height: 1em; }
+ .test .d { background: lime; margin: 0; position: absolute; height: 1em; width: 1em; }
+ /* control */
+ .control div { width: 1em; }
+ .control .a { border-top: 1em yellow solid; }
+ .control .b { border-top: 2em orange solid; }
+ .control .c { border-top: 1em lime solid; }
+ .control .d { border-top: 1em aqua solid; }
+ </style>
+ </head>
+ <body>
+ <p>The following two columns should be pixel perfect identical with no red visible.</p>
+ <table>
+ <tr>
+ <td class="test">
+ <div class="a"></div>
+ <div class="b">
+ <div class="d"></div>
+ </div>
+ <div class="c"></div>
+ </td>
+ <td class="control">
+ <div class="a"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ <div class="d"></div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="006.html">test 006</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/016-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/016-expected.txt
new file mode 100644
index 0000000..3a03793
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/016-expected.txt
@@ -0,0 +1,32 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x346
+ RenderBlock {HTML} at (0,0) size 800x346
+ RenderBody {BODY} at (8,14) size 784x318
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 542x17
+ text run at (0,0) width 542: "The following two columns should be pixel perfect identical with no red visible."
+ RenderTable {TABLE} at (0,31) size 106x256 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x250 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x250 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x200 [bgcolor=#FFA500]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,100) size 50x0 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,150) size 50x50 [bgcolor=#00FFFF]
+ RenderTableCell {TD} at (50,0) size 50x250 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,50) size 50x100
+ RenderBlock {DIV} at (0,150) size 50x50
+ RenderBlock {DIV} at (0,200) size 50x50
+ RenderBlock {P} at (0,301) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 006"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
+layer at (11,248) size 50x50
+ RenderBlock (positioned) {DIV} at (11,248) size 50x50 [bgcolor=#00FF00]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/016.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/016.html
new file mode 100644
index 0000000..31426f5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/016.html
@@ -0,0 +1,45 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (position of collapsed-through element)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
+ td { padding: 0; }
+ /* test */
+ .test { background: orange; width: 1em; }
+ .test .a { background: yellow; margin: 0 0 1em 0; height: 1em; }
+ .test .b { background: red; margin: 1em 0 0 0; }
+ .test .c { background: aqua; margin: 2em 0 1em 0; height: 1em; }
+ .test .d { background: lime; position: absolute; height: 1em; width: 1em; margin: 2em 0 0 0; }
+ /* control */
+ .control div { width: 1em; }
+ .control .a { border-top: 1em yellow solid; }
+ .control .b { border-top: 2em orange solid; }
+ .control .c { border-top: 1em aqua solid; }
+ .control .d { border-top: 1em lime solid; }
+ </style>
+ </head>
+ <body>
+ <p>The following two columns should be pixel perfect identical with no red visible.</p>
+ <table>
+ <tr>
+ <td>
+ <div class="test">
+ <div class="a"></div>
+ <div class="b">
+ <div class="d"></div>
+ </div>
+ <div class="c"></div>
+ </div>
+ </td>
+ <td class="control">
+ <div class="a"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ <div class="d"></div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="006.html">test 006</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/017-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/017-expected.txt
new file mode 100644
index 0000000..838020d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/017-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x196
+ RenderBlock {HTML} at (0,0) size 800x196
+ RenderBody {BODY} at (8,14) size 784x168
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 665x17
+ text run at (0,0) width 665: "The following square should contain exactly two bands, one yellow, one lime, with no red visible."
+ RenderTable {TABLE} at (0,31) size 106x106 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x100 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x100 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderTableCell {TD} at (50,0) size 50x100 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,50) size 50x50
+ RenderBlock {P} at (0,151) size 784x17
+ RenderText {TEXT} at (0,0) size 285x17
+ text run at (0,0) width 285: "This test is meaningless if you don't pass "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (285,0) size 57x17
+ text run at (285,0) width 57: "test 018"
+ RenderText {TEXT} at (342,0) size 5x17
+ text run at (342,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/017.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/017.html
new file mode 100644
index 0000000..989e76f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/017.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (height)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
+ td { padding: 0; width: 1em; }
+ /* test */
+ .test .a { background: red; margin: 0; height: 1em; }
+ .test .aa { background: yellow; margin: 0 0 1em 0; height: 1em; }
+ .test .b { background: lime; margin: 0; height: 1em; }
+ /* control */
+ .control .a { border-top: 1em yellow solid; }
+ .control .b { border-top: 1em lime solid; }
+ </style>
+ </head>
+ <body>
+ <p>The following square should contain exactly two bands, one yellow, one lime, with no red visible.</p>
+ <table>
+ <tr>
+ <td class="test">
+ <div class="a">
+ <div class="aa"></div>
+ </div>
+ <div class="b"></div>
+ </td>
+ <td class="control">
+ <div class="a"></div>
+ <div class="b"></div>
+ </td>
+ </tr>
+ </table>
+ <p>This test is meaningless if you don't pass <a href="018.html">test 018</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/018-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/018-expected.txt
new file mode 100644
index 0000000..0ce4763
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/018-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x226
+ RenderBlock {HTML} at (0,0) size 800x226
+ RenderBody {BODY} at (8,14) size 784x204
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 675x17
+ text run at (0,0) width 675: "The following box should contain exactly three bands, one yellow, one orange, and one lime, with "
+ RenderInline {STRONG} at (0,0) size 774x34
+ RenderText {TEXT} at (675,0) size 774x34
+ text run at (675,0) width 99: "absolutely no"
+ text run at (0,17) width 77: "red visible"
+ RenderText {TEXT} at (77,17) size 5x17
+ text run at (77,17) width 5: "."
+ RenderTable {TABLE} at (0,48) size 106x156 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x150 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x150 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x150 [bgcolor=#FFA500]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,100) size 50x50 [bgcolor=#00FF00]
+ RenderTableCell {TD} at (50,0) size 50x150 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,50) size 50x50
+ RenderBlock {DIV} at (0,100) size 50x50
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/018.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/018.html
new file mode 100644
index 0000000..5faaf4f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/018.html
@@ -0,0 +1,39 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (height)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
+ td { padding: 0; width: 1em; }
+ /* test */
+ .test .outer { background: orange; }
+ .test .a { background: red; margin: 0; height: auto; }
+ .test .aa { background: yellow; margin: 0 0 1em 0; height: 1em; }
+ .test .b { background: lime; margin: 0; height: 1em; }
+ /* control */
+ .control .a { border-top: 1em yellow solid; }
+ .control .b { border-top: 1em orange solid; }
+ .control .c { border-top: 1em lime solid; }
+ </style>
+ </head>
+ <body>
+ <p>The following box should contain exactly three bands, one yellow, one orange, and one lime, with <strong>absolutely no red visible</strong>.</p>
+ <table>
+ <tr>
+ <td class="test">
+ <div class="outer">
+ <div class="a">
+ <div class="aa"></div>
+ </div>
+ <div class="b"></div>
+ </div>
+ </td>
+ <td class="control">
+ <div class="a"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/019-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/019-expected.txt
new file mode 100644
index 0000000..c112111
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/019-expected.txt
@@ -0,0 +1,31 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x196
+ RenderBlock {HTML} at (0,0) size 800x196
+ RenderBody {BODY} at (8,14) size 784x168
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 254x17
+ text run at (0,0) width 254: "There should be no red on this page."
+ RenderTable {TABLE} at (0,31) size 156x106 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x100 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x100 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x55 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,55) size 50x45 [bgcolor=#00FF00]
+ RenderTableCell {TD} at (50,0) size 50x100 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#00FF00]
+ RenderTableCell {TD} at (100,0) size 50x100 [r=0 c=2 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x45 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,45) size 50x55 [bgcolor=#00FF00]
+ RenderBlock {P} at (0,151) size 784x17
+ RenderText {TEXT} at (0,0) size 65x17
+ text run at (0,0) width 65: "See also: "
+ RenderInline {A} at (0,0) size 82x17 [color=#0000EE]
+ RenderText {TEXT} at (65,0) size 82x17
+ text run at (65,0) width 82: "prerequisite"
+ RenderText {TEXT} at (147,0) size 5x17
+ text run at (147,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/019.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/019.html
new file mode 100644
index 0000000..bf8ccbc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/019.html
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (height)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
+ td { padding: 0; width: 1em; }
+
+ div { background: lime; }
+
+ .a .container { height: 1em; height: 1.1em; }
+ .a .sized { height: 1.0em; margin: 0 0 1em 0; }
+ .a .after { height: 0.9em; }
+
+ .b .container { height: 1em; height: 1.0em; }
+ .b .sized { height: 1.0em; margin: 0 0 1em 0; }
+ .b .after { height: 1.0em; }
+
+ .c .container { height: 1em; height: 0.9em; }
+ .c .sized { height: 1.0em; margin: 0 0 1em 0; }
+ .c .after { height: 1.1em; }
+
+ </style>
+ </head>
+ <body>
+ <p>There should be no red on this page.</p>
+ <table>
+ <tr>
+ <td class="a">
+ <div class="container">
+ <div class="sized"></div>
+ </div>
+ <div class="after"></div>
+ </td>
+ <td class="b">
+ <div class="container">
+ <div class="sized"></div>
+ </div>
+ <div class="after"></div>
+ </td>
+ <td class="c">
+ <div class="container">
+ <div class="sized"></div>
+ </div>
+ <div class="after"></div>
+ </td>
+ </tr>
+ </table>
+ <p>See also: <a href="http://www.hixie.ch/tests/adhoc/css/box/block/height/002.html">prerequisite</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/020-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/020-expected.txt
new file mode 100644
index 0000000..9f2012f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/020-expected.txt
@@ -0,0 +1,31 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x246
+ RenderBlock {HTML} at (0,0) size 800x246
+ RenderBody {BODY} at (8,14) size 784x218
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 254x17
+ text run at (0,0) width 254: "There should be no red on this page."
+ RenderTable {TABLE} at (0,31) size 156x156 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (3,3) size 0x150 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 50x150 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x105 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,105) size 50x45 [bgcolor=#00FF00]
+ RenderTableCell {TD} at (50,0) size 50x150 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x100 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,100) size 50x50 [bgcolor=#00FF00]
+ RenderTableCell {TD} at (100,0) size 50x150 [r=0 c=2 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 50x95 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 50x50
+ RenderBlock {DIV} at (0,95) size 50x55 [bgcolor=#00FF00]
+ RenderBlock {P} at (0,201) size 784x17
+ RenderText {TEXT} at (0,0) size 65x17
+ text run at (0,0) width 65: "See also: "
+ RenderInline {A} at (0,0) size 82x17 [color=#0000EE]
+ RenderText {TEXT} at (65,0) size 82x17
+ text run at (65,0) width 82: "prerequisite"
+ RenderText {TEXT} at (147,0) size 5x17
+ text run at (147,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/020.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/020.html
new file mode 100644
index 0000000..3059629
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/020.html
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (height)</title>
+ <style type="text/css">
+ table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
+ td { padding: 0; width: 1em; }
+
+ div { background: lime; }
+
+ .a .container { height: 1em; height: 2.1em; }
+ .a .sized { height: 1.0em; margin: 0 0 1em 0; }
+ .a .after { height: 0.9em; }
+
+ .b .container { height: 1em; height: 2.0em; }
+ .b .sized { height: 1.0em; margin: 0 0 1em 0; }
+ .b .after { height: 1.0em; }
+
+ .c .container { height: 1em; height: 1.9em; }
+ .c .sized { height: 1.0em; margin: 0 0 1em 0; }
+ .c .after { height: 1.1em; }
+
+ </style>
+ </head>
+ <body>
+ <p>There should be no red on this page.</p>
+ <table>
+ <tr>
+ <td class="a">
+ <div class="container">
+ <div class="sized"></div>
+ </div>
+ <div class="after"></div>
+ </td>
+ <td class="b">
+ <div class="container">
+ <div class="sized"></div>
+ </div>
+ <div class="after"></div>
+ </td>
+ <td class="c">
+ <div class="container">
+ <div class="sized"></div>
+ </div>
+ <div class="after"></div>
+ </td>
+ </tr>
+ </table>
+ <p>See also: <a href="019.html">prerequisite</a>.</p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/021-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/021-expected.txt
new file mode 100644
index 0000000..fbc9b02
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/021-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x193
+ RenderBlock {HTML} at (0,0) size 800x193
+ RenderBody {BODY} at (8,14) size 784x171
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two squares should be identical."
+ RenderTable {TABLE} at (0,31) size 266x140
+ RenderTableSection {TBODY} at (0,0) size 0x140
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,14) size 112x112 [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x112 [bgcolor=#00FF00]
+ RenderBlock (floating) {DIV} at (0,0) size 56x56 [bgcolor=#00FFFF]
+ RenderBlock (anonymous) at (0,0) size 112x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,56) size 112x56 [bgcolor=#000000]
+ RenderTableCell {TD} at (140,14) size 112x112 [bgcolor=#FF0000] [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (0,0) size 112x112 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x112
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,28) size 56x0 [bgcolor=#00FFFF] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (56,28) size 56x0 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,84) size 112x0 [bgcolor=#FFFF00] [r=1 c=0 rs=1 cs=2]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/021.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/021.html
new file mode 100644
index 0000000..5eba388a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/021.html
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: clear (control: no margins)</title>
+ <style type="text/css">
+ table, td { padding: 0; border-spacing: 0; }
+ .comparator { border-spacing: 1em; }
+ .test, .control { border: solid; background: red; }
+ .test .container { display: block; margin: 0; width: 8em; background: lime; }
+ .test .float { float: left; margin: 0; height: 4em; width: 4em; background: aqua; }
+ .test .clear { clear: left; display: block; border: 2em solid yellow; margin: 0; }
+ .control .square { height: 4em; width: 4em; }
+ .control .rectangle { height: 4em; width: 8em; }
+ .control .lime { background: lime; }
+ .control .aqua { background: aqua; }
+ .control .yellow { background: yellow; }
+ </style>
+ </head>
+ <body>
+ <p>The following two squares should be identical.</p>
+ <table class="comparator">
+ <tr>
+ <td class="test">
+ <div class="container">
+ <div class="float"> </div>
+ <div class="clear"> </div>
+ </div>
+ </td>
+ <td class="control">
+ <table>
+ <tr>
+ <td class="square aqua"></td>
+ <td class="square lime"></td>
+ </tr>
+ <tr>
+ <td colspan="2" class="rectangle yellow"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/022-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/022-expected.txt
new file mode 100644
index 0000000..fbc9b02
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/022-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x193
+ RenderBlock {HTML} at (0,0) size 800x193
+ RenderBody {BODY} at (8,14) size 784x171
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two squares should be identical."
+ RenderTable {TABLE} at (0,31) size 266x140
+ RenderTableSection {TBODY} at (0,0) size 0x140
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,14) size 112x112 [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x112 [bgcolor=#00FF00]
+ RenderBlock (floating) {DIV} at (0,0) size 56x56 [bgcolor=#00FFFF]
+ RenderBlock (anonymous) at (0,0) size 112x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,56) size 112x56 [bgcolor=#000000]
+ RenderTableCell {TD} at (140,14) size 112x112 [bgcolor=#FF0000] [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (0,0) size 112x112 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x112
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,28) size 56x0 [bgcolor=#00FFFF] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (56,28) size 56x0 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,84) size 112x0 [bgcolor=#FFFF00] [r=1 c=0 rs=1 cs=2]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/022.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/022.html
new file mode 100644
index 0000000..afdd7ee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/022.html
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: clear (simple)</title>
+ <style type="text/css">
+ table, td { padding: 0; border-spacing: 0; }
+ .comparator { border-spacing: 1em; }
+ .test, .control { border: solid; background: red; }
+ .test .container { display: block; margin: 0; width: 8em; background: lime; }
+ .test .float { float: left; margin: 0; height: 4em; width: 4em; background: aqua; }
+ .test .clear { clear: left; display: block; border: 2em solid yellow; margin-top: 1em; }
+ .control .square { height: 4em; width: 4em; }
+ .control .rectangle { height: 4em; width: 8em; }
+ .control .lime { background: lime; }
+ .control .aqua { background: aqua; }
+ .control .yellow { background: yellow; }
+ </style>
+ </head>
+ <body>
+ <p>The following two squares should be identical.</p>
+ <table class="comparator">
+ <tr>
+ <td class="test">
+ <div class="container">
+ <div class="float"> </div>
+ <div class="clear"> </div>
+ </div>
+ </td>
+ <td class="control">
+ <table>
+ <tr>
+ <td class="square aqua"></td>
+ <td class="square lime"></td>
+ </tr>
+ <tr>
+ <td colspan="2" class="rectangle yellow"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/023-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/023-expected.txt
new file mode 100644
index 0000000..f2c8985
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/023-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x193
+ RenderBlock {HTML} at (0,0) size 800x193
+ RenderBody {BODY} at (8,14) size 784x171
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two squares should be identical."
+ RenderTable {TABLE} at (0,31) size 266x140
+ RenderTableSection {TBODY} at (0,0) size 0x140
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,14) size 112x112 [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x112 [bgcolor=#00FF00]
+ RenderBlock (floating) {DIV} at (0,0) size 56x56 [bgcolor=#00FFFF]
+ RenderBlock (anonymous) at (0,0) size 112x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 112x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,56) size 112x56 [bgcolor=#000000]
+ RenderTableCell {TD} at (140,14) size 112x112 [bgcolor=#FF0000] [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (0,0) size 112x112 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x112
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,28) size 56x0 [bgcolor=#00FFFF] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (56,28) size 56x0 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,84) size 112x0 [bgcolor=#FFFF00] [r=1 c=0 rs=1 cs=2]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/023.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/023.html
new file mode 100644
index 0000000..950d10a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/023.html
@@ -0,0 +1,45 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: clear (simple)</title>
+ <style type="text/css">
+ table, td { padding: 0; border-spacing: 0; }
+ .comparator { border-spacing: 1em; }
+ .test, .control { border: solid; background: red; }
+ .test .container { display: block; margin: 0; width: 8em; background: lime; }
+ .test .float { float: left; margin: 0; height: 4em; width: 4em; background: aqua; }
+ .test .empty { display: block; background: red; margin: 1em 0; }
+ .test .clear { clear: left; display: block; border: 2em solid yellow; margin-top: 1em; }
+ .control .square { height: 4em; width: 4em; }
+ .control .rectangle { height: 4em; width: 8em; }
+ .control .lime { background: lime; }
+ .control .aqua { background: aqua; }
+ .control .yellow { background: yellow; }
+ </style>
+ </head>
+ <body>
+ <p>The following two squares should be identical.</p>
+ <table class="comparator">
+ <tr>
+ <td class="test">
+ <div class="container">
+ <div class="float"> </div>
+ <div class="empty"> </div>
+ <div class="clear"> </div>
+ </div>
+ </td>
+ <td class="control">
+ <table>
+ <tr>
+ <td class="square aqua"></td>
+ <td class="square lime"></td>
+ </tr>
+ <tr>
+ <td colspan="2" class="rectangle yellow"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/024-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/024-expected.txt
new file mode 100644
index 0000000..90708f8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/024-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x193
+ RenderBlock {HTML} at (0,0) size 800x193
+ RenderBody {BODY} at (8,14) size 784x171
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two squares should be identical."
+ RenderTable {TABLE} at (0,31) size 266x140
+ RenderTableSection {TBODY} at (0,0) size 0x140
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,14) size 112x112 [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x112 [bgcolor=#00FF00]
+ RenderBlock (floating) {DIV} at (0,0) size 56x56 [bgcolor=#00FFFF]
+ RenderBlock (anonymous) at (0,0) size 112x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,56) size 112x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,56) size 112x56 [bgcolor=#000000]
+ RenderTableCell {TD} at (140,14) size 112x112 [bgcolor=#FF0000] [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (0,0) size 112x112 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x112
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,28) size 56x0 [bgcolor=#00FFFF] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (56,28) size 56x0 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,84) size 112x0 [bgcolor=#FFFF00] [r=1 c=0 rs=1 cs=2]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/024.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/024.html
new file mode 100644
index 0000000..32c28a7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/024.html
@@ -0,0 +1,45 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: clear (hard)</title>
+ <style type="text/css">
+ table, td { padding: 0; border-spacing: 0; }
+ .comparator { border-spacing: 1em; }
+ .test, .control { border: solid; background: red; }
+ .test .container { display: block; margin: 0; width: 8em; background: lime; }
+ .test .float { float: left; margin: 0; height: 4em; width: 4em; background: aqua; }
+ .test .clear { clear: left; display: block; background: red; }
+ .test .block { display: block; margin: 1em 0 0; border: 2em solid yellow; }
+ .control .square { height: 4em; width: 4em; }
+ .control .rectangle { height: 4em; width: 8em; }
+ .control .lime { background: lime; }
+ .control .aqua { background: aqua; }
+ .control .yellow { background: yellow; }
+ </style>
+ </head>
+ <body>
+ <p>The following two squares should be identical.</p>
+ <table class="comparator">
+ <tr>
+ <td class="test">
+ <div class="container">
+ <div class="float"> </div>
+ <div class="clear"> </div>
+ <div class="block"> </div>
+ </div>
+ </td>
+ <td class="control">
+ <table>
+ <tr>
+ <td class="square aqua"></td>
+ <td class="square lime"></td>
+ </tr>
+ <tr>
+ <td colspan="2" class="rectangle yellow"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/025-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/025-expected.txt
new file mode 100644
index 0000000..90708f8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/025-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x193
+ RenderBlock {HTML} at (0,0) size 800x193
+ RenderBody {BODY} at (8,14) size 784x171
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two squares should be identical."
+ RenderTable {TABLE} at (0,31) size 266x140
+ RenderTableSection {TBODY} at (0,0) size 0x140
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,14) size 112x112 [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x112 [bgcolor=#00FF00]
+ RenderBlock (floating) {DIV} at (0,0) size 56x56 [bgcolor=#00FFFF]
+ RenderBlock (anonymous) at (0,0) size 112x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,56) size 112x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,56) size 112x56 [bgcolor=#000000]
+ RenderTableCell {TD} at (140,14) size 112x112 [bgcolor=#FF0000] [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (0,0) size 112x112 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x112
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,28) size 56x0 [bgcolor=#00FFFF] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (56,28) size 56x0 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,84) size 112x0 [bgcolor=#FFFF00] [r=1 c=0 rs=1 cs=2]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/025.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/025.html
new file mode 100644
index 0000000..96ffc88
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/025.html
@@ -0,0 +1,45 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: clear (hard)</title>
+ <style type="text/css">
+ table, td { padding: 0; border-spacing: 0; }
+ .comparator { border-spacing: 1em; }
+ .test, .control { border: solid; background: red; }
+ .test .container { display: block; margin: 0; width: 8em; background: lime; }
+ .test .float { float: left; margin: 0; height: 4em; width: 4em; background: aqua; }
+ .test .clear { clear: left; display: block; background: red; margin: 1em 0; }
+ .test .block { display: block; margin: 1em 0 0; border: 2em solid yellow; }
+ .control .square { height: 4em; width: 4em; }
+ .control .rectangle { height: 4em; width: 8em; }
+ .control .lime { background: lime; }
+ .control .aqua { background: aqua; }
+ .control .yellow { background: yellow; }
+ </style>
+ </head>
+ <body>
+ <p>The following two squares should be identical.</p>
+ <table class="comparator">
+ <tr>
+ <td class="test">
+ <div class="container">
+ <div class="float"> </div>
+ <div class="clear"> </div>
+ <div class="block"> </div>
+ </div>
+ </td>
+ <td class="control">
+ <table>
+ <tr>
+ <td class="square aqua"></td>
+ <td class="square lime"></td>
+ </tr>
+ <tr>
+ <td colspan="2" class="rectangle yellow"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/026-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/026-expected.txt
new file mode 100644
index 0000000..087292c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/026-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x81
+ RenderBlock {HTML} at (0,0) size 800x81
+ RenderBody {BODY} at (8,14) size 784x59
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,31) size 784x28 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 784x14 [bgcolor=#000000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/026.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/026.html
new file mode 100644
index 0000000..8806b6b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/026.html
@@ -0,0 +1,16 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: negative margins (easy)</title>
+ <style type="text/css">
+ .container { background: red; height: auto; border-top: 1em red solid; border-bottom: 1em lime solid; }
+ .test { border-top: 1em solid lime; margin-top: -1em; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div class="container">
+ <div class="test"></div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/027-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/027-expected.txt
new file mode 100644
index 0000000..6c012db
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/027-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x95
+ RenderBlock {HTML} at (0,0) size 800x95
+ RenderBody {BODY} at (8,14) size 784x73
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,31) size 784x42 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,14) size 784x14 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,14) size 784x14 [bgcolor=#000000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/027.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/027.html
new file mode 100644
index 0000000..6c62f11
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/027.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: negative margins (easy)</title>
+ <style type="text/css">
+ .container { background: red; height: auto; border-top: 1em lime solid; border-bottom: 1em lime solid; }
+ .red { border-top: 1em solid red; }
+ .lime { border-top: 1em solid lime; margin-top: -1em; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div class="container">
+ <div class="red"></div>
+ <div class="lime"></div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/028-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/028-expected.txt
new file mode 100644
index 0000000..31a3b3b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/028-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x81
+ RenderBlock {HTML} at (0,0) size 800x81
+ RenderBody {BODY} at (8,14) size 784x59
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,31) size 784x28 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (14,28) size 756x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 756x0
+ RenderBlock {DIV} at (0,0) size 756x0
+ RenderBlock {DIV} at (14,14) size 756x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 756x0
+ RenderBlock {DIV} at (0,0) size 756x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/028.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/028.html
new file mode 100644
index 0000000..2b19400
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/028.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: negative margins (easy)</title>
+ <style type="text/css">
+ .container { background: red; height: auto; border: 1em lime solid; }
+ .a { margin-top: 1em; margin-bottom: 1em; }
+ .b { margin-top: 1em; margin-bottom: 1em; }
+ .c { margin-top: 1em; margin-bottom: 1em; }
+ .d { margin-top: 1em; margin-bottom: 1em; }
+ .e { margin-top: 1em; margin-bottom: -1em; }
+ .f { margin-top: 1em; margin-bottom: 1em; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div class="container">
+ <div class="a">
+ <div class="b"> </div>
+ <div class="c"> </div>
+ </div>
+ <div class="d">
+ <div class="e"> </div>
+ <div class="f"> </div>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/029-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/029-expected.txt
new file mode 100644
index 0000000..db1fe0c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/029-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x81
+ RenderBlock {HTML} at (0,0) size 800x81
+ RenderBody {BODY} at (8,14) size 784x59
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,31) size 784x28 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (14,14) size 756x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 756x0
+ RenderBlock {DIV} at (0,0) size 756x0
+ RenderBlock {DIV} at (14,14) size 756x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 756x0
+ RenderBlock {DIV} at (0,0) size 756x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/029.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/029.html
new file mode 100644
index 0000000..4f68fe5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/029.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: negative margins (easy)</title>
+ <style type="text/css">
+ .container { background: red; height: auto; border: 1em lime solid; }
+ .a { margin-top: -1em; margin-bottom: 1em; }
+ .b { margin-top: 1em; margin-bottom: 1em; }
+ .c { margin-top: 1em; margin-bottom: 1em; }
+ .d { margin-top: 1em; margin-bottom: 1em; }
+ .e { margin-top: 1em; margin-bottom: 1em; }
+ .f { margin-top: 1em; margin-bottom: 1em; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div class="container">
+ <div class="a">
+ <div class="b"> </div>
+ <div class="c"> </div>
+ </div>
+ <div class="d">
+ <div class="e"> </div>
+ <div class="f"> </div>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/030-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/030-expected.txt
new file mode 100644
index 0000000..5122993
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/030-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x112
+ RenderBlock {HTML} at (0,0) size 800x112
+ RenderBody {BODY} at (8,8) size 784x96
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,62) size 76x34 [bgcolor=#FF0000]
+ RenderBlock {P} at (3,3) size 70x0 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 70x14
+ text run at (0,0) width 70: "XXXXX"
+ RenderBlock {P} at (3,17) size 70x14 [bgcolor=#00FF00]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/030.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/030.html
new file mode 100644
index 0000000..11da88b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/030.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: negative margins (easy)</title>
+ <style type="text/css">
+ .ahem { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .test { border: solid; background: red; width: 5em; font: 1em/1em Ahem; }
+ .test .a { height: 0; margin: 0 0 1em 0; background: red; color: lime; }
+ .test .b { height: 1em; margin: 1em 0 0 0; background: lime; }
+ </style>
+ </head>
+ <body>
+ <div class="ahem">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below.</p>
+
+ <div class="test">
+ <p class="a">XXXXX</p>
+ <p class="b"></p>
+ </div>
+
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/031-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/031-expected.txt
new file mode 100644
index 0000000..624a7a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/031-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x256
+ RenderBlock {HTML} at (0,0) size 800x256
+ RenderBody {BODY} at (8,8) size 784x208
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 306x17
+ text run at (0,0) width 306: "There should be a big square green H below:"
+ RenderBlock {DIV} at (40,88) size 120x120 [bgcolor=#008000]
+ RenderBlock {DIV} at (40,0) size 40x40 [color=#FFFFFF] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 40x40
+ text run at (0,0) width 40: "X"
+ RenderBlock {DIV} at (40,80) size 40x40 [color=#FFFFFF] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 40x40
+ text run at (0,0) width 40: "X"
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/031.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/031.html
new file mode 100644
index 0000000..dd3bd8c5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/031.html
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: in flow (simple)</title>
+ <style type="text/css">
+ .ahem { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ /* test */
+ .test { margin: 1em; background: green; font: 40px/1 Ahem; width: 3em; }
+ .test div { color: white; margin: 1em; }
+ </style>
+ </head>
+ <body>
+ <div class="ahem">Ahem_font_required_for_this_test.</div>
+ <p>There should be a big square green H below:</p>
+ <div class="test">
+ <div>X</div>
+ <div>X</div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/032-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/032-expected.txt
new file mode 100644
index 0000000..5991ca0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/032-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x123
+ RenderBlock {HTML} at (0,0) size 800x123
+ RenderBody {BODY} at (8,14) size 784x101
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two squares should be identical."
+ RenderTable {TABLE} at (0,31) size 266x70
+ RenderTableSection {TBODY} at (0,0) size 0x70
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,14) size 112x42 [bgcolor=#00FF00] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,28) size 112x14 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (0,0) size 112x14 [bgcolor=#FFFF00]
+ RenderBlock (anonymous) at (0,0) size 112x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 112x14
+ RenderTableCell {TD} at (140,14) size 112x42 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x28 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,28) size 112x14 [bgcolor=#000000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/032.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/032.html
new file mode 100644
index 0000000..6530ff0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/032.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: float positioning</title>
+ <style type="text/css">
+ table, td { padding: 0; border-spacing: 0; }
+ .comparator { border-spacing: 1em; }
+ .test, .control { border: solid; background: lime; }
+
+ .test .container { display: block; margin: 1em 0 0 0; width: 8em; background: red; }
+ .test .float { float: left; margin: 0; height: 1em; width: 8em; background: yellow; }
+ .test .block { display: block; margin: 2em 0 0 0; height: 1em; background: red; }
+
+ .control .lime { border-top: 2em solid lime; width: 8em; }
+ .control .yellow { border-top: 1em solid yellow; }
+
+ </style>
+ </head>
+ <body>
+ <p>The following two squares should be identical.</p>
+ <table class="comparator">
+ <tr>
+ <td class="test">
+ <div class="container">
+ <div class="float"> </div>
+ <div class="block"> </div>
+ </div>
+ </td>
+ <td class="control">
+ <div class="lime"> </div>
+ <div class="yellow"> </div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/033-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/033-expected.txt
new file mode 100644
index 0000000..32c1963
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/033-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x137
+ RenderBlock {HTML} at (0,0) size 800x137
+ RenderBody {BODY} at (8,14) size 784x115
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two squares should be identical."
+ RenderTable {TABLE} at (0,31) size 266x84
+ RenderTableSection {TBODY} at (0,0) size 0x84
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,14) size 112x56 [bgcolor=#00FF00] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x14 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,42) size 112x14 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (0,0) size 112x14 [bgcolor=#FFFF00]
+ RenderBlock (anonymous) at (0,0) size 112x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 112x14
+ RenderTableCell {TD} at (140,14) size 112x56 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x14 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,14) size 112x28 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,42) size 112x14 [bgcolor=#000000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/033.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/033.html
new file mode 100644
index 0000000..c4eff18
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/033.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: float positioning</title>
+ <style type="text/css">
+ table, td { padding: 0; border-spacing: 0; }
+ .comparator { border-spacing: 1em; }
+ .test, .control { border: solid; background: lime; }
+
+ .test .top { display: block; margin: 0; height: 1em; width: 8em; background: yellow; }
+ .test .container { display: block; margin: 1em 0 0 0; width: 8em; background: red; }
+ .test .float { float: left; margin: 0; height: 1em; width: 8em; background: yellow; }
+ .test .block { display: block; margin: 2em 0 0 0; height: 1em; background: red; }
+
+ .control .lime { border-top: 2em solid lime; width: 8em; }
+ .control .yellow { border-top: 1em solid yellow; }
+ </style>
+ </head>
+ <body>
+ <p>The following two squares should be identical.</p>
+ <table class="comparator">
+ <tr>
+ <td class="test">
+
+ <div class="top"> </div>
+ <div class="container">
+ <div class="float"> </div>
+ <div class="block"> </div>
+ </div>
+
+ </td>
+ <td class="control">
+ <div class="yellow"> </div>
+ <div class="lime"> </div>
+ <div class="yellow"> </div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/034-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/034-expected.txt
new file mode 100644
index 0000000..ed938a0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/034-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x179
+ RenderBlock {HTML} at (0,0) size 800x179
+ RenderBody {BODY} at (8,14) size 784x157
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 489x17
+ text run at (0,0) width 489: "The following three rectangles should be identical, with no red present."
+ RenderTable {TABLE} at (0,31) size 266x126
+ RenderTableSection {TBODY} at (0,0) size 0x126
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,14) size 112x42 [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x42 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,0) size 112x14 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,28) size 112x14 [bgcolor=#000000]
+ RenderTableCell {TD} at (140,14) size 112x42 [bgcolor=#FF0000] [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x14 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,14) size 112x14 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,28) size 112x14 [bgcolor=#008000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,70) size 112x42 [bgcolor=#FF0000] [r=1 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x14 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,14) size 112x14 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,28) size 112x14 [bgcolor=#008000]
+ RenderTableCell {TD} at (140,91) size 112x0 [r=1 c=1 rs=1 cs=1]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/034.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/034.html
new file mode 100644
index 0000000..8c91ff4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/034.html
@@ -0,0 +1,46 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: clear with no floats</title>
+ <style type="text/css">
+ table, td { padding: 0; border-spacing: 0; }
+ .comparator { border-spacing: 1em; }
+ .test, .control { border: solid; background: red; }
+
+ .test .container { display: block; background: yellow; margin: 0; width: 8em; }
+ .test .block { display: block; border-top: 1em solid lime; margin: 0 0 0 0; }
+ .test .clear { display: block; border-top: 1em solid green; margin: 1em 0 0 0; clear: right; }
+
+ .control .lime { background: lime; height: 1em; width: 8em; }
+ .control .yellow { background: yellow; height: 1em; width: 8em; }
+ .control .green { background: green; height: 1em; width: 8em; }
+
+ </style>
+ </head>
+ <body>
+ <p>The following three rectangles should be identical, with no red present.</p>
+ <table class="comparator">
+ <tr>
+ <td class="test">
+ <div class="container">
+ <div class="block"> </div>
+ <div class="clear"> </div>
+ </div>
+ </td>
+ <td class="control">
+ <div class="lime"> </div>
+ <div class="yellow"> </div>
+ <div class="green"> </div>
+ </td>
+ </tr>
+ <tr>
+ <td class="control">
+ <div class="lime"> </div>
+ <div class="yellow"> </div>
+ <div class="green"> </div>
+ </td>
+ <td></td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/035-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/035-expected.txt
new file mode 100644
index 0000000..31a3b3b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/035-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x81
+ RenderBlock {HTML} at (0,0) size 800x81
+ RenderBody {BODY} at (8,14) size 784x59
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,31) size 784x28 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (14,28) size 756x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 756x0
+ RenderBlock {DIV} at (0,0) size 756x0
+ RenderBlock {DIV} at (14,14) size 756x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 756x0
+ RenderBlock {DIV} at (0,0) size 756x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/035.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/035.html
new file mode 100644
index 0000000..4375fc9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/035.html
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: negative margins with clear</title>
+ <style type="text/css">
+ .container { background: red; height: auto; border: 1em lime solid; }
+ div { clear: both; }
+ .a { margin-top: 1em; margin-bottom: 1em; }
+ .b { margin-top: 1em; margin-bottom: 1em; }
+ .c { margin-top: 1em; margin-bottom: 1em; }
+ .d { margin-top: 1em; margin-bottom: 1em; }
+ .e { margin-top: 1em; margin-bottom: -1em; }
+ .f { margin-top: 1em; margin-bottom: 1em; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div class="container">
+ <div class="a">
+ <div class="b"> </div>
+ <div class="c"> </div>
+ </div>
+ <div class="d">
+ <div class="e"> </div>
+ <div class="f"> </div>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/037-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/037-expected.txt
new file mode 100644
index 0000000..d52ffbe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/037-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x154
+ RenderBlock {HTML} at (0,0) size 800x154
+ RenderBody {BODY} at (8,70) size 784x76
+ RenderBlock {DIV} at (0,0) size 784x14 [color=#FF0000]
+ RenderText {TEXT} at (0,0) size 70x14
+ text run at (0,0) width 70: "XXXXX"
+ RenderBlock {P} at (0,28) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red above."
+ RenderBlock (anonymous) at (0,59) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 70x14 backgroundClip at (8,70) size 70x14
+ RenderBlock (positioned) {DIV} at (0,0) size 70x14 [color=#008000]
+ RenderText {TEXT} at (0,0) size 70x14
+ text run at (0,0) width 70: "XXXXX"
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/037.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/037.html
new file mode 100644
index 0000000..7e2ffed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/037.html
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: margins on relative boxes</title>
+ <style type="text/css">
+ .ahem { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ div { font: 1em/1 Ahem, sans-serif; }
+ .relative { position: relative; margin: 0 0 5em 0; }
+ .absolute { position: absolute; margin: 0; top: 0; left: 0; color: green; }
+ .static { position: static; margin: 0; color: red; }
+ </style>
+ </head>
+ <body>
+ <div class="relative">
+ <div class="absolute">
+ XXXXX
+ </div>
+ </div>
+ <div class="static">
+ XXXXX
+ </div>
+ <p>There should be no red above.</p>
+ <div class="ahem">Ahem_font_required_for_this_test.</div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/038-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/038-expected.txt
new file mode 100644
index 0000000..d52ffbe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/038-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x154
+ RenderBlock {HTML} at (0,0) size 800x154
+ RenderBody {BODY} at (8,70) size 784x76
+ RenderBlock {DIV} at (0,0) size 784x14 [color=#FF0000]
+ RenderText {TEXT} at (0,0) size 70x14
+ text run at (0,0) width 70: "XXXXX"
+ RenderBlock {P} at (0,28) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red above."
+ RenderBlock (anonymous) at (0,59) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 70x14 backgroundClip at (8,70) size 70x14
+ RenderBlock (positioned) {DIV} at (0,0) size 70x14 [color=#008000]
+ RenderText {TEXT} at (0,0) size 70x14
+ text run at (0,0) width 70: "XXXXX"
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/038.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/038.html
new file mode 100644
index 0000000..70d84b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/038.html
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: margins on relative boxes</title>
+ <style type="text/css">
+ .ahem { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ div { font: 1em/1 Ahem, sans-serif; }
+ .relative { position: relative; margin: 0 0 5em 0; }
+ .absolute { position: absolute; margin: 0; top: 0; left: 0; color: green; }
+ .static { position: static; margin: 3em 0 0 0; color: red; }
+ </style>
+ </head>
+ <body>
+ <div class="relative">
+ <div class="absolute">
+ XXXXX
+ </div>
+ </div>
+ <div class="static">
+ XXXXX
+ </div>
+ <p>There should be no red above.</p>
+ <div class="ahem">Ahem_font_required_for_this_test.</div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/039-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/039-expected.txt
new file mode 100644
index 0000000..0b3bbeb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/039-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x84
+ RenderBlock {HTML} at (0,0) size 800x84
+ RenderBody {BODY} at (8,14) size 784x62
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,45) size 784x17 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17 [color=#FFFFFF] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/039.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/039.html
new file mode 100644
index 0000000..816d813
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/039.html
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: top margins</title>
+ <style type="text/css">
+ .a { margin: 0; background: red; }
+ .b { margin: 2em 0 0 0; background: red; }
+ .c { margin: 1em 0 0 0; background: red; }
+ .d { margin: 0; background: green; color: white; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div class="a">
+ <div class="b">
+ <div class="c">
+ <div class="d">
+ This line should be green.
+ </div>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/040-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/040-expected.txt
new file mode 100644
index 0000000..0b3bbeb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/040-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x84
+ RenderBlock {HTML} at (0,0) size 800x84
+ RenderBody {BODY} at (8,14) size 784x62
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,45) size 784x17 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17 [color=#FFFFFF] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/040.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/040.html
new file mode 100644
index 0000000..e581892
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/040.html
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: top margins</title>
+ <style type="text/css">
+ .a { margin: 0; background: red; }
+ .b { margin: 2em 0 0 0; background: red; }
+ .c { margin: 0; background: red; }
+ .d { margin: 1em 0 0 0; background: green; color: white; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div class="a">
+ <div class="b">
+ <div class="c">
+ <div class="d">
+ This line should be green.
+ </div>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/041-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/041-expected.txt
new file mode 100644
index 0000000..b3c01a0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/041-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x107
+ RenderBlock {HTML} at (0,0) size 800x107
+ RenderBody {BODY} at (8,14) size 784x85
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 296x17
+ text run at (0,0) width 296: "The two boxes below should look identical."
+ RenderTable {TABLE} at (0,31) size 190x54
+ RenderTableSection {TBODY} at (0,0) size 0x54
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 92x50 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (1,1) size 90x48 [bgcolor=#00FFFF]
+ RenderBlock {DIV} at (3,3) size 84x14 [bgcolor=#FF00FF]
+ RenderBlock {DIV} at (3,31) size 84x14 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (0,0) size 42x14 [bgcolor=#FFA500]
+ RenderBlock (anonymous) at (0,0) size 84x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 84x14 [bgcolor=#FFFF00]
+ RenderTableCell {TD} at (96,2) size 92x50 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (1,1) size 90x48
+ RenderBlock {DIV} at (3,3) size 84x14
+ RenderBlock {DIV} at (3,17) size 84x14
+ RenderBlock {DIV} at (3,31) size 84x14
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/041.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/041.html
new file mode 100644
index 0000000..0713834
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/041.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: top margins</title>
+ <style type="text/css">
+ .test { background: aqua; margin: 0; width: 6em; border: solid; }
+ .test .a { height: 1em; background: fuchsia; margin: 0; }
+ .test .b { background: red; margin: 0; }
+ .test .c { float: left; height: 1em; width: 3em; background: orange; margin: 0; }
+ .test .d { height: 1em; background: yellow; margin: 1em 0 0 0; }
+ .control { width: 6em; border: solid; }
+ .control .a { border-top: fuchsia 1em solid; }
+ .control .b { border-top: aqua 1em solid; }
+ .control .c { border-left: orange 3em solid; border-right: yellow 3em solid; height: 1em; }
+ </style>
+ </head>
+ <body>
+ <p>The two boxes below should look identical.</p>
+ <table>
+ <tr>
+ <td>
+ <div class="test">
+ <div class="a"></div>
+ <div class="b">
+ <div class="c"></div>
+ <div class="d"></div>
+ </div>
+ </div>
+ </td>
+ <td>
+ <div class="control">
+ <div class="a"></div>
+ <div class="b"></div>
+ <div class="c"></div>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/042-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/042-expected.txt
new file mode 100644
index 0000000..bde1a24
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/042-expected.txt
@@ -0,0 +1,30 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x305
+ RenderBlock {HTML} at (0,0) size 800x305
+ RenderBody {BODY} at (8,14) size 784x283
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 318x17
+ text run at (0,0) width 318: "The following two squares should be identical."
+ RenderTable {TABLE} at (0,31) size 266x252
+ RenderTableSection {TBODY} at (0,0) size 0x252
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (14,14) size 112x224 [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 112x224 [bgcolor=#00FF00]
+ RenderBlock (floating) {DIV} at (0,0) size 56x56 [bgcolor=#00FFFF]
+ RenderBlock (anonymous) at (0,0) size 112x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,56) size 112x56 [bgcolor=#FFFF00]
+ RenderBlock {DIV} at (0,168) size 112x56 [bgcolor=#000000]
+ RenderTableCell {TD} at (140,14) size 112x224 [bgcolor=#FF0000] [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (0,0) size 112x224 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x224
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,28) size 56x0 [bgcolor=#00FFFF] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (56,28) size 56x0 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,84) size 112x0 [bgcolor=#FFFF00] [r=1 c=0 rs=1 cs=2]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,140) size 112x0 [bgcolor=#00FF00] [r=2 c=0 rs=1 cs=2]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,196) size 112x0 [bgcolor=#AAFFAA] [r=3 c=0 rs=1 cs=2]
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/042.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/042.html
new file mode 100644
index 0000000..31d32e9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/042.html
@@ -0,0 +1,52 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Margin Collapsing: clear (hard)</title>
+ <style type="text/css">
+ table, td { padding: 0; border-spacing: 0; }
+ .comparator { border-spacing: 1em; }
+ .test, .control { border: solid; background: red; }
+ .test .container { display: block; margin: 0; width: 8em; background: lime; }
+ .test .float { float: left; margin: 0; height: 4em; width: 4em; background: aqua; }
+ .test .clear { clear: left; display: block; background: yellow; margin: 4em 0; height: 4em; }
+ .test .block { display: block; margin: 1em 0 0; border: 2em solid #AAFFAA; }
+ .control .square { height: 4em; width: 4em; }
+ .control .rectangle { height: 4em; width: 8em; }
+ .control .AAFFAA { background: #AAFFAA; }
+ .control .lime { background: lime; }
+ .control .aqua { background: aqua; }
+ .control .yellow { background: yellow; }
+ </style>
+ </head>
+ <body>
+ <p>The following two squares should be identical.</p>
+ <table class="comparator">
+ <tr>
+ <td class="test">
+ <div class="container">
+ <div class="float"> </div>
+ <div class="clear"> </div>
+ <div class="block"> </div>
+ </div>
+ </td>
+ <td class="control">
+ <table>
+ <tr>
+ <td class="square aqua"></td>
+ <td class="square lime"></td>
+ </tr>
+ <tr>
+ <td colspan="2" class="rectangle yellow"></td>
+ </tr>
+ <tr>
+ <td colspan="2" class="rectangle lime"></td>
+ </tr>
+ <tr>
+ <td colspan="2" class="rectangle AAFFAA"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/043-expected.txt b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/043-expected.txt
new file mode 100644
index 0000000..65a138a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/043-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x65
+ RenderBlock {HTML} at (0,0) size 800x65
+ RenderBody {BODY} at (8,8) size 784x49 [color=#FFFFFF]
+ RenderBlock {DIV} at (0,0) size 784x32 [bgcolor=#008000]
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 438x17
+ text run at (0,0) width 138: "This div should be 2"
+ text run at (138,0) width 105: "em tall with a 1"
+ text run at (243,0) width 195: "em gap underneath the text."
+ RenderBlock {DIV} at (0,32) size 784x17 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 437x17
+ text run at (0,0) width 437: "I should also be green and flush with the other green div above."
diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/043.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/043.html
new file mode 100644
index 0000000..feecb3b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/043.html
@@ -0,0 +1,9 @@
+<body style="color:white">
+<div style="border-bottom:1px solid black; background-color:green">
+<p>This div should be 2em tall with a 1em gap underneath the text.
+</p>
+</div>
+<div style="background-color:green">
+I should also be green and flush with the other green div above.
+</div>
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/001-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/001-expected.txt
new file mode 100644
index 0000000..f0c7a58
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/001-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x28
+ RenderBlock {HTML} at (0,0) size 800x28
+ RenderBody {BODY} at (0,0) size 800x27 [bgcolor=#000000]
+ RenderBlock {A} at (0,0) size 800x27 [color=#0000EE] [bgcolor=#FF0000]
+ RenderText {TEXT} at (10,5) size 40x17
+ text run at (10,5) width 40: "Home"
+layer at (55,190) size 50x50
+ RenderImage {IMG} at (55,190) size 50x50 [bgcolor=#000000]
+layer at (55,190) size 50x50
+ RenderBlock (positioned) {DIV} at (55,190) size 50x50 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/001.html b/third_party/WebKit/LayoutTests/fast/block/positioning/001.html
new file mode 100644
index 0000000..2aa7e85
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/001.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><title>Pure CSS Popups 2</title>
+
+<style type="text/css">
+<!--
+body {background: black; margin: 0; padding: 0;}
+
+a {display: block; background-color: red;
+ padding: 5px 10px; margin: 0 0 1px; }
+
+img { position:absolute; top: 190px; left: 55px; height: 50px; width: 50px;}
+div { position:absolute; top: 190px; left: 55px; height: 50px; width: 50px; background-color: green; }
+
+-->
+</style></head>
+
+<body>
+
+<a href="http://www.meyerweb.com/">Home<img src="demo2%20Files/home.gif"><div></div></a>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/002-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/002-expected.txt
new file mode 100644
index 0000000..963b750
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/002-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x225
+ RenderBlock {HTML} at (0,0) size 800x133
+ RenderBody {BODY} at (8,8) size 784x117
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (8,25) size 600x200
+ RenderBlock (relative positioned) {DIV} at (0,17) size 300x100 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 600x200 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 300x100
+ text run at (0,0) width 300: "XXX"
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/002.html b/third_party/WebKit/LayoutTests/fast/block/positioning/002.html
new file mode 100644
index 0000000..80104a3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/002.html
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>CSS Block Box Model: block widths with position:relative</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .outer { position: relative; width: 300px; height: 100px; background: red; }
+ .inner { width: 200%; height: 200%; font: 100px/1 Ahem; color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <div class="outer">
+ <div class="inner">XXX</div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/003-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/003-expected.txt
new file mode 100644
index 0000000..27378a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/003-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/003.html b/third_party/WebKit/LayoutTests/fast/block/positioning/003.html
new file mode 100644
index 0000000..cefb194
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/003.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: content should be painted in document order (position: static)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: static;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ margin-top: -100px;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/004-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/004-expected.txt
new file mode 100644
index 0000000..6b2ffd1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/004-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/004.html b/third_party/WebKit/LayoutTests/fast/block/positioning/004.html
new file mode 100644
index 0000000..c08d829
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/004.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: content should be painted in document order (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ margin-top: -100px;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/005-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/005-expected.txt
new file mode 100644
index 0000000..c01a866
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/005-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/005.html b/third_party/WebKit/LayoutTests/fast/block/positioning/005.html
new file mode 100644
index 0000000..fe27394
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/005.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: content should be painted in document order (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/006-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/006-expected.txt
new file mode 100644
index 0000000..c01a866
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/006-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/006.html b/third_party/WebKit/LayoutTests/fast/block/positioning/006.html
new file mode 100644
index 0000000..890f1c1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/006.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: content should be painted in document order (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/007-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/007-expected.txt
new file mode 100644
index 0000000..e731b2d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/007-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+ RenderBlock zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderBlock zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/007.html b/third_party/WebKit/LayoutTests/fast/block/positioning/007.html
new file mode 100644
index 0000000..4039924
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/007.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: z-index does not apply when 'position' is 'static'</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ }
+
+ div#one {
+ background: red;
+ z-index: 2;
+ }
+
+ div#two {
+ background: green;
+ z-index: 1;
+ margin-top: -100px;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/008-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/008-expected.txt
new file mode 100644
index 0000000..bd3cc96
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/008-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/008.html b/third_party/WebKit/LayoutTests/fast/block/positioning/008.html
new file mode 100644
index 0000000..8ce3168
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/008.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: z-index applies when 'position' is 'relative'</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#two {
+ background: green;
+ z-index: 2;
+ }
+
+ div#one, div#three {
+ background: red;
+ z-index: 1;
+ }
+
+ div#two, div#three {
+ margin-top: -100px;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+<div id="three"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/009-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/009-expected.txt
new file mode 100644
index 0000000..e8eb869
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/009-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/009.html b/third_party/WebKit/LayoutTests/fast/block/positioning/009.html
new file mode 100644
index 0000000..8eb3c55
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/009.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: z-index applies when 'position' is 'absolute'</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#two {
+ background: green;
+ z-index: 2;
+ }
+
+ div#one, div#three {
+ background: red;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+<div id="three"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/010-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/010-expected.txt
new file mode 100644
index 0000000..e8eb869
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/010-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/010.html b/third_party/WebKit/LayoutTests/fast/block/positioning/010.html
new file mode 100644
index 0000000..bf3f3f3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/010.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: z-index applies when 'position' is 'fixed'</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#two {
+ background: green;
+ z-index: 2;
+ }
+
+ div#one, div#three {
+ background: red;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+<div id="three"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/011-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/011-expected.txt
new file mode 100644
index 0000000..f2187ec
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/011-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x100
+ RenderBlock {HTML} at (0,0) size 800x100
+ RenderBody {BODY} at (0,0) size 800x100
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/011.html b/third_party/WebKit/LayoutTests/fast/block/positioning/011.html
new file mode 100644
index 0000000..f831f66
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/011.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' stacks by document order (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body, div {
+ margin: 0;
+ border: none;
+ padding: 0;
+ }
+
+ div {
+ height: 100px;
+ width: 100px;
+ }
+
+ div#two {
+ margin-top: -100px;
+ }
+
+ div#two {
+ position: relative;
+ z-index: auto;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/012-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/012-expected.txt
new file mode 100644
index 0000000..ffe66a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/012-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x100
+ RenderBlock {HTML} at (0,0) size 800x100
+ RenderBody {BODY} at (0,0) size 800x100
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/012.html b/third_party/WebKit/LayoutTests/fast/block/positioning/012.html
new file mode 100644
index 0000000..e37269d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/012.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' stacks by document order (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body, div {
+ margin: 0;
+ border: none;
+ padding: 0;
+ }
+
+ div {
+ height: 100px;
+ width: 100px;
+ }
+
+ div#two {
+ top: 0;
+ left: 0;
+ position: absolute;
+ z-index: auto;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/013-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/013-expected.txt
new file mode 100644
index 0000000..ffe66a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/013-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x100
+ RenderBlock {HTML} at (0,0) size 800x100
+ RenderBody {BODY} at (0,0) size 800x100
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/013.html b/third_party/WebKit/LayoutTests/fast/block/positioning/013.html
new file mode 100644
index 0000000..2fd1f9d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/013.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' stacks by document order (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body, div {
+ margin: 0;
+ border: none;
+ padding: 0;
+ }
+
+ div {
+ height: 100px;
+ width: 100px;
+ }
+
+ div#two {
+ top: 0;
+ left: 0;
+ position: fixed;
+ z-index: auto;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/014-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/014-expected.txt
new file mode 100644
index 0000000..d715e7f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/014-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100 backgroundClip at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100 backgroundClip at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/014.html b/third_party/WebKit/LayoutTests/fast/block/positioning/014.html
new file mode 100644
index 0000000..e81aaa7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/014.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' doesn't establish new stacking context (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#contain {
+ z-index: auto;
+ }
+
+ div#two {
+ background: green;
+ z-index: 2;
+ }
+
+ div#one, div#three {
+ background: red;
+ z-index: 1;
+ }
+
+ div#contain, div#three {
+ margin-top: -100px;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="contain">
+ <div id="two"></div>
+ <div id="three"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/015-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/015-expected.txt
new file mode 100644
index 0000000..061fdf0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/015-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/015.html b/third_party/WebKit/LayoutTests/fast/block/positioning/015.html
new file mode 100644
index 0000000..88ef7ed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/015.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' doesn't establish new stacking context (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#contain {
+ z-index: auto;
+ }
+
+ div#two {
+ background: green;
+ z-index: 2;
+ }
+
+ div#one, div#three {
+ background: red;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="contain">
+ <div id="two"></div>
+ <div id="three"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/016-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/016-expected.txt
new file mode 100644
index 0000000..061fdf0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/016-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/016.html b/third_party/WebKit/LayoutTests/fast/block/positioning/016.html
new file mode 100644
index 0000000..1ec35e0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/016.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' doesn't establish new stacking context (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#contain {
+ z-index: auto;
+ }
+
+ div#two {
+ background: green;
+ z-index: 2;
+ }
+
+ div#one, div#three {
+ background: red;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="contain">
+ <div id="two"></div>
+ <div id="three"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/017-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/017-expected.txt
new file mode 100644
index 0000000..a87462d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/017-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100 backgroundClip at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/017.html b/third_party/WebKit/LayoutTests/fast/block/positioning/017.html
new file mode 100644
index 0000000..2da932c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/017.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 1) in its own context (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#outer {
+ z-index: auto;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/018-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/018-expected.txt
new file mode 100644
index 0000000..79a47de
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/018-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100 backgroundClip at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/018.html b/third_party/WebKit/LayoutTests/fast/block/positioning/018.html
new file mode 100644
index 0000000..0bcb08a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/018.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 2) in its own context (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#outer {
+ z-index: auto;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 0;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/019-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/019-expected.txt
new file mode 100644
index 0000000..2fb8ce5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/019-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116 layerType: background only
+layer at (0,0) size 100x100 backgroundClip at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: -1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 800x116 layerType: foreground only
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/019.html b/third_party/WebKit/LayoutTests/fast/block/positioning/019.html
new file mode 100644
index 0000000..9c81083
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/019.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 3) in its own context (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#outer {
+ z-index: auto;
+ background: green;
+ }
+
+ div#inner {
+ z-index: -1;
+ background: red;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/020-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/020-expected.txt
new file mode 100644
index 0000000..f15bac8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/020-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/020.html b/third_party/WebKit/LayoutTests/fast/block/positioning/020.html
new file mode 100644
index 0000000..06d41e2f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/020.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 1) in its own context (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: auto;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/021-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/021-expected.txt
new file mode 100644
index 0000000..0d1f814
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/021-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/021.html b/third_party/WebKit/LayoutTests/fast/block/positioning/021.html
new file mode 100644
index 0000000..73d0980
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/021.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 2) in its own context (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: auto;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 0;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/022-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/022-expected.txt
new file mode 100644
index 0000000..6747f16
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/022-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8 layerType: background only
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: -1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 800x8 layerType: foreground only
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/022.html b/third_party/WebKit/LayoutTests/fast/block/positioning/022.html
new file mode 100644
index 0000000..f80e409
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/022.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 3) in its own context (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: auto;
+ background: green;
+ }
+
+ div#inner {
+ z-index: -1;
+ background: red;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/023-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/023-expected.txt
new file mode 100644
index 0000000..f15bac8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/023-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/023.html b/third_party/WebKit/LayoutTests/fast/block/positioning/023.html
new file mode 100644
index 0000000..b4565a2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/023.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 1) in its own context (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: auto;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/024-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/024-expected.txt
new file mode 100644
index 0000000..0d1f814
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/024-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/024.html b/third_party/WebKit/LayoutTests/fast/block/positioning/024.html
new file mode 100644
index 0000000..af4a4bc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/024.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 2) in its own context (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: auto;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 0;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/025-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/025-expected.txt
new file mode 100644
index 0000000..6747f16
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/025-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8 layerType: background only
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: -1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 800x8 layerType: foreground only
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/025.html b/third_party/WebKit/LayoutTests/fast/block/positioning/025.html
new file mode 100644
index 0000000..a257d0e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/025.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 3) in its own context (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: auto;
+ background: green;
+ }
+
+ div#inner {
+ z-index: -1;
+ background: red;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/026-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/026-expected.txt
new file mode 100644
index 0000000..9f47be6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/026-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (0,0) size 800x600 [bgcolor=#FF0000]
+layer at (0,0) size 800x600
+ RenderBlock (relative positioned) zI: 1 {DIV} at (0,0) size 800x600 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/026.html b/third_party/WebKit/LayoutTests/fast/block/positioning/026.html
new file mode 100644
index 0000000..30a3ffc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/026.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: canvas background baseline (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border: none;
+ }
+
+ body {
+ background: red;
+ }
+
+ div {
+ background: green;
+ position: relative;
+ z-index: 1;
+ height: 100%;
+ width: 100%;
+ }
+
+ </style>
+</head>
+<body>
+
+<div></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/027-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/027-expected.txt
new file mode 100644
index 0000000..d13ceee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/027-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (0,0) size 800x600 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 800x600
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 800x600 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/027.html b/third_party/WebKit/LayoutTests/fast/block/positioning/027.html
new file mode 100644
index 0000000..5d30e1c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/027.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: canvas background baseline (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border: none;
+ }
+
+ body {
+ background: red;
+ }
+
+ div {
+ background: green;
+ position: absolute;
+ z-index: 1;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 100%;
+ }
+
+ </style>
+</head>
+<body>
+
+<div></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/028-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/028-expected.txt
new file mode 100644
index 0000000..d13ceee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/028-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (0,0) size 800x600 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 800x600
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 800x600 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/028.html b/third_party/WebKit/LayoutTests/fast/block/positioning/028.html
new file mode 100644
index 0000000..1b93fea
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/028.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: canvas background baseline (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border: none;
+ }
+
+ body {
+ background: red;
+ }
+
+ div {
+ background: green;
+ position: fixed;
+ z-index: 1;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 100%;
+ }
+
+ </style>
+</head>
+<body>
+
+<div></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/029-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/029-expected.txt
new file mode 100644
index 0000000..3580db1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/029-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600 layerType: background only
+layer at (0,0) size 800x600
+ RenderBlock (relative positioned) zI: -1 {DIV} at (0,0) size 800x600 [bgcolor=#FF0000]
+layer at (0,0) size 800x600 layerType: foreground only
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (0,0) size 800x600 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/029.html b/third_party/WebKit/LayoutTests/fast/block/positioning/029.html
new file mode 100644
index 0000000..c60432c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/029.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: background covering area of canvas still on root (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border: none;
+ }
+
+ body {
+ background: green;
+ }
+
+ div {
+ position: relative;
+ z-index: -1;
+ background: red;
+ height: 100%;
+ width: 100%;
+ }
+
+ </style>
+</head>
+<body>
+
+<div></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/030-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/030-expected.txt
new file mode 100644
index 0000000..80ea466
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/030-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600 layerType: background only
+layer at (0,0) size 800x600
+ RenderBlock (positioned) zI: -1 {DIV} at (0,0) size 800x600 [bgcolor=#FF0000]
+layer at (0,0) size 800x600 layerType: foreground only
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (0,0) size 800x600 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/030.html b/third_party/WebKit/LayoutTests/fast/block/positioning/030.html
new file mode 100644
index 0000000..a08dff2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/030.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: background covering area of canvas still on root (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border: none;
+ }
+
+ body {
+ background: green;
+ }
+
+ div {
+ position: absolute;
+ z-index: -1;
+ background: red;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 100%;
+ }
+
+ </style>
+</head>
+<body>
+
+<div></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/031-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/031-expected.txt
new file mode 100644
index 0000000..80ea466
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/031-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600 layerType: background only
+layer at (0,0) size 800x600
+ RenderBlock (positioned) zI: -1 {DIV} at (0,0) size 800x600 [bgcolor=#FF0000]
+layer at (0,0) size 800x600 layerType: foreground only
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (0,0) size 800x600 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/031.html b/third_party/WebKit/LayoutTests/fast/block/positioning/031.html
new file mode 100644
index 0000000..9e28b51
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/031.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: background covering area of canvas still on root (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border: none;
+ }
+
+ body {
+ background: green;
+ }
+
+ div {
+ position: fixed;
+ z-index: -1;
+ background: red;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 100%;
+ }
+
+ </style>
+</head>
+<body>
+
+<div></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/032-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/032-expected.txt
new file mode 100644
index 0000000..f2187ec
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/032-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x100
+ RenderBlock {HTML} at (0,0) size 800x100
+ RenderBody {BODY} at (0,0) size 800x100
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/032.html b/third_party/WebKit/LayoutTests/fast/block/positioning/032.html
new file mode 100644
index 0000000..9e0ae0c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/032.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' stacks by document order (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body, div {
+ margin: 0;
+ border: none;
+ padding: 0;
+ }
+
+ div {
+ height: 100px;
+ width: 100px;
+ }
+
+ div#two {
+ margin-top: -100px;
+ }
+
+ div#two {
+ position: relative;
+ z-index: 0;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/033-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/033-expected.txt
new file mode 100644
index 0000000..ffe66a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/033-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x100
+ RenderBlock {HTML} at (0,0) size 800x100
+ RenderBody {BODY} at (0,0) size 800x100
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/033.html b/third_party/WebKit/LayoutTests/fast/block/positioning/033.html
new file mode 100644
index 0000000..77dfb33
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/033.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' stacks by document order (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body, div {
+ margin: 0;
+ border: none;
+ padding: 0;
+ }
+
+ div {
+ height: 100px;
+ width: 100px;
+ }
+
+ div#two {
+ top: 0;
+ left: 0;
+ position: absolute;
+ z-index: 0;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/034-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/034-expected.txt
new file mode 100644
index 0000000..ffe66a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/034-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x100
+ RenderBlock {HTML} at (0,0) size 800x100
+ RenderBody {BODY} at (0,0) size 800x100
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/034.html b/third_party/WebKit/LayoutTests/fast/block/positioning/034.html
new file mode 100644
index 0000000..e02eb66
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/034.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' stacks by document order (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ html, body, div {
+ margin: 0;
+ border: none;
+ padding: 0;
+ }
+
+ div {
+ height: 100px;
+ width: 100px;
+ }
+
+ div#two {
+ top: 0;
+ left: 0;
+ position: fixed;
+ z-index: 0;
+ }
+
+ div#one {
+ background: red;
+ }
+
+ div#two {
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="one"></div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/035-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/035-expected.txt
new file mode 100644
index 0000000..722044b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/035-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100
+layer at (0,0) size 100x100 backgroundClip at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/035.html b/third_party/WebKit/LayoutTests/fast/block/positioning/035.html
new file mode 100644
index 0000000..f98d67e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/035.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' establishes new stacking context (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#contain {
+ z-index: 0;
+ }
+
+ div#one {
+ z-index: 2;
+ background: red;
+ }
+
+ div#two {
+ z-index: 1;
+ background: green;
+ }
+
+ div#two {
+ margin-top: -100px;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="contain">
+ <div id="one"></div>
+</div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/036-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/036-expected.txt
new file mode 100644
index 0000000..46aabb6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/036-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/036.html b/third_party/WebKit/LayoutTests/fast/block/positioning/036.html
new file mode 100644
index 0000000..4d22e53
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/036.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' establishes new stacking context (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#contain {
+ z-index: 0;
+ }
+
+ div#one {
+ z-index: 2;
+ background: red;
+ }
+
+ div#two {
+ z-index: 1;
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="contain">
+ <div id="one"></div>
+</div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/037-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/037-expected.txt
new file mode 100644
index 0000000..46aabb6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/037-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 2 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/037.html b/third_party/WebKit/LayoutTests/fast/block/positioning/037.html
new file mode 100644
index 0000000..9ae96ae
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/037.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' establishes new stacking context (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#contain {
+ z-index: 0;
+ }
+
+ div#one {
+ z-index: 2;
+ background: red;
+ }
+
+ div#two {
+ z-index: 1;
+ background: green;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="contain">
+ <div id="one"></div>
+</div>
+<div id="two"></div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/038-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/038-expected.txt
new file mode 100644
index 0000000..a87462d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/038-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100 backgroundClip at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/038.html b/third_party/WebKit/LayoutTests/fast/block/positioning/038.html
new file mode 100644
index 0000000..2fe4250
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/038.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' gives container stacking level of '0' (variant 1) in its own context (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#outer {
+ z-index: 0;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/039-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/039-expected.txt
new file mode 100644
index 0000000..79a47de
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/039-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100 backgroundClip at (8,8) size 100x100
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/039.html b/third_party/WebKit/LayoutTests/fast/block/positioning/039.html
new file mode 100644
index 0000000..320107c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/039.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' gives container stacking level of '0' (variant 2) in its own context (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#outer {
+ z-index: 0;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 0;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/040-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/040-expected.txt
new file mode 100644
index 0000000..e60c79b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/040-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+layer at (8,8) size 100x100 layerType: background only
+layer at (0,0) size 100x100 backgroundClip at (8,8) size 100x100
+ RenderBlock (relative positioned) zI: -1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (8,8) size 100x100 layerType: foreground only
+ RenderBlock (relative positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/040.html b/third_party/WebKit/LayoutTests/fast/block/positioning/040.html
new file mode 100644
index 0000000..ea64279
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/040.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' gives container stacking level of '0' (variant 3) in its own context (position: relative)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: relative;
+ }
+
+ div#outer {
+ z-index: 0;
+ background: green;
+ }
+
+ div#inner {
+ z-index: -1;
+ background: red;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/041-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/041-expected.txt
new file mode 100644
index 0000000..f15bac8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/041-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/041.html b/third_party/WebKit/LayoutTests/fast/block/positioning/041.html
new file mode 100644
index 0000000..039580b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/041.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' gives container stacking level of '0' (variant 1) in its own context (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: 0;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/042-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/042-expected.txt
new file mode 100644
index 0000000..0d1f814
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/042-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/042.html b/third_party/WebKit/LayoutTests/fast/block/positioning/042.html
new file mode 100644
index 0000000..25d94c6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/042.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' gives container stacking level of '0' (variant 2) in its own context (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: 0;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 0;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/043-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/043-expected.txt
new file mode 100644
index 0000000..5c085cf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/043-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100 layerType: background only
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: -1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100 layerType: foreground only
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/043.html b/third_party/WebKit/LayoutTests/fast/block/positioning/043.html
new file mode 100644
index 0000000..24f29ab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/043.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' gives container stacking level of '0' (variant 3) in its own context (position: absolute)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: 0;
+ background: green;
+ }
+
+ div#inner {
+ z-index: -1;
+ background: red;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/044-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/044-expected.txt
new file mode 100644
index 0000000..f15bac8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/044-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: 1 {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/044.html b/third_party/WebKit/LayoutTests/fast/block/positioning/044.html
new file mode 100644
index 0000000..6d1c64b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/044.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' gives container stacking level of '0' (variant 1) in its own context (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: 0;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 1;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/045-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/045-expected.txt
new file mode 100644
index 0000000..0d1f814
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/045-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/045.html b/third_party/WebKit/LayoutTests/fast/block/positioning/045.html
new file mode 100644
index 0000000..8b71f15
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/045.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' gives container stacking level of '0' (variant 2) in its own context (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: 0;
+ background: red;
+ }
+
+ div#inner {
+ background: green;
+ z-index: 0;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/046-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/046-expected.txt
new file mode 100644
index 0000000..5c085cf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/046-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 100x100 layerType: background only
+layer at (0,0) size 100x100
+ RenderBlock (positioned) zI: -1 {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100 layerType: foreground only
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/046.html b/third_party/WebKit/LayoutTests/fast/block/positioning/046.html
new file mode 100644
index 0000000..da912c7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/046.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html40/strict.dtd">
+<!-- vim:sw=4:et:ts=4
+ -->
+<html lang="en-US">
+<head>
+ <title>z-index testcase: '0' gives container stacking level of '0' (variant 3) in its own context (position: fixed)</title>
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <link rel="copyright" href="/~dbaron/legal.html">
+ <style type="text/css">
+
+ div {
+ height: 100px;
+ width: 100px;
+ margin: 0;
+ border: none;
+ padding: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ }
+
+ div#outer {
+ z-index: 0;
+ background: green;
+ }
+
+ div#inner {
+ z-index: -1;
+ background: red;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="outer">
+ <div id="inner"></div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/047-actual.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/047-actual.txt
new file mode 100644
index 0000000..da1e6100
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/047-actual.txt
@@ -0,0 +1,59 @@
+layer at (0,0) size 800x868
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x868
+ RenderBlock {HTML} at (0,0) size 800x868
+ RenderBody {BODY} at (8,8) size 784x839
+layer at (8,8) size 512x839
+ RenderBlock (relative positioned) {DIV} at (0,0) size 512x839
+ RenderBlock {H2} at (0,0) size 512x29
+ RenderText {TEXT} at (0,-4) size 88x29
+ text run at (0,-4) width 88: "Bug 1"
+ RenderBlock {P} at (0,55) size 512x232
+ RenderText {TEXT} at (0,2) size 492x145
+ text run at (0,2) width 448: "Safari public beta does not support CSS absolute"
+ text run at (0,31) width 492: "positioning correctly (if at all). Immediately following"
+ text run at (0,60) width 449: "the text position marked by the dagger, there is a"
+ text run at (0,89) width 477: "<span> element that is positioned to the right of the"
+ text run at (0,118) width 388: "<div> block that contains this paragraph\x{2020}"
+ RenderText {TEXT} at (388,118) size 490x116
+ text run at (388,118) width 97: ". In IE 5.x,"
+ text run at (0,147) width 460: "Mozilla 1.2, and Chimera 0.6+, the contents of the"
+ text run at (0,176) width 490: "<span> element appears in the margin directly to the"
+ text run at (0,205) width 177: "right of the dagger."
+ RenderBlock {P} at (0,308) size 512x87
+ RenderText {TEXT} at (0,2) size 493x87
+ text run at (0,2) width 493: "I should note that Chimera 0.6 rendered this test with"
+ text run at (0,31) width 473: "the marginal note shifted down by one line; this has"
+ text run at (0,60) width 296: "been fixed in subsequent builds."
+ RenderBlock {H2} at (0,421) size 512x29
+ RenderText {TEXT} at (0,-4) size 92x29
+ text run at (0,-4) width 92: "Bug 2"
+ RenderBlock {P} at (0,476) size 512x58
+ RenderText {TEXT} at (0,6) size 494x58
+ text run at (0,6) width 494: "Fonts also render substantially smaller than other browsers, which is not a good thing"
+ text run at (0,35) width 469: "when you consider that most sites specify fonts that are too small in the first place."
+ RenderBlock {P} at (0,555) size 512x87
+ RenderText {TEXT} at (0,2) size 500x87
+ text run at (0,2) width 500: "At the very least, the preferences panel needs a default"
+ text run at (0,31) width 474: "text-zoom setting to enable compatibility with other"
+ text run at (0,60) width 90: "browsers."
+ RenderBlock {H2} at (0,668) size 512x29
+ RenderText {TEXT} at (0,-4) size 92x29
+ text run at (0,-4) width 92: "Bug 3"
+ RenderBlock {P} at (0,723) size 512x116
+ RenderText {TEXT} at (0,2) size 70x29
+ text run at (0,2) width 70: "Worse, "
+ RenderInline {I} at (0,0) size 480x53
+ RenderText {TEXT} at (70,2) size 480x58
+ text run at (70,2) width 410: "the \"make text bigger\" button does not scale"
+ text run at (0,31) width 320: "line-height when it scales font-size"
+ RenderText {TEXT} at (320,31) size 512x87
+ text run at (320,31) width 192: " (hit it a few times on"
+ text run at (0,60) width 501: "this page). This is a crippling flaw for people who need"
+ text run at (0,89) width 370: "to enlarge the fonts to read comfortably."
+layer at (538,171) size 200x49 backgroundClip at (546,179) size 200x49
+ RenderBlock (positioned) {SPAN} at (538,171) size 200x48
+ RenderText {TEXT} at (0,-1) size 199x48
+ text run at (0,-1) width 199: "\x{2190} this should be to the right of"
+ text run at (0,15) width 177: "the paragraph, lining up with"
+ text run at (0,31) width 67: "the dagger"
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/047-diffs.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/047-diffs.txt
new file mode 100644
index 0000000..08536dc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/047-diffs.txt
@@ -0,0 +1,88 @@
+--- /Users/darin/Labyrinth/Site/layout-tests/fast/block/positioning/047-expected.txt Thu May 22 08:27:58 2003
++++ /Users/darin/Labyrinth/Site/layout-tests/fast/block/positioning/047-actual.txt Wed Jul 30 17:00:43 2003
+@@ -6,51 +6,51 @@
+ layer at (8,8) size 512x839
+ RenderBlock (relative positioned) {DIV} at (0,0) size 512x839
+ RenderBlock {H2} at (0,0) size 512x29
+- RenderText {TEXT} at (0,-4) size 89x29
+- text run at (0,-4) width 89: "Bug 1"
++ RenderText {TEXT} at (0,-4) size 88x29
++ text run at (0,-4) width 88: "Bug 1"
+ RenderBlock {P} at (0,55) size 512x232
+- RenderText {TEXT} at (0,2) size 498x145
+- text run at (0,2) width 452: "Safari public beta does not support CSS absolute"
+- text run at (0,31) width 498: "positioning correctly (if at all). Immediately following"
+- text run at (0,60) width 457: "the text position marked by the dagger, there is a"
+- text run at (0,89) width 487: "<span> element that is positioned to the right of the"
+- text run at (0,118) width 389: "<div> block that contains this paragraph\x{2020}"
+- RenderText {TEXT} at (389,118) size 496x116
+- text run at (389,118) width 98: ". In IE 5.x,"
+- text run at (0,147) width 467: "Mozilla 1.2, and Chimera 0.6+, the contents of the"
+- text run at (0,176) width 496: "<span> element appears in the margin directly to the"
+- text run at (0,205) width 178: "right of the dagger."
++ RenderText {TEXT} at (0,2) size 492x145
++ text run at (0,2) width 448: "Safari public beta does not support CSS absolute"
++ text run at (0,31) width 492: "positioning correctly (if at all). Immediately following"
++ text run at (0,60) width 449: "the text position marked by the dagger, there is a"
++ text run at (0,89) width 477: "<span> element that is positioned to the right of the"
++ text run at (0,118) width 388: "<div> block that contains this paragraph\x{2020}"
++ RenderText {TEXT} at (388,118) size 490x116
++ text run at (388,118) width 97: ". In IE 5.x,"
++ text run at (0,147) width 460: "Mozilla 1.2, and Chimera 0.6+, the contents of the"
++ text run at (0,176) width 490: "<span> element appears in the margin directly to the"
++ text run at (0,205) width 177: "right of the dagger."
+ RenderBlock {P} at (0,308) size 512x87
+- RenderText {TEXT} at (0,2) size 504x87
+- text run at (0,2) width 504: "I should note that Chimera 0.6 rendered this test with"
+- text run at (0,31) width 483: "the marginal note shifted down by one line; this has"
+- text run at (0,60) width 299: "been fixed in subsequent builds."
++ RenderText {TEXT} at (0,2) size 493x87
++ text run at (0,2) width 493: "I should note that Chimera 0.6 rendered this test with"
++ text run at (0,31) width 473: "the marginal note shifted down by one line; this has"
++ text run at (0,60) width 296: "been fixed in subsequent builds."
+ RenderBlock {H2} at (0,421) size 512x29
+- RenderText {TEXT} at (0,-4) size 94x29
+- text run at (0,-4) width 94: "Bug 2"
++ RenderText {TEXT} at (0,-4) size 92x29
++ text run at (0,-4) width 92: "Bug 2"
+ RenderBlock {P} at (0,476) size 512x58
+ RenderText {TEXT} at (0,6) size 494x58
+ text run at (0,6) width 494: "Fonts also render substantially smaller than other browsers, which is not a good thing"
+ text run at (0,35) width 469: "when you consider that most sites specify fonts that are too small in the first place."
+ RenderBlock {P} at (0,555) size 512x87
+- RenderText {TEXT} at (0,2) size 506x87
+- text run at (0,2) width 506: "At the very least, the preferences panel needs a default"
+- text run at (0,31) width 483: "text-zoom setting to enable compatibility with other"
++ RenderText {TEXT} at (0,2) size 500x87
++ text run at (0,2) width 500: "At the very least, the preferences panel needs a default"
++ text run at (0,31) width 474: "text-zoom setting to enable compatibility with other"
+ text run at (0,60) width 90: "browsers."
+ RenderBlock {H2} at (0,668) size 512x29
+- RenderText {TEXT} at (0,-4) size 93x29
+- text run at (0,-4) width 93: "Bug 3"
++ RenderText {TEXT} at (0,-4) size 92x29
++ text run at (0,-4) width 92: "Bug 3"
+ RenderBlock {P} at (0,723) size 512x116
+- RenderText {TEXT} at (0,2) size 71x29
+- text run at (0,2) width 71: "Worse, "
+- RenderInline {I} at (0,0) size 487x53
+- RenderText {TEXT} at (71,2) size 487x58
+- text run at (71,2) width 416: "the \"make text bigger\" button does not scale"
+- text run at (0,31) width 325: "line-height when it scales font-size"
+- RenderText {TEXT} at (325,31) size 494x87
+- text run at (325,31) width 169: " (hit it a few times"
+- text run at (0,60) width 486: "on this page). This is a crippling flaw for people who"
+- text run at (0,89) width 424: "need to enlarge the fonts to read comfortably."
++ RenderText {TEXT} at (0,2) size 70x29
++ text run at (0,2) width 70: "Worse, "
++ RenderInline {I} at (0,0) size 480x53
++ RenderText {TEXT} at (70,2) size 480x58
++ text run at (70,2) width 410: "the \"make text bigger\" button does not scale"
++ text run at (0,31) width 320: "line-height when it scales font-size"
++ RenderText {TEXT} at (320,31) size 512x87
++ text run at (320,31) width 192: " (hit it a few times on"
++ text run at (0,60) width 501: "this page). This is a crippling flaw for people who need"
++ text run at (0,89) width 370: "to enlarge the fonts to read comfortably."
+ layer at (538,171) size 200x49 backgroundClip at (546,179) size 200x49
+ RenderBlock (positioned) {SPAN} at (538,171) size 200x48
+ RenderText {TEXT} at (0,-1) size 199x48
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/047-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/047-expected.txt
new file mode 100644
index 0000000..517f0aa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/047-expected.txt
@@ -0,0 +1,59 @@
+layer at (0,0) size 800x868
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x868
+ RenderBlock {HTML} at (0,0) size 800x868
+ RenderBody {BODY} at (8,8) size 784x839
+layer at (8,8) size 512x839
+ RenderBlock (relative positioned) {DIV} at (0,0) size 512x839
+ RenderBlock {H2} at (0,0) size 512x29
+ RenderText {TEXT} at (0,-4) size 89x29
+ text run at (0,-4) width 89: "Bug 1"
+ RenderBlock {P} at (0,55) size 512x232
+ RenderText {TEXT} at (0,2) size 498x145
+ text run at (0,2) width 452: "Safari public beta does not support CSS absolute"
+ text run at (0,31) width 498: "positioning correctly (if at all). Immediately following"
+ text run at (0,60) width 457: "the text position marked by the dagger, there is a"
+ text run at (0,89) width 487: "<span> element that is positioned to the right of the"
+ text run at (0,118) width 389: "<div> block that contains this paragraph\x{2020}"
+ RenderText {TEXT} at (389,118) size 496x116
+ text run at (389,118) width 98: ". In IE 5.x,"
+ text run at (0,147) width 467: "Mozilla 1.2, and Chimera 0.6+, the contents of the"
+ text run at (0,176) width 496: "<span> element appears in the margin directly to the"
+ text run at (0,205) width 178: "right of the dagger."
+ RenderBlock {P} at (0,308) size 512x87
+ RenderText {TEXT} at (0,2) size 504x87
+ text run at (0,2) width 504: "I should note that Chimera 0.6 rendered this test with"
+ text run at (0,31) width 483: "the marginal note shifted down by one line; this has"
+ text run at (0,60) width 299: "been fixed in subsequent builds."
+ RenderBlock {H2} at (0,421) size 512x29
+ RenderText {TEXT} at (0,-4) size 94x29
+ text run at (0,-4) width 94: "Bug 2"
+ RenderBlock {P} at (0,476) size 512x58
+ RenderText {TEXT} at (0,6) size 494x58
+ text run at (0,6) width 494: "Fonts also render substantially smaller than other browsers, which is not a good thing"
+ text run at (0,35) width 469: "when you consider that most sites specify fonts that are too small in the first place."
+ RenderBlock {P} at (0,555) size 512x87
+ RenderText {TEXT} at (0,2) size 506x87
+ text run at (0,2) width 506: "At the very least, the preferences panel needs a default"
+ text run at (0,31) width 483: "text-zoom setting to enable compatibility with other"
+ text run at (0,60) width 90: "browsers."
+ RenderBlock {H2} at (0,668) size 512x29
+ RenderText {TEXT} at (0,-4) size 93x29
+ text run at (0,-4) width 93: "Bug 3"
+ RenderBlock {P} at (0,723) size 512x116
+ RenderText {TEXT} at (0,2) size 71x29
+ text run at (0,2) width 71: "Worse, "
+ RenderInline {I} at (0,0) size 487x53
+ RenderText {TEXT} at (71,2) size 487x58
+ text run at (71,2) width 416: "the \"make text bigger\" button does not scale"
+ text run at (0,31) width 325: "line-height when it scales font-size"
+ RenderText {TEXT} at (325,31) size 494x87
+ text run at (325,31) width 169: " (hit it a few times"
+ text run at (0,60) width 486: "on this page). This is a crippling flaw for people who"
+ text run at (0,89) width 424: "need to enlarge the fonts to read comfortably."
+layer at (538,171) size 200x49 backgroundClip at (546,179) size 200x49
+ RenderBlock (positioned) {SPAN} at (538,171) size 200x48
+ RenderText {TEXT} at (0,-1) size 199x48
+ text run at (0,-1) width 199: "\x{2190} this should be to the right of"
+ text run at (0,15) width 177: "the paragraph, lining up with"
+ text run at (0,31) width 67: "the dagger"
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/047.html b/third_party/WebKit/LayoutTests/fast/block/positioning/047.html
new file mode 100644
index 0000000..8406500
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/047.html
@@ -0,0 +1,62 @@
+<html>
+<head>
+<title>test page</title>
+
+<style type="text/css">
+
+DIV.test {
+ position: relative;
+ font-family: Georgia;
+ font-size: 16pt;
+ line-height: 22pt;
+ width: 24em;
+}
+
+SPAN.margin {
+ position: absolute;
+ font-family: "Comic Sans MS";
+ font-size: 10pt;
+ line-height: 12pt;
+ width: 15em;
+ right: -17em;
+}
+
+</style>
+
+</head>
+<body>
+
+<div class="test">
+
+<h2>Bug 1</h2>
+
+<p>Safari public beta does not support CSS absolute positioning
+correctly (if at all). Immediately following the text position marked
+by the dagger, there is a &lt;span&gt element that is positioned to
+the right of the &lt;div&gt; block that contains this
+paragraph&dagger;<span class="margin">&larr; this should be to the
+right of the paragraph, lining up with the dagger</span>. In IE 5.x,
+Mozilla 1.2, and Chimera 0.6+, the contents of the &lt;span&gt;
+element appears in the margin directly to the right of the dagger.</p>
+
+<p>I should note that Chimera 0.6 rendered this test with the
+marginal note shifted down by one line; this has been fixed in
+subsequent builds.</p>
+
+<h2>Bug 2</h2>
+<p style="font-size: 10pt">Fonts also render substantially smaller
+than other browsers, which is not a good thing when you consider that
+most sites specify fonts that are too small in the first place.</p>
+
+<p>At the very least, the preferences panel needs a default
+text-zoom setting to enable compatibility with other browsers.</p>
+
+<h2>Bug 3</h2>
+<p>Worse, <i>the "make text bigger" button does not scale line-height
+when it scales font-size</i> (hit it a few times on this page). This
+is a crippling flaw for people who need to enlarge the fonts to read
+comfortably.</p>
+
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/048-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/048-expected.txt
new file mode 100644
index 0000000..d8cdcb8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/048-expected.txt
@@ -0,0 +1,45 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (8,8) size 79x79
+ RenderBlock (positioned) {DIV} at (8,8) size 79x79
+ RenderBlock (anonymous) at (2,2) size 75x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (2,2) size 75x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (2,2) size 75x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (2,2) size 75x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (2,2) size 75x75 [bgcolor=#808080]
+layer at (2,2) size 33x33 backgroundClip at (10,10) size 33x33
+ RenderBlock (positioned) {DIV} at (2,2) size 33x33
+layer at (44,2) size 33x33 backgroundClip at (52,10) size 33x33
+ RenderBlock (positioned) {DIV} at (44,2) size 33x33
+layer at (44,44) size 33x33 backgroundClip at (52,52) size 33x33
+ RenderBlock (positioned) {DIV} at (44,44) size 33x33
+layer at (2,44) size 33x33 backgroundClip at (10,52) size 33x33
+ RenderBlock (positioned) {DIV} at (2,44) size 33x33
+layer at (100,0) size 99x99
+ RenderBlock (positioned) {DIV} at (100,0) size 99x99
+ RenderBlock (anonymous) at (12,12) size 75x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (12,12) size 75x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (12,12) size 75x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (12,12) size 75x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (12,12) size 75x75 [bgcolor=#808080]
+layer at (2,2) size 33x33 backgroundClip at (102,2) size 33x33
+ RenderBlock (positioned) {DIV} at (2,2) size 33x33
+layer at (64,2) size 33x33 backgroundClip at (164,2) size 33x33
+ RenderBlock (positioned) {DIV} at (64,2) size 33x33
+layer at (64,64) size 33x33 backgroundClip at (164,64) size 33x33
+ RenderBlock (positioned) {DIV} at (64,64) size 33x33
+layer at (2,64) size 33x33 backgroundClip at (102,64) size 33x33
+ RenderBlock (positioned) {DIV} at (2,64) size 33x33
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/048.html b/third_party/WebKit/LayoutTests/fast/block/positioning/048.html
new file mode 100644
index 0000000..9c77596
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/048.html
@@ -0,0 +1,57 @@
+<html>
+<style>
+.box {
+ border: 2px solid green;
+ padding: 2px;
+ height: 25px;
+ width: 25px;
+}
+
+.container {
+ border: 2px solid blue;
+ height: 75px;
+ width: 75px;
+ position: absolute;
+}
+
+.topleft {
+ position: absolute;
+ top: 0px;
+ left: 0px;
+}
+
+.topright {
+ position: absolute;
+ top: 0px;
+ right: 0px;
+}
+
+.bottomleft {
+ position: absolute;
+ bottom: 0px;
+ left: 0px;
+}
+
+.bottomright {
+ position: absolute;
+ bottom: 0px;
+ right: 0px;
+}
+</style>
+<body>
+<div class="container">
+<div class="topleft box"></div>
+<div class="topright box"></div>
+<div class="bottomright box"></div>
+<div class="bottomleft box"></div>
+<div style="width:100%; height:100%; background: gray;"></div>
+</div>
+<div class="container" style="padding:10px; left:100px; top:0px">
+<div class="topleft box"></div>
+<div class="topright box"></div>
+<div class="bottomright box"></div>
+<div class="bottomleft box"></div>
+<div style="width:100%; height:100%; background: gray;"></div>
+</div>
+
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/049-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/049-expected.txt
new file mode 100644
index 0000000..ee7b133
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/049-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (10,10) size 160x170
+ RenderBlock (positioned) {DIV} at (10,10) size 120x120 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (10,10) size 150x150 [bgcolor=#008000]
+layer at (200,10) size 120x120 clip at (210,20) size 100x100
+ RenderBlock (positioned) {DIV} at (200,10) size 120x120 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (10,10) size 150x150 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/049.html b/third_party/WebKit/LayoutTests/fast/block/positioning/049.html
new file mode 100644
index 0000000..2c8858f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/049.html
@@ -0,0 +1,11 @@
+<html>
+<div style="position:absolute; top:10px; left:10px; width:100px; height:100px; border: 10px solid black; background-color:red">
+<div style="width:150px; height:150px; background-color: green">
+</div>
+</div>
+
+<div style="position:absolute; top:10px; left:200px; width:100px; height:100px; overflow:hidden; border: 10px solid black; background-color:red">
+<div style="width:150px; height:150px; background-color: green">
+</div>
+</div>
+
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/050-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/050-expected.txt
new file mode 100644
index 0000000..caf4740
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/050-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (8,8) size 124x124
+ RenderBlock (positioned) {DIV} at (8,8) size 124x124
+ RenderBlock (anonymous) at (12,12) size 100x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (12,12) size 100x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (12,12) size 100x100 [bgcolor=#808080]
+layer at (2,2) size 120x108 backgroundClip at (10,10) size 120x108
+ RenderBlock (positioned) {DIV} at (2,2) size 120x108
+layer at (2,2) size 108x120 backgroundClip at (10,10) size 108x120
+ RenderBlock (positioned) {DIV} at (2,2) size 108x120
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/050.html b/third_party/WebKit/LayoutTests/fast/block/positioning/050.html
new file mode 100644
index 0000000..94c4e12
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/050.html
@@ -0,0 +1,39 @@
+<html>
+<style>
+.box {
+ border: 2px solid green;
+ padding: 2px;
+}
+
+.container {
+ border: 2px solid blue;
+ height: 100px;
+ width: 100px;
+ position: absolute;
+ padding:10px;
+}
+
+.leftright {
+ position:absolute;
+ left:0px;
+ right:0px;
+ top:0px;
+ height:100px;
+}
+
+.topbottom {
+ width: 100px;
+ position:absolute;
+ top:0px;
+ bottom:0px;
+ left:0px;
+}
+</style>
+<body>
+<div class="container">
+<div class="leftright box"></div>
+<div class="topbottom box"></div>
+<div style="width:100%; height:100%; background: gray;"></div>
+</div>
+
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/051-actual.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/051-actual.txt
new file mode 100644
index 0000000..bfc13ee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/051-actual.txt
@@ -0,0 +1,367 @@
+layer at (0,0) size 800x5251
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x5251 layerType: background only
+layer at (60,60) size 200x200 backgroundClip at (82,1476) size 200x200
+ RenderBlock (positioned) zI: -3000000 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (10,210) size 200x200 backgroundClip at (32,1626) size 200x200
+ RenderBlock (positioned) zI: -2000000 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,360) size 200x200 backgroundClip at (82,1776) size 200x200
+ RenderBlock (positioned) zI: -1000000 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -1000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (60,60) size 200x200 backgroundClip at (82,2110) size 200x200
+ RenderBlock (positioned) zI: -40 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -40 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (10,210) size 200x200 backgroundClip at (32,2260) size 200x200
+ RenderBlock (positioned) zI: -30 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -30 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,60) size 519x200 backgroundClip at (82,842) size 519x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (50,41) size 469x80
+ text run at (50,41) width 469: "\x{A0}8\x{A0}hide\x{A0}me"
+layer at (10,210) size 200x200 backgroundClip at (32,2894) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,60) size 200x200 backgroundClip at (82,2744) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (60,60) size 200x200 backgroundClip at (82,3378) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (60,60) size 200x200 backgroundClip at (82,4012) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (60,60) size 200x200 backgroundClip at (82,4677) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (10,210) size 200x200 backgroundClip at (32,992) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (210,410) size 200x200 backgroundClip at (232,2460) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (60,360) size 200x200 backgroundClip at (82,2410) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (10,210) size 200x200 backgroundClip at (32,3528) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (0,200) size 200x200 backgroundClip at (32,4162) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (0,200) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (0,200) size 200x200 backgroundClip at (32,4827) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (0,200) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,360) size 200x200 backgroundClip at (82,1142) size 200x200
+ RenderBlock (positioned) zI: -1 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (60,360) size 200x200 backgroundClip at (82,4312) size 200x200
+ RenderBlock (positioned) zI: -1 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (60,360) size 200x200 backgroundClip at (82,4977) size 200x200
+ RenderBlock (positioned) zI: -1 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (0,0) size 800x5251 layerType: foreground only
+ RenderBlock {HTML} at (0,0) size 800x5251
+ RenderBody {BODY} at (8,18) size 784x5219
+ RenderBlock {H1} at (0,0) size 784x33
+ RenderText {TEXT} at (0,0) size 305x33
+ text run at (0,0) width 305: "Layered Presentation"
+ RenderBlock {P} at (0,51) size 784x34
+ RenderText {TEXT} at (0,0) size 750x34
+ text run at (0,0) width 436: "Robert O'Callahan pointed out to me some mistakes in this test "
+ text run at (436,0) width 314: "that I have not yet had the time to examine or"
+ text run at (0,17) width 53: "correct."
+ RenderBlock {P} at (0,99) size 784x17
+ RenderText {TEXT} at (0,0) size 504x17
+ text run at (0,0) width 504: "In each of the following, 1 should be the top layer and 8 the bottom layer:"
+ RenderBlock {P} at (0,4568) size 784x17
+ RenderText {TEXT} at (0,0) size 382x17
+ text run at (0,0) width 382: "Using assumed default value of z-index (may not pass):"
+layer at (22,148) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,130) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (60,60) size 519x200 backgroundClip at (82,208) size 519x200
+ RenderBlock (positioned) {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText {TEXT} at (50,41) size 469x80
+ text run at (50,41) width 469: "\x{A0}8\x{A0}hide\x{A0}me"
+layer at (10,210) size 200x200 backgroundClip at (32,358) size 200x200
+ RenderBlock (positioned) {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,360) size 200x200 backgroundClip at (82,508) size 200x200
+ RenderBlock (positioned) {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (210,410) size 200x200 backgroundClip at (232,558) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (360,360) size 200x200 backgroundClip at (382,508) size 200x200
+ RenderBlock (positioned) {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (410,210) size 200x200 backgroundClip at (432,358) size 200x200
+ RenderBlock (positioned) {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,208) size 200x200
+ RenderBlock (positioned) {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,158) size 200x200
+ RenderBlock (positioned) {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (22,782) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,764) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (210,410) size 200x200 backgroundClip at (232,1192) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (22,1416) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,1398) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (210,410) size 200x200 backgroundClip at (232,1826) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (22,2050) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,2032) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (360,360) size 200x200 backgroundClip at (382,2410) size 200x200
+ RenderBlock (positioned) {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (410,210) size 200x200 backgroundClip at (432,2260) size 200x200
+ RenderBlock (positioned) {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (22,2684) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,2666) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (60,360) size 200x200 backgroundClip at (82,3044) size 200x200
+ RenderBlock (positioned) {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (210,410) size 200x200 backgroundClip at (232,3094) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (360,360) size 200x200 backgroundClip at (382,3044) size 200x200
+ RenderBlock (positioned) {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (22,3318) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,3300) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (10,10) size 600x600 backgroundClip at (32,3328) size 600x600 layerType: background only
+layer at (50,350) size 200x200 backgroundClip at (82,3678) size 200x200
+ RenderBlock (positioned) zI: -9 {P} at (50,350) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -9 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (10,10) size 600x600 backgroundClip at (32,3328) size 600x600 layerType: foreground only
+ RenderBlock (positioned) {DIV} at (10,10) size 600x600
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (200,400) size 200x200 backgroundClip at (232,3728) size 200x200
+ RenderBlock (positioned) {P} at (200,400) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (350,350) size 200x200 backgroundClip at (382,3678) size 200x200
+ RenderBlock (positioned) zI: 9 {P} at (350,350) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 9 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (22,3952) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,3934) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (10,10) size 600x600 backgroundClip at (32,3962) size 600x600
+ RenderBlock (positioned) {DIV} at (10,10) size 600x600
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (210,410) size 200x200 backgroundClip at (232,4362) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (22,4617) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,4599) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (10,10) size 600x600 backgroundClip at (32,4627) size 600x600
+ RenderBlock (positioned) {DIV} at (10,10) size 600x600
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (210,410) size 200x200 backgroundClip at (232,5027) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (360,360) size 200x200 backgroundClip at (382,1142) size 200x200
+ RenderBlock (positioned) zI: 1 {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (350,350) size 200x200 backgroundClip at (382,4312) size 200x200
+ RenderBlock (positioned) zI: 1 {P} at (350,350) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (350,350) size 200x200 backgroundClip at (382,4977) size 200x200
+ RenderBlock (positioned) zI: 1 {P} at (350,350) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (410,210) size 200x200 backgroundClip at (432,992) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,2110) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (410,210) size 200x200 backgroundClip at (432,3528) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (410,210) size 200x200 backgroundClip at (432,4162) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (410,210) size 200x200 backgroundClip at (432,4827) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,842) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,2060) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (360,60) size 200x200 backgroundClip at (382,3378) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (350,50) size 200x200 backgroundClip at (382,4012) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (350,50) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (350,50) size 200x200 backgroundClip at (382,4677) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (350,50) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,792) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (410,210) size 200x200 backgroundClip at (432,2894) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,2744) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,2694) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (210,10) size 200x200 backgroundClip at (232,3328) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (210,10) size 200x200 backgroundClip at (232,3962) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (210,10) size 200x200 backgroundClip at (232,4627) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (360,360) size 200x200 backgroundClip at (382,1776) size 200x200
+ RenderBlock (positioned) zI: 1000000 {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 1000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (410,210) size 200x200 backgroundClip at (432,1626) size 200x200
+ RenderBlock (positioned) zI: 2000000 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,1476) size 200x200
+ RenderBlock (positioned) zI: 3000000 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,1426) size 200x200
+ RenderBlock (positioned) zI: 4000000 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/051-diffs.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/051-diffs.txt
new file mode 100644
index 0000000..a3b3ba7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/051-diffs.txt
@@ -0,0 +1,30 @@
+--- /Users/darin/Labyrinth/Site/layout-tests/fast/block/positioning/051-expected.txt Wed May 7 19:35:54 2003
++++ /Users/darin/Labyrinth/Site/layout-tests/fast/block/positioning/051-actual.txt Wed Jul 30 17:00:44 2003
+@@ -21,10 +21,10 @@
+ RenderBlock (positioned) zI: -30 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -30 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+-layer at (60,60) size 521x200 backgroundClip at (82,842) size 521x200
++layer at (60,60) size 519x200 backgroundClip at (82,842) size 519x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+- RenderText zI: -3 {TEXT} at (50,41) size 471x80
+- text run at (50,41) width 471: "\x{A0}8\x{A0}hide\x{A0}me"
++ RenderText zI: -3 {TEXT} at (50,41) size 469x80
++ text run at (50,41) width 469: "\x{A0}8\x{A0}hide\x{A0}me"
+ layer at (10,210) size 200x200 backgroundClip at (32,2894) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+@@ -108,10 +108,10 @@
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+-layer at (60,60) size 521x200 backgroundClip at (82,208) size 521x200
++layer at (60,60) size 519x200 backgroundClip at (82,208) size 519x200
+ RenderBlock (positioned) {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+- RenderText {TEXT} at (50,41) size 471x80
+- text run at (50,41) width 471: "\x{A0}8\x{A0}hide\x{A0}me"
++ RenderText {TEXT} at (50,41) size 469x80
++ text run at (50,41) width 469: "\x{A0}8\x{A0}hide\x{A0}me"
+ layer at (10,210) size 200x200 backgroundClip at (32,358) size 200x200
+ RenderBlock (positioned) {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText {TEXT} at (71,41) size 57x80
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/051-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/051-expected.txt
new file mode 100644
index 0000000..9b51f99
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/051-expected.txt
@@ -0,0 +1,367 @@
+layer at (0,0) size 800x5251
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x5251 layerType: background only
+layer at (60,60) size 200x200 backgroundClip at (82,1476) size 200x200
+ RenderBlock (positioned) zI: -3000000 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (10,210) size 200x200 backgroundClip at (32,1626) size 200x200
+ RenderBlock (positioned) zI: -2000000 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,360) size 200x200 backgroundClip at (82,1776) size 200x200
+ RenderBlock (positioned) zI: -1000000 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -1000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (60,60) size 200x200 backgroundClip at (82,2110) size 200x200
+ RenderBlock (positioned) zI: -40 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -40 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (10,210) size 200x200 backgroundClip at (32,2260) size 200x200
+ RenderBlock (positioned) zI: -30 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -30 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,60) size 521x200 backgroundClip at (82,842) size 521x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (50,41) size 471x80
+ text run at (50,41) width 471: "\x{A0}8\x{A0}hide\x{A0}me"
+layer at (10,210) size 200x200 backgroundClip at (32,2894) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,60) size 200x200 backgroundClip at (82,2744) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (60,60) size 200x200 backgroundClip at (82,3378) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (60,60) size 200x200 backgroundClip at (82,4012) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (60,60) size 200x200 backgroundClip at (82,4677) size 200x200
+ RenderBlock (positioned) zI: -3 {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText zI: -3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "8"
+layer at (10,210) size 200x200 backgroundClip at (32,992) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (210,410) size 200x200 backgroundClip at (232,2460) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (60,360) size 200x200 backgroundClip at (82,2410) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (10,210) size 200x200 backgroundClip at (32,3528) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (0,200) size 200x200 backgroundClip at (32,4162) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (0,200) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (0,200) size 200x200 backgroundClip at (32,4827) size 200x200
+ RenderBlock (positioned) zI: -2 {P} at (0,200) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText zI: -2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,360) size 200x200 backgroundClip at (82,1142) size 200x200
+ RenderBlock (positioned) zI: -1 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (60,360) size 200x200 backgroundClip at (82,4312) size 200x200
+ RenderBlock (positioned) zI: -1 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (60,360) size 200x200 backgroundClip at (82,4977) size 200x200
+ RenderBlock (positioned) zI: -1 {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (0,0) size 800x5251 layerType: foreground only
+ RenderBlock {HTML} at (0,0) size 800x5251
+ RenderBody {BODY} at (8,18) size 784x5219
+ RenderBlock {H1} at (0,0) size 784x33
+ RenderText {TEXT} at (0,0) size 305x33
+ text run at (0,0) width 305: "Layered Presentation"
+ RenderBlock {P} at (0,51) size 784x34
+ RenderText {TEXT} at (0,0) size 750x34
+ text run at (0,0) width 436: "Robert O'Callahan pointed out to me some mistakes in this test "
+ text run at (436,0) width 314: "that I have not yet had the time to examine or"
+ text run at (0,17) width 53: "correct."
+ RenderBlock {P} at (0,99) size 784x17
+ RenderText {TEXT} at (0,0) size 504x17
+ text run at (0,0) width 504: "In each of the following, 1 should be the top layer and 8 the bottom layer:"
+ RenderBlock {P} at (0,4568) size 784x17
+ RenderText {TEXT} at (0,0) size 382x17
+ text run at (0,0) width 382: "Using assumed default value of z-index (may not pass):"
+layer at (22,148) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,130) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (60,60) size 521x200 backgroundClip at (82,208) size 521x200
+ RenderBlock (positioned) {P} at (60,60) size 200x200 [color=#FFFFFF] [bgcolor=#990066]
+ RenderText {TEXT} at (50,41) size 471x80
+ text run at (50,41) width 471: "\x{A0}8\x{A0}hide\x{A0}me"
+layer at (10,210) size 200x200 backgroundClip at (32,358) size 200x200
+ RenderBlock (positioned) {P} at (10,210) size 200x200 [color=#FFFFFF] [bgcolor=#660099]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "7"
+layer at (60,360) size 200x200 backgroundClip at (82,508) size 200x200
+ RenderBlock (positioned) {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (210,410) size 200x200 backgroundClip at (232,558) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (360,360) size 200x200 backgroundClip at (382,508) size 200x200
+ RenderBlock (positioned) {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (410,210) size 200x200 backgroundClip at (432,358) size 200x200
+ RenderBlock (positioned) {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,208) size 200x200
+ RenderBlock (positioned) {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,158) size 200x200
+ RenderBlock (positioned) {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (22,782) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,764) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (210,410) size 200x200 backgroundClip at (232,1192) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (22,1416) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,1398) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (210,410) size 200x200 backgroundClip at (232,1826) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (22,2050) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,2032) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (360,360) size 200x200 backgroundClip at (382,2410) size 200x200
+ RenderBlock (positioned) {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (410,210) size 200x200 backgroundClip at (432,2260) size 200x200
+ RenderBlock (positioned) {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (22,2684) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,2666) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (60,360) size 200x200 backgroundClip at (82,3044) size 200x200
+ RenderBlock (positioned) {P} at (60,360) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (210,410) size 200x200 backgroundClip at (232,3094) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (360,360) size 200x200 backgroundClip at (382,3044) size 200x200
+ RenderBlock (positioned) {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (22,3318) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,3300) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (10,10) size 600x600 backgroundClip at (32,3328) size 600x600 layerType: background only
+layer at (50,350) size 200x200 backgroundClip at (82,3678) size 200x200
+ RenderBlock (positioned) zI: -9 {P} at (50,350) size 200x200 [color=#FFFFFF] [bgcolor=#0000FF]
+ RenderText zI: -9 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "6"
+layer at (10,10) size 600x600 backgroundClip at (32,3328) size 600x600 layerType: foreground only
+ RenderBlock (positioned) {DIV} at (10,10) size 600x600
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (200,400) size 200x200 backgroundClip at (232,3728) size 200x200
+ RenderBlock (positioned) {P} at (200,400) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (350,350) size 200x200 backgroundClip at (382,3678) size 200x200
+ RenderBlock (positioned) zI: 9 {P} at (350,350) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 9 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (22,3952) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,3934) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (10,10) size 600x600 backgroundClip at (32,3962) size 600x600
+ RenderBlock (positioned) {DIV} at (10,10) size 600x600
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (210,410) size 200x200 backgroundClip at (232,4362) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (22,4617) size 620x620
+ RenderBlock (relative positioned) {DIV} at (14,4599) size 620x620
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (10,10) size 600x600 backgroundClip at (32,4627) size 600x600
+ RenderBlock (positioned) {DIV} at (10,10) size 600x600
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (210,410) size 200x200 backgroundClip at (232,5027) size 200x200
+ RenderBlock (positioned) {P} at (210,410) size 200x200 [color=#FFFFFF] [bgcolor=#009999]
+ RenderText {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "5"
+layer at (360,360) size 200x200 backgroundClip at (382,1142) size 200x200
+ RenderBlock (positioned) zI: 1 {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (350,350) size 200x200 backgroundClip at (382,4312) size 200x200
+ RenderBlock (positioned) zI: 1 {P} at (350,350) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (350,350) size 200x200 backgroundClip at (382,4977) size 200x200
+ RenderBlock (positioned) zI: 1 {P} at (350,350) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 1 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (410,210) size 200x200 backgroundClip at (432,992) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,2110) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (410,210) size 200x200 backgroundClip at (432,3528) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (410,210) size 200x200 backgroundClip at (432,4162) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (410,210) size 200x200 backgroundClip at (432,4827) size 200x200
+ RenderBlock (positioned) zI: 2 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,842) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,2060) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (360,60) size 200x200 backgroundClip at (382,3378) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (350,50) size 200x200 backgroundClip at (382,4012) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (350,50) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (350,50) size 200x200 backgroundClip at (382,4677) size 200x200
+ RenderBlock (positioned) zI: 3 {P} at (350,50) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,792) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (410,210) size 200x200 backgroundClip at (432,2894) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,2744) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,2694) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (210,10) size 200x200 backgroundClip at (232,3328) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (210,10) size 200x200 backgroundClip at (232,3962) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (210,10) size 200x200 backgroundClip at (232,4627) size 200x200
+ RenderBlock (positioned) zI: 4 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
+layer at (360,360) size 200x200 backgroundClip at (382,1776) size 200x200
+ RenderBlock (positioned) zI: 1000000 {P} at (360,360) size 200x200 [color=#FFFFFF] [bgcolor=#00CC00]
+ RenderText zI: 1000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "4"
+layer at (410,210) size 200x200 backgroundClip at (432,1626) size 200x200
+ RenderBlock (positioned) zI: 2000000 {P} at (410,210) size 200x200 [color=#FFFFFF] [bgcolor=#CCCC00]
+ RenderText zI: 2000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "3"
+layer at (360,60) size 200x200 backgroundClip at (382,1476) size 200x200
+ RenderBlock (positioned) zI: 3000000 {P} at (360,60) size 200x200 [color=#FFFFFF] [bgcolor=#FF9900]
+ RenderText zI: 3000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "2"
+layer at (210,10) size 200x200 backgroundClip at (232,1426) size 200x200
+ RenderBlock (positioned) zI: 4000000 {P} at (210,10) size 200x200 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText zI: 4000000 {TEXT} at (71,41) size 57x80
+ text run at (71,41) width 57: "1"
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/051.html b/third_party/WebKit/LayoutTests/fast/block/positioning/051.html
new file mode 100644
index 0000000..c5dd9f7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/051.html
@@ -0,0 +1,155 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html lang="en-US">
+<head>
+<title>Layered Presentation</title>
+<style type="text/css">
+
+div.contain {
+ position: relative;
+ height: 600px;
+ width: 600px;
+ border: 10px solid black;
+ margin: 1em;
+ }
+
+div.subcontain {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ }
+
+div.contain p {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ padding: 50px; /* 200px * 200px overall */
+ margin: 0;
+ border: none;
+ font: bold 80px/1 Verdana, Arial, sans-serif;
+ text-align: center;
+ color: white;
+ }
+
+.one { top: 0px; left: 200px; background: #f00; }
+.two { top: 50px; left: 350px; background: #f90; }
+.three{ top: 200px; left: 400px; background: #cc0; }
+.four { top: 350px; left: 350px; background: #0c0; }
+.five { top: 400px; left: 200px; background: #099; }
+.six { top: 350px; left: 50px; background: #00f; }
+.seven{ top: 200px; left: 0px; background: #609; }
+.eight{ top: 50px; left: 50px; background: #906; }
+
+</style>
+</head>
+<body>
+<h1>Layered Presentation</h1>
+
+<p>
+
+ Robert O'Callahan pointed out to me some mistakes in this test
+ that I have not yet had the time to examine or correct.
+
+</p>
+
+<p>In each of the following, 1 should be the top layer and 8 the
+bottom layer:</p>
+
+<div class="contain">
+ <p class="eight">&nbsp;8&nbsp;hide&nbsp;me</p>
+ <p class="seven">7</p>
+ <p class="six">6</p>
+ <p class="five">5</p>
+ <p class="four">4</p>
+ <p class="three">3</p>
+ <p class="two">2</p>
+ <p class="one">1</p>
+</div>
+
+<div class="contain">
+ <p class="one" style="z-index: 4">1</p>
+ <p class="two" style="z-index: 3">2</p>
+ <p class="three" style="z-index: 2">3</p>
+ <p class="four" style="z-index: 1">4</p>
+ <p class="five" style="z-index: 0">5</p>
+ <p class="six" style="z-index: -1">6</p>
+ <p class="seven" style="z-index: -2">7</p>
+ <p class="eight" style="z-index: -3">&nbsp;8&nbsp;hide&nbsp;me</p>
+</div>
+
+<div class="contain">
+ <p class="one" style="z-index: 4000000">1</p>
+ <p class="two" style="z-index: 3000000">2</p>
+ <p class="three" style="z-index: 2000000">3</p>
+ <p class="four" style="z-index: 1000000">4</p>
+ <p class="five" style="z-index: 0">5</p>
+ <p class="six" style="z-index: -1000000">6</p>
+ <p class="seven" style="z-index: -2000000">7</p>
+ <p class="eight" style="z-index: -3000000">8</p>
+</div>
+
+<div class="contain">
+ <p class="one" style="z-index: 3">1</p>
+ <p class="two" style="z-index: +2">2</p>
+ <p class="four" style="z-index: +0">4</p>
+ <p class="three" style="z-index: -0">3</p>
+ <p class="six" style="z-index: -2">6</p> <!-- determined by order in doc -->
+ <p class="five" style="z-index: -2">5</p>
+ <p class="seven" style="z-index: -30">7</p>
+ <p class="eight" style="z-index: -040">8</p> <!-- decimal, not octal -->
+</div>
+
+<div class="contain">
+ <p class="six" style="z-index: 0">6</p>
+ <p class="five" style="z-index: 0">5</p>
+ <p class="four" style="z-index: 0">4</p>
+ <p class="eight" style="z-index: -3">8</p>
+ <p class="seven" style="z-index: -3">7</p>
+ <p class="three" style="z-index: 4">3</p>
+ <p class="two" style="z-index: 4">2</p>
+ <p class="one" style="z-index: 4">1</p>
+</div>
+
+<div class="contain">
+ <p class="one" style="z-index: 4">1</p>
+ <p class="two" style="z-index: 3">2</p>
+ <p class="three" style="z-index: 2">3</p>
+ <div class="subcontain" style="z-index: 0">
+ <p class="four" style="z-index: 9">4</p>
+ <p class="five" style="z-index: 0">5</p>
+ <p class="six" style="z-index: -9">6</p>
+ </div>
+ <p class="seven" style="z-index: -2">7</p>
+ <p class="eight" style="z-index: -3">8</p>
+</div>
+
+
+<div class="contain">
+ <div class="subcontain" style="z-index: auto">
+ <p class="four" style="z-index: 1">4</p>
+ <p class="two" style="z-index: 3">2</p>
+ <p class="seven" style="z-index: -2">7</p>
+ </div>
+ <p class="three" style="z-index: 2">3</p>
+ <p class="five" style="z-index: 0">5</p>
+ <p class="six" style="z-index: -1">6</p>
+ <p class="one" style="z-index: 4">1</p>
+ <p class="eight" style="z-index: -3">8</p>
+</div>
+
+<p>Using assumed default value of z-index (may not pass):</p>
+<div class="contain">
+ <div class="subcontain"> <!-- ASSUMED z-index of auto -->
+ <p class="four" style="z-index: 1">4</p>
+ <p class="two" style="z-index: 3">2</p>
+ <p class="seven" style="z-index: -2">7</p>
+ </div>
+ <p class="three" style="z-index: 2">3</p>
+ <p class="five" style="z-index: 0">5</p>
+ <p class="six" style="z-index: -1">6</p>
+ <p class="one" style="z-index: 4">1</p>
+ <p class="eight" style="z-index: -3">8</p>
+</div>
+
+</body></html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/052-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/052-expected.txt
new file mode 100644
index 0000000..3d91369e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/052-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (108,8) size 35x17
+ RenderInline (relative positioned) {SPAN} at (0,0) size 35x17
+ RenderText {TEXT} at (0,0) size 35x17
+ text run at (0,0) width 35: "Hello"
+layer at (50,50) size 35x17 backgroundClip at (158,58) size 35x17
+ RenderBlock (positioned) {DIV} at (50,50) size 35x17 [color=#FFFFFF] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 35x17
+ text run at (0,0) width 35: "Hello"
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/052.html b/third_party/WebKit/LayoutTests/fast/block/positioning/052.html
new file mode 100644
index 0000000..d14855f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/052.html
@@ -0,0 +1,9 @@
+<html>
+<body>
+<div>
+<span style="position:relative;left:100px">Hello
+<div style="position:absolute;left:50px;top:50px;background-color:green;color:white">Hello</div>
+</span>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/053-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/053-expected.txt
new file mode 100644
index 0000000..193e282
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/053-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x98
+ RenderBlock {HTML} at (0,0) size 800x98
+ RenderBody {BODY} at (8,8) size 784x82
+ RenderBlock {DIV} at (0,0) size 770x82 [bgcolor=#000000]
+layer at (8,8) size 770x82
+ RenderBlock (relative positioned) {DIV} at (0,0) size 770x82 [bgcolor=#FF0000]
+ RenderTable {TABLE} at (0,0) size 105x65 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x65
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 101x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 99x17
+ text run at (1,1) width 99: "Some content."
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,23) size 101x19 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 97x17
+ text run at (1,1) width 97: "more content."
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,44) size 101x19 [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 77x17
+ text run at (1,1) width 77: "even more."
+ RenderBlock {DIV} at (0,65) size 770x17 [color=#FFFFFF] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 160x17
+ text run at (0,0) width 160: "Hello. Here I am below."
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/053.html b/third_party/WebKit/LayoutTests/fast/block/positioning/053.html
new file mode 100644
index 0000000..7f4a143
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/053.html
@@ -0,0 +1,11 @@
+<html>
+<div style="width:770px; background-color:black">
+<div style="position:relative;background-color:red">
+<table><tr><td>Some content.
+<tr><td>more content.
+<tr><td>even more.
+</table>
+<div style="background-color:green;color:white">
+Hello. Here I am below.
+</div>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/054-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/054-expected.txt
new file mode 100644
index 0000000..4e357f6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/054-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8 layerType: background only
+layer at (8,8) size 35x17
+ RenderBlock (positioned) zI: -1 {DIV} at (8,8) size 35x17
+ RenderText zI: -1 {TEXT} at (0,0) size 35x17
+ text run at (0,0) width 35: "Hello"
+layer at (0,0) size 800x8 layerType: foreground only
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/054.html b/third_party/WebKit/LayoutTests/fast/block/positioning/054.html
new file mode 100644
index 0000000..dae88bd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/054.html
@@ -0,0 +1,5 @@
+<html><body>
+<div style="position:absolute; z-index:-1;">
+Hello
+</div>
+</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/055-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/055-expected.txt
new file mode 100644
index 0000000..8624426
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/055-expected.txt
@@ -0,0 +1,372 @@
+layer at (0,0) size 800x2048
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 132x17
+ text run at (0,0) width 132: "Content at the end."
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 18x2040 backgroundClip at (8,8) size 18x2040
+ RenderBlock (positioned) {DIV} at (0,0) size 18x2040
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "1"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,17) size 9x17
+ text run at (0,17) width 9: "2"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,34) size 9x17
+ text run at (0,34) width 9: "3"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,51) size 9x17
+ text run at (0,51) width 9: "4"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,68) size 9x17
+ text run at (0,68) width 9: "5"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,85) size 9x17
+ text run at (0,85) width 9: "6"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,102) size 9x17
+ text run at (0,102) width 9: "7"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,119) size 9x17
+ text run at (0,119) width 9: "8"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,136) size 9x17
+ text run at (0,136) width 9: "9"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,153) size 18x17
+ text run at (0,153) width 18: "10"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,170) size 18x17
+ text run at (0,170) width 18: "11"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,187) size 18x17
+ text run at (0,187) width 18: "12"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,204) size 18x17
+ text run at (0,204) width 18: "13"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,221) size 18x17
+ text run at (0,221) width 18: "14"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,238) size 18x17
+ text run at (0,238) width 18: "15"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,255) size 18x17
+ text run at (0,255) width 18: "16"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,272) size 18x17
+ text run at (0,272) width 18: "17"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,289) size 18x17
+ text run at (0,289) width 18: "18"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,306) size 18x17
+ text run at (0,306) width 18: "19"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,323) size 18x17
+ text run at (0,323) width 18: "20"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,340) size 9x17
+ text run at (0,340) width 9: "1"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,357) size 9x17
+ text run at (0,357) width 9: "2"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,374) size 9x17
+ text run at (0,374) width 9: "3"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,391) size 9x17
+ text run at (0,391) width 9: "4"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,408) size 9x17
+ text run at (0,408) width 9: "5"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,425) size 9x17
+ text run at (0,425) width 9: "6"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,442) size 9x17
+ text run at (0,442) width 9: "7"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,459) size 9x17
+ text run at (0,459) width 9: "8"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,476) size 9x17
+ text run at (0,476) width 9: "9"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,493) size 18x17
+ text run at (0,493) width 18: "10"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,510) size 18x17
+ text run at (0,510) width 18: "11"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,527) size 18x17
+ text run at (0,527) width 18: "12"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,544) size 18x17
+ text run at (0,544) width 18: "13"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,561) size 18x17
+ text run at (0,561) width 18: "14"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,578) size 18x17
+ text run at (0,578) width 18: "15"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,595) size 18x17
+ text run at (0,595) width 18: "16"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,612) size 18x17
+ text run at (0,612) width 18: "17"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,629) size 18x17
+ text run at (0,629) width 18: "18"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,646) size 18x17
+ text run at (0,646) width 18: "19"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,663) size 18x17
+ text run at (0,663) width 18: "20"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,680) size 9x17
+ text run at (0,680) width 9: "1"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,697) size 9x17
+ text run at (0,697) width 9: "2"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,714) size 9x17
+ text run at (0,714) width 9: "3"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,731) size 9x17
+ text run at (0,731) width 9: "4"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,748) size 9x17
+ text run at (0,748) width 9: "5"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,765) size 9x17
+ text run at (0,765) width 9: "6"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,782) size 9x17
+ text run at (0,782) width 9: "7"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,799) size 9x17
+ text run at (0,799) width 9: "8"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,816) size 9x17
+ text run at (0,816) width 9: "9"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,833) size 18x17
+ text run at (0,833) width 18: "10"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,850) size 18x17
+ text run at (0,850) width 18: "11"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,867) size 18x17
+ text run at (0,867) width 18: "12"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,884) size 18x17
+ text run at (0,884) width 18: "13"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,901) size 18x17
+ text run at (0,901) width 18: "14"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,918) size 18x17
+ text run at (0,918) width 18: "15"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,935) size 18x17
+ text run at (0,935) width 18: "16"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,952) size 18x17
+ text run at (0,952) width 18: "17"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,969) size 18x17
+ text run at (0,969) width 18: "18"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,986) size 18x17
+ text run at (0,986) width 18: "19"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1003) size 18x17
+ text run at (0,1003) width 18: "20"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1020) size 9x17
+ text run at (0,1020) width 9: "1"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1037) size 9x17
+ text run at (0,1037) width 9: "2"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1054) size 9x17
+ text run at (0,1054) width 9: "3"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1071) size 9x17
+ text run at (0,1071) width 9: "4"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1088) size 9x17
+ text run at (0,1088) width 9: "5"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1105) size 9x17
+ text run at (0,1105) width 9: "6"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1122) size 9x17
+ text run at (0,1122) width 9: "7"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1139) size 9x17
+ text run at (0,1139) width 9: "8"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1156) size 9x17
+ text run at (0,1156) width 9: "9"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1173) size 18x17
+ text run at (0,1173) width 18: "10"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1190) size 18x17
+ text run at (0,1190) width 18: "11"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1207) size 18x17
+ text run at (0,1207) width 18: "12"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1224) size 18x17
+ text run at (0,1224) width 18: "13"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1241) size 18x17
+ text run at (0,1241) width 18: "14"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1258) size 18x17
+ text run at (0,1258) width 18: "15"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1275) size 18x17
+ text run at (0,1275) width 18: "16"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1292) size 18x17
+ text run at (0,1292) width 18: "17"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1309) size 18x17
+ text run at (0,1309) width 18: "18"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1326) size 18x17
+ text run at (0,1326) width 18: "19"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1343) size 18x17
+ text run at (0,1343) width 18: "20"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1360) size 9x17
+ text run at (0,1360) width 9: "1"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1377) size 9x17
+ text run at (0,1377) width 9: "2"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1394) size 9x17
+ text run at (0,1394) width 9: "3"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1411) size 9x17
+ text run at (0,1411) width 9: "4"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1428) size 9x17
+ text run at (0,1428) width 9: "5"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1445) size 9x17
+ text run at (0,1445) width 9: "6"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1462) size 9x17
+ text run at (0,1462) width 9: "7"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1479) size 9x17
+ text run at (0,1479) width 9: "8"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1496) size 9x17
+ text run at (0,1496) width 9: "9"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1513) size 18x17
+ text run at (0,1513) width 18: "10"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1530) size 18x17
+ text run at (0,1530) width 18: "11"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1547) size 18x17
+ text run at (0,1547) width 18: "12"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1564) size 18x17
+ text run at (0,1564) width 18: "13"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1581) size 18x17
+ text run at (0,1581) width 18: "14"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1598) size 18x17
+ text run at (0,1598) width 18: "15"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1615) size 18x17
+ text run at (0,1615) width 18: "16"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1632) size 18x17
+ text run at (0,1632) width 18: "17"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1649) size 18x17
+ text run at (0,1649) width 18: "18"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1666) size 18x17
+ text run at (0,1666) width 18: "19"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1683) size 18x17
+ text run at (0,1683) width 18: "20"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1700) size 9x17
+ text run at (0,1700) width 9: "1"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1717) size 9x17
+ text run at (0,1717) width 9: "2"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1734) size 9x17
+ text run at (0,1734) width 9: "3"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1751) size 9x17
+ text run at (0,1751) width 9: "4"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1768) size 9x17
+ text run at (0,1768) width 9: "5"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1785) size 9x17
+ text run at (0,1785) width 9: "6"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1802) size 9x17
+ text run at (0,1802) width 9: "7"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1819) size 9x17
+ text run at (0,1819) width 9: "8"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1836) size 9x17
+ text run at (0,1836) width 9: "9"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1853) size 18x17
+ text run at (0,1853) width 18: "10"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1870) size 18x17
+ text run at (0,1870) width 18: "11"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1887) size 18x17
+ text run at (0,1887) width 18: "12"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1904) size 18x17
+ text run at (0,1904) width 18: "13"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1921) size 18x17
+ text run at (0,1921) width 18: "14"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1938) size 18x17
+ text run at (0,1938) width 18: "15"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1955) size 18x17
+ text run at (0,1955) width 18: "16"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1972) size 18x17
+ text run at (0,1972) width 18: "17"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,1989) size 18x17
+ text run at (0,1989) width 18: "18"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,2006) size 18x17
+ text run at (0,2006) width 18: "19"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,2023) size 18x17
+ text run at (0,2023) width 18: "20"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/055.html b/third_party/WebKit/LayoutTests/fast/block/positioning/055.html
new file mode 100644
index 0000000..303ea91
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/055.html
@@ -0,0 +1,134 @@
+<html>
+<body>
+<div style="position: relative;">
+<div style="position: absolute;">
+1<br>
+2<br>
+3<br>
+4<br>
+5<br>
+6<br>
+7<br>
+8<br>
+9<br>
+10<br>
+11<br>
+12<br>
+13<br>
+14<br>
+15<br>
+16<br>
+17<br>
+18<br>
+19<br>
+20<br>
+1<br>
+2<br>
+3<br>
+4<br>
+5<br>
+6<br>
+7<br>
+8<br>
+9<br>
+10<br>
+11<br>
+12<br>
+13<br>
+14<br>
+15<br>
+16<br>
+17<br>
+18<br>
+19<br>
+20<br>
+
+1<br>
+2<br>
+3<br>
+4<br>
+5<br>
+6<br>
+7<br>
+8<br>
+9<br>
+10<br>
+11<br>
+12<br>
+13<br>
+14<br>
+15<br>
+16<br>
+17<br>
+18<br>
+19<br>
+20<br>
+
+1<br>
+2<br>
+3<br>
+4<br>
+5<br>
+6<br>
+7<br>
+8<br>
+9<br>
+10<br>
+11<br>
+12<br>
+13<br>
+14<br>
+15<br>
+16<br>
+17<br>
+18<br>
+19<br>
+20<br>
+
+1<br>
+2<br>
+3<br>
+4<br>
+5<br>
+6<br>
+7<br>
+8<br>
+9<br>
+10<br>
+11<br>
+12<br>
+13<br>
+14<br>
+15<br>
+16<br>
+17<br>
+18<br>
+19<br>
+20<br>
+
+1<br>
+2<br>
+3<br>
+4<br>
+5<br>
+6<br>
+7<br>
+8<br>
+9<br>
+10<br>
+11<br>
+12<br>
+13<br>
+14<br>
+15<br>
+16<br>
+17<br>
+18<br>
+19<br>
+20<br>
+
+</div>
+</div>
+Content at the end.
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/001-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/001-expected.txt
new file mode 100644
index 0000000..5fc769c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/001-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x73
+ RenderBlock {HTML} at (0,0) size 800x73
+ RenderBody {BODY} at (8,8) size 784x51
+ RenderBlock {P} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 776x51
+ text run at (0,0) width 615: "In this test, you should see three blocks that are centered horizontally within a black box. "
+ text run at (615,0) width 161: "They should be stacked"
+ text run at (0,17) width 390: "vertically with the green box in between two olive boxes. "
+ text run at (390,17) width 338: "The olive boxes and the green box should be 100"
+ text run at (728,17) width 41: "x100,"
+ text run at (0,34) width 499: "and there should be 50 pixels of padding on either side of the box stack."
+layer at (8,73) size 240x340
+ RenderBlock (positioned) {DIV} at (8,73) size 240x340
+ RenderBlock {DIV} at (70,70) size 100x0
+layer at (70,120) size 100x100 backgroundClip at (78,193) size 100x100
+ RenderBlock (positioned) {SPAN} at (70,120) size 100x100 [bgcolor=#008000]
+layer at (70,20) size 100x100 backgroundClip at (78,93) size 100x100
+ RenderBlock (positioned) {DIV} at (70,20) size 100x100 [bgcolor=#808000]
+layer at (70,220) size 100x100 backgroundClip at (78,293) size 100x100
+ RenderBlock (positioned) {DIV} at (70,220) size 100x100 [bgcolor=#808000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/001.html b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/001.html
new file mode 100644
index 0000000..c84d598
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/001.html
@@ -0,0 +1,15 @@
+<html>
+<body>
+<p>
+In this test, you should see three blocks that are centered horizontally within a black box. They should
+be stacked vertically with the green box in between two olive boxes. The olive boxes and the green box
+should be 100x100, and there should be 50 pixels of padding on either side of the box stack.
+</p>
+<div style="position:absolute;width:100px;height:200px;border:20px solid black;padding:50px;">
+<div style="margin-bottom:50px"></div>
+<span style="position:absolute;margin-top:50px;width:100px;height:100px;background-color:green"></span>
+<div style="position:absolute;width:100px;height:100px;background-color:olive;top:0px"></div>
+<div style="position:absolute;width:100px;height:100px;background-color:olive;top:200px"></div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/002-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/002-expected.txt
new file mode 100644
index 0000000..c784e0a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/002-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x73
+ RenderBlock {HTML} at (0,0) size 800x73
+ RenderBody {BODY} at (8,8) size 784x51
+ RenderBlock {P} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 783x51
+ text run at (0,0) width 557: "In this test, you should see three blocks that are aligned right within a black box. "
+ text run at (557,0) width 226: "They should be stacked vertically"
+ text run at (0,17) width 325: "with the green box in between two olive boxes. "
+ text run at (325,17) width 338: "The olive boxes and the green box should be 100"
+ text run at (663,17) width 111: "x100, and there"
+ text run at (0,34) width 457: "should be 100 pixels of padding on the right side of the box stack."
+layer at (8,73) size 240x340
+ RenderBlock (positioned) {DIV} at (8,73) size 240x340
+ RenderBlock {DIV} at (20,70) size 100x0
+layer at (120,120) size 100x100 backgroundClip at (128,193) size 100x100
+ RenderBlock (positioned) {DIV} at (120,120) size 100x100 [bgcolor=#008000]
+layer at (120,20) size 100x100 backgroundClip at (128,93) size 100x100
+ RenderBlock (positioned) {DIV} at (120,20) size 100x100 [bgcolor=#808000]
+layer at (120,220) size 100x100 backgroundClip at (128,293) size 100x100
+ RenderBlock (positioned) {DIV} at (120,220) size 100x100 [bgcolor=#808000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/002.html b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/002.html
new file mode 100644
index 0000000..8b33ceb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/002.html
@@ -0,0 +1,15 @@
+<html>
+<body>
+<p>
+In this test, you should see three blocks that are aligned right within a black box. They should
+be stacked vertically with the green box in between two olive boxes. The olive boxes and the green box
+should be 100x100, and there should be 100 pixels of padding on the right side of the box stack.
+</p>
+<div style="position:absolute;width:100px;height:200px;border:20px solid black;padding-top:50px;padding-bottom:50px;padding-left:px;padding-right:100px">
+<div style="margin-bottom:50px"></div>
+<div style="margin-left:100px;position:absolute;margin-top:50px;width:100px;height:100px;background-color:green"></div>
+<div style="margin-left:100px;position:absolute;width:100px;height:100px;background-color:olive;top:0px"></div>
+<div style="margin-left:100px;position:absolute;width:100px;height:100px;background-color:olive;top:200px"></div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/003-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/003-expected.txt
new file mode 100644
index 0000000..0d2f706
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/003-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x73
+ RenderBlock {HTML} at (0,0) size 800x73
+ RenderBody {BODY} at (8,8) size 784x51
+ RenderBlock {P} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 783x51
+ text run at (0,0) width 557: "In this test, you should see three blocks that are aligned right within a black box. "
+ text run at (557,0) width 226: "They should be stacked vertically"
+ text run at (0,17) width 325: "with the green box in between two olive boxes. "
+ text run at (325,17) width 338: "The olive boxes and the green box should be 100"
+ text run at (663,17) width 111: "x100, and there"
+ text run at (0,34) width 457: "should be 100 pixels of padding on the right side of the box stack."
+layer at (8,73) size 240x340
+ RenderBlock (positioned) {DIV} at (8,73) size 240x340
+ RenderBlock {DIV} at (120,70) size 100x0
+layer at (120,120) size 100x100 backgroundClip at (128,193) size 100x100
+ RenderBlock (positioned) {DIV} at (120,120) size 100x100 [bgcolor=#008000]
+layer at (120,20) size 100x100 backgroundClip at (128,93) size 100x100
+ RenderBlock (positioned) {DIV} at (120,20) size 100x100 [bgcolor=#808000]
+layer at (120,220) size 100x100 backgroundClip at (128,293) size 100x100
+ RenderBlock (positioned) {DIV} at (120,220) size 100x100 [bgcolor=#808000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/003.html b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/003.html
new file mode 100644
index 0000000..8e73b8a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/003.html
@@ -0,0 +1,15 @@
+<html>
+<body>
+<p>
+In this test, you should see three blocks that are aligned right within a black box. They should
+be stacked vertically with the green box in between two olive boxes. The olive boxes and the green box
+should be 100x100, and there should be 100 pixels of padding on the right side of the box stack.
+</p>
+<div style="direction:rtl; position:fixed;width:100px;height:200px;border:20px solid black;padding-top:50px;padding-bottom:50px;padding-left:100px;padding-right:0px">
+<div></div>
+<div style="margin-left:800px;position:absolute;margin-top:50px;width:100px;height:100px;background-color:green"></div>
+<div style="position:absolute;width:100px;height:100px;background-color:olive;top:0px"></div>
+<div style="right:0px; position:absolute;width:100px;height:100px;background-color:olive;top:200px"></div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/004-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/004-expected.txt
new file mode 100644
index 0000000..0d2f706
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/004-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x73
+ RenderBlock {HTML} at (0,0) size 800x73
+ RenderBody {BODY} at (8,8) size 784x51
+ RenderBlock {P} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 783x51
+ text run at (0,0) width 557: "In this test, you should see three blocks that are aligned right within a black box. "
+ text run at (557,0) width 226: "They should be stacked vertically"
+ text run at (0,17) width 325: "with the green box in between two olive boxes. "
+ text run at (325,17) width 338: "The olive boxes and the green box should be 100"
+ text run at (663,17) width 111: "x100, and there"
+ text run at (0,34) width 457: "should be 100 pixels of padding on the right side of the box stack."
+layer at (8,73) size 240x340
+ RenderBlock (positioned) {DIV} at (8,73) size 240x340
+ RenderBlock {DIV} at (120,70) size 100x0
+layer at (120,120) size 100x100 backgroundClip at (128,193) size 100x100
+ RenderBlock (positioned) {DIV} at (120,120) size 100x100 [bgcolor=#008000]
+layer at (120,20) size 100x100 backgroundClip at (128,93) size 100x100
+ RenderBlock (positioned) {DIV} at (120,20) size 100x100 [bgcolor=#808000]
+layer at (120,220) size 100x100 backgroundClip at (128,293) size 100x100
+ RenderBlock (positioned) {DIV} at (120,220) size 100x100 [bgcolor=#808000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/004.html b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/004.html
new file mode 100644
index 0000000..c741749
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/004.html
@@ -0,0 +1,15 @@
+<html>
+<body>
+<p>
+In this test, you should see three blocks that are aligned right within a black box. They should
+be stacked vertically with the green box in between two olive boxes. The olive boxes and the green box
+should be 100x100, and there should be 100 pixels of padding on the right side of the box stack.
+</p>
+<div style="direction:rtl; position:absolute;width:100px;height:200px;border:20px solid black;padding-top:50px;padding-bottom:50px;padding-left:100px;padding-right:0px">
+<div></div>
+<div style="margin-left:800px;position:absolute;margin-top:50px;width:100px;height:100px;background-color:green"></div>
+<div style="position:absolute;width:100px;height:100px;background-color:olive;top:0px"></div>
+<div style="right:0px; position:absolute;width:100px;height:100px;background-color:olive;top:200px"></div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/005-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/005-expected.txt
new file mode 100644
index 0000000..109f6b6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/005-expected.txt
@@ -0,0 +1,29 @@
+layer at (0,0) size 951x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x84
+ RenderBlock {HTML} at (0,0) size 800x84
+ RenderBody {BODY} at (8,8) size 784x68
+ RenderText {TEXT} at (0,0) size 783x68
+ text run at (0,0) width 557: "In this test, you should see three blocks that are aligned right within a black box. "
+ text run at (557,0) width 226: "They should be stacked vertically"
+ text run at (0,17) width 325: "with the green box in between two olive boxes. "
+ text run at (325,17) width 338: "The olive boxes and the green box should be 100"
+ text run at (663,17) width 111: "x100, and there"
+ text run at (0,34) width 461: "should be 100 pixels of padding on the right side of the box stack. "
+ text run at (461,34) width 318: "The black box's top should be aligned with the"
+ text run at (0,51) width 703: "end of the last line in this parargaph and its left side should begin right after the end of this sentence. "
+ RenderText {TEXT} at (703,51) size 4x17
+ text run at (703,51) width 4: " "
+ RenderText {TEXT} at (707,51) size 4x17
+ text run at (707,51) width 4: " "
+layer at (711,59) size 240x340
+ RenderBlock (positioned) {SPAN} at (711,59) size 240x340
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (120,120) size 100x100 backgroundClip at (831,179) size 100x100
+ RenderBlock (positioned) {DIV} at (120,120) size 100x100 [bgcolor=#008000]
+layer at (120,20) size 100x100 backgroundClip at (831,79) size 100x100
+ RenderBlock (positioned) {DIV} at (120,20) size 100x100 [bgcolor=#808000]
+layer at (120,220) size 100x100 backgroundClip at (831,279) size 100x100
+ RenderBlock (positioned) {DIV} at (120,220) size 100x100 [bgcolor=#808000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/005.html b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/005.html
new file mode 100644
index 0000000..e015332
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/005.html
@@ -0,0 +1,14 @@
+<html>
+<body>
+In this test, you should see three blocks that are aligned right within a black box. They should
+be stacked vertically with the green box in between two olive boxes. The olive boxes and the green box
+should be 100x100, and there should be 100 pixels of padding on the right side of the box stack. The
+black box's top should be aligned with the end of the last line in this parargaph and its left side should begin right after the end of this sentence.
+
+ <span style="direction:rtl; position:absolute;width:100px;height:200px;border:20px solid black;padding-top:50px;padding-bottom:50px;padding-left:100px;padding-right:0px">
+<div style="margin-left:800px;position:absolute;margin-top:50px;width:100px;height:100px;background-color:green"></div>
+<div style="position:absolute;width:100px;height:100px;background-color:olive;top:0px"></div>
+<div style="right:0px; position:absolute;width:100px;height:100px;background-color:olive;top:200px"></div>
+</span>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/006-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/006-expected.txt
new file mode 100644
index 0000000..1a4c6cc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/006-expected.txt
@@ -0,0 +1,31 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x121
+ RenderBlock {HTML} at (0,0) size 800x121
+ RenderBody {BODY} at (8,8) size 784x99
+ RenderBlock (anonymous) at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 783x51
+ text run at (0,0) width 557: "In this test, you should see three blocks that are aligned right within a black box. "
+ text run at (557,0) width 226: "They should be stacked vertically"
+ text run at (0,17) width 325: "with the green box in between two olive boxes. "
+ text run at (325,17) width 338: "The olive boxes and the green box should be 100"
+ text run at (663,17) width 111: "x100, and there"
+ text run at (0,34) width 457: "should be 100 pixels of padding on the right side of the box stack."
+ RenderBlock {P} at (0,65) size 784x34
+ RenderText {TEXT} at (10,0) size 774x34
+ text run at (10,0) width 774: "The black box's top should be aligned with the end of the last line in this parargaph and its left side should begin"
+ text run at (537,17) width 9: ". "
+ text run at (546,17) width 238: "right after the end of this sentence"
+ RenderText {TEXT} at (533,17) size 4x17
+ text run at (533,17) width 4: " "
+layer at (305,90) size 240x340
+ RenderBlock (positioned) {SPAN} at (305,90) size 240x340
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (120,120) size 100x100 backgroundClip at (425,210) size 100x100
+ RenderBlock (positioned) {DIV} at (120,120) size 100x100 [bgcolor=#008000]
+layer at (120,20) size 100x100 backgroundClip at (425,110) size 100x100
+ RenderBlock (positioned) {DIV} at (120,20) size 100x100 [bgcolor=#808000]
+layer at (120,220) size 100x100 backgroundClip at (425,310) size 100x100
+ RenderBlock (positioned) {DIV} at (120,220) size 100x100 [bgcolor=#808000]
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/006.html b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/006.html
new file mode 100644
index 0000000..d600012
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/006.html
@@ -0,0 +1,17 @@
+<html>
+<body>
+In this test, you should see three blocks that are aligned right within a black box. They should
+be stacked vertically with the green box in between two olive boxes. The olive boxes and the green box
+should be 100x100, and there should be 100 pixels of padding on the right side of the box stack.
+
+<p style="direction:rtl">The
+black box's top should be aligned with the end of the last line in this parargaph and its left side should begin right after the end of this sentence.
+
+ <span style="direction:rtl; position:absolute;width:100px;height:200px;border:20px solid black;padding-top:50px;padding-bottom:50px;padding-left:100px;padding-right:0px">
+<div style="margin-left:800px;position:absolute;margin-top:50px;width:100px;height:100px;background-color:green"></div>
+<div style="position:absolute;width:100px;height:100px;background-color:olive;top:0px"></div>
+<div style="right:0px; position:absolute;width:100px;height:100px;background-color:olive;top:200px"></div>
+</span>
+</p>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/007-expected.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/007-expected.txt
new file mode 100644
index 0000000..212b0c9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/007-expected.txt
@@ -0,0 +1,49 @@
+layer at (0,0) size 800x1650
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (8,8) size 244x1642
+ RenderBlock (positioned) {DIV} at (8,8) size 244x1642
+ RenderBlock {P} at (0,72) size 244x85
+ RenderInline {A} at (0,0) size 198x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x85
+ text run at (0,0) width 198: "link 1"
+ RenderBlock {P} at (0,229) size 244x85
+ RenderInline {A} at (0,0) size 198x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x85
+ text run at (0,0) width 198: "link 2"
+ RenderBlock {P} at (0,386) size 244x85
+ RenderInline {A} at (0,0) size 198x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x85
+ text run at (0,0) width 198: "link 3"
+ RenderBlock {P} at (0,543) size 244x85
+ RenderInline {A} at (0,0) size 198x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x85
+ text run at (0,0) width 198: "link 4"
+ RenderBlock {P} at (0,700) size 244x85
+ RenderInline {A} at (0,0) size 198x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x85
+ text run at (0,0) width 198: "link 5"
+ RenderBlock {P} at (0,857) size 244x85
+ RenderInline {A} at (0,0) size 198x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x85
+ text run at (0,0) width 198: "link 6"
+ RenderBlock {P} at (0,1014) size 244x85
+ RenderInline {A} at (0,0) size 198x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x85
+ text run at (0,0) width 198: "link 7"
+ RenderBlock {P} at (0,1171) size 244x85
+ RenderInline {A} at (0,0) size 198x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x85
+ text run at (0,0) width 198: "link 8"
+ RenderBlock {P} at (0,1328) size 244x85
+ RenderInline {A} at (0,0) size 198x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x85
+ text run at (0,0) width 198: "link 9"
+ RenderBlock {P} at (0,1485) size 244x85
+ RenderInline {A} at (0,0) size 244x85 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 244x85
+ text run at (0,0) width 244: "link 10"
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/auto/007.html b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/007.html
new file mode 100644
index 0000000..030c113
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/auto/007.html
@@ -0,0 +1,16 @@
+<html>
+<body>
+<div style="position: absolute; font-size: 72px;">
+<p><a href="http://www.google.com">link 1</a></p>
+<p><a href="http://www.google.com">link 2</a></p>
+<p><a href="http://www.google.com">link 3</a></p>
+<p><a href="http://www.google.com">link 4</a></p>
+<p><a href="http://www.google.com">link 5</a></p>
+<p><a href="http://www.google.com">link 6</a></p>
+<p><a href="http://www.google.com">link 7</a></p>
+<p><a href="http://www.google.com">link 8</a></p>
+<p><a href="http://www.google.com">link 9</a></p>
+<p><a href="http://www.google.com">link 10</a></p>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/readme.txt b/third_party/WebKit/LayoutTests/fast/block/positioning/readme.txt
new file mode 100644
index 0000000..174e55d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/readme.txt
@@ -0,0 +1,5 @@
+The following positioning tests now fail as a result of a deliberate
+deviation from the CSS2 specification. This readme is here to remind
+us of these problem files.
+
+The problem test cases are 29-31, 40, 43, and 46.
diff --git a/third_party/WebKit/LayoutTests/fast/compact/001-expected.txt b/third_party/WebKit/LayoutTests/fast/compact/001-expected.txt
new file mode 100644
index 0000000..2b24632
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/compact/001-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x70
+ RenderBlock {HTML} at (0,0) size 800x70
+ RenderBody {BODY} at (8,14) size 784x48
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (140,31) size 644x17 [color=#FF0000] [bgcolor=#00FF00]
+ RenderBlock (compact) {DIV} at (-140,0) size 784x0 [color=#000000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 35x17
+ text run at (0,0) width 35: "Test:"
+ RenderInline {SPAN} at (0,0) size 326x17 [color=#000000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 326x0
+ text run at (0,0) width 326: "This sentence should have a green background."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/compact/001.html b/third_party/WebKit/LayoutTests/fast/compact/001.html
new file mode 100644
index 0000000..fd2cb711
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/compact/001.html
@@ -0,0 +1,16 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>Compact: Joining the line box model without changing the inheritance chain</title>
+ <style type="text/css">
+ .compact { display: compact; }
+ .block { display: block; color: red; background: lime; line-height: 0; margin-left: 10em; }
+ span { color: black; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div class="compact"> Test: </div>
+ <div class="block"> <span>This sentence should have a green background.</span> </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/compact/002-expected.txt b/third_party/WebKit/LayoutTests/fast/compact/002-expected.txt
new file mode 100644
index 0000000..2473f9f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/compact/002-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x106
+ RenderBlock {HTML} at (0,0) size 800x106
+ RenderBody {BODY} at (8,8) size 784x90
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 377x17
+ text run at (0,0) width 377: "There should be a single green rectangle square below."
+ RenderBlock {DIV} at (0,62) size 56x28 [color=#008000] [bgcolor=#FF0000]
+ RenderBlock {DIV} at (28,0) size 28x28 [bgcolor=#000000]
+ RenderBlock (compact) {DIV} at (-28,0) size 56x0
+ RenderText {TEXT} at (0,0) size 28x28
+ text run at (0,0) width 28: "X"
+ RenderText {TEXT} at (0,0) size 28x28
+ text run at (0,0) width 28: "X"
diff --git a/third_party/WebKit/LayoutTests/fast/compact/002.html b/third_party/WebKit/LayoutTests/fast/compact/002.html
new file mode 100644
index 0000000..a40e4cf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/compact/002.html
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>Compact: Correct vertical alignment</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .container { background: red; color: green; width: 2em; font: 2em/1 Ahem; }
+ .compact { display: compact; }
+ .block { display: block; margin: 0 0 0 1em; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be a single green rectangle square below.</p>
+ <div class="container">
+ <div class="compact"> X </div>
+ <div class="block"> X </div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/001-expected.txt b/third_party/WebKit/LayoutTests/fast/css-generated-content/001-expected.txt
new file mode 100644
index 0000000..b237bd3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/001-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderInline {A} at (0,0) size 286x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 286x17
+ text run at (0,0) width 286: "You should not see anything but this link."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/001.html b/third_party/WebKit/LayoutTests/fast/css-generated-content/001.html
new file mode 100644
index 0000000..a2cb2c1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/001.html
@@ -0,0 +1,11 @@
+<html>
+<head>
+<style>
+a:before { content: "Link: "; }
+a:before { display: none; }
+</style>
+</head>
+<body>
+<a href="foo.html">You should not see anything but this link.</a>
+</body>
+
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/002-expected.txt b/third_party/WebKit/LayoutTests/fast/css-generated-content/002-expected.txt
new file mode 100644
index 0000000..8c89b0c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/002-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x39
+ RenderBlock {HTML} at (0,0) size 800x39
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderInline at (0,0) size 57x17
+ RenderInline at (0,0) size 8x17 [color=#FFD800]
+ RenderText at (0,0) size 8x17
+ text run at (0,0) width 8: "S"
+ RenderText at (8,0) size 49x17
+ text run at (8,0) width 49: "pecial: "
+ RenderText {TEXT} at (57,0) size 644x17
+ text run at (57,0) width 234: "The \"S\" to the left should be gold. "
+ text run at (291,0) width 410: "This is testing :before used in conjunction with :first-letter. "
+ RenderInline at (0,0) size 64x17
+ RenderText at (701,0) size 64x17
+ text run at (701,0) width 64: "[The End]"
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/002.html b/third_party/WebKit/LayoutTests/fast/css-generated-content/002.html
new file mode 100644
index 0000000..ecc2ca8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/002.html
@@ -0,0 +1,12 @@
+<html>
+<head>
+<style>
+p.special:before { content: "Special: " }
+p.special:first-letter { color: #ffd800; }
+p.special:after { content: "[The End]" }
+</style>
+<head>
+<body>
+<p class="special">
+The "S" to the left should be gold. This is testing :before used in conjunction with :first-letter.
+</p>
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/003-expected.txt b/third_party/WebKit/LayoutTests/fast/css-generated-content/003-expected.txt
new file mode 100644
index 0000000..035e275
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/003-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderBlock (floating) at (0,0) size 13x53
+ RenderText {TEXT} at (0,0) size 13x53
+ text run at (0,0) width 13: "I"
+ RenderText {TEXT} at (13,0) size 496x17
+ text run at (13,0) width 496: "n an attempt to lose some weight, I have switched computing platforms."
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/003.html b/third_party/WebKit/LayoutTests/fast/css-generated-content/003.html
new file mode 100644
index 0000000..02e60c8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/003.html
@@ -0,0 +1,14 @@
+<html>
+<head>
+<style type="text/css">
+.extra:first-letter {
+ font-size: 45px;
+ float: left;
+ }
+</style>
+</head>
+
+<body>
+<div class=extra>In an attempt to lose some weight, I have switched computing platforms.</div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/004-expected.txt b/third_party/WebKit/LayoutTests/fast/css-generated-content/004-expected.txt
new file mode 100644
index 0000000..4c67673
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/004-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17 [color=#FF0000]
+ RenderBlock {P} at (0,0) size 784x17 [color=#008000]
+ RenderInline at (0,0) size 179x17
+ RenderText at (0,0) size 179x17
+ text run at (0,0) width 179: "This text should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/004.html b/third_party/WebKit/LayoutTests/fast/css-generated-content/004.html
new file mode 100644
index 0000000..c1b0bbc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/004.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+<head>
+<style>
+p:before {
+ color: inherit;
+ content: 'This text should be green.';
+}
+</style>
+</head>
+<body style="color:red">
+<p id="foo"></p>
+<script>
+document.getElementById('foo').style.color='green';
+</script>
+</body>
+</html>
+
diff --git a/third_party/WebKit/LayoutTests/fast/doctypes/001-expected.txt b/third_party/WebKit/LayoutTests/fast/doctypes/001-expected.txt
new file mode 100644
index 0000000..ded4d4d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/doctypes/001-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x184
+ RenderBlock {HTML} at (0,0) size 800x184
+ RenderBody {BODY} at (8,8) size 784x162
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,0) size 784x100
+ RenderBlock (anonymous) at (0,100) size 784x17
+ RenderText {TEXT} at (0,0) size 375x17
+ text run at (0,0) width 172: "This file has no doctype. "
+ text run at (172,0) width 203: "We should be in quirks mode."
+ RenderBlock {UL} at (0,131) size 784x31
+ RenderListItem {LI} at (40,0) size 744x31
+ RenderBlock (anonymous) at (0,0) size 744x14
+ RenderListMarker at (0,0) size 0x14
+ RenderBlock {UL} at (0,14) size 744x17
+ RenderListItem {LI} at (40,0) size 704x17
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 264x17
+ text run at (0,0) width 264: "I should be underneath the first bullet."
+layer at (10,10) size 80x80
+ RenderBlock (positioned) {DIV} at (10,10) size 80x80 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/doctypes/001.html b/third_party/WebKit/LayoutTests/fast/doctypes/001.html
new file mode 100644
index 0000000..415490c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/doctypes/001.html
@@ -0,0 +1,10 @@
+<div style="position:absolute; left:10; top:10; width:80px; height:80px;background-color:green"></div>
+
+<div style="height:100px"></div>
+
+This file has no doctype. We should be in quirks mode.
+
+<ul>
+<li><ul><li>I should be underneath the first bullet.
+</li>
+</ul>
diff --git a/third_party/WebKit/LayoutTests/fast/doctypes/002-expected.txt b/third_party/WebKit/LayoutTests/fast/doctypes/002-expected.txt
new file mode 100644
index 0000000..350c542
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/doctypes/002-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x170
+ RenderBlock {HTML} at (0,0) size 800x170
+ RenderBody {BODY} at (8,8) size 784x148
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,0) size 784x100
+ RenderBlock (anonymous) at (0,100) size 784x17
+ RenderText {TEXT} at (0,0) size 529x17
+ text run at (0,0) width 334: "This file has a doc type with no public identifier. "
+ text run at (334,0) width 195: "We should be in strict mode."
+ RenderBlock {UL} at (0,131) size 784x17
+ RenderListItem {LI} at (40,0) size 744x17
+ RenderBlock {UL} at (0,0) size 744x17
+ RenderListItem {LI} at (40,0) size 704x17
+ RenderListMarker at (0,0) size 0x14
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 274x17
+ text run at (0,0) width 274: "Both bullets should be on the same line."
+layer at (8,8) size 80x80
+ RenderBlock (positioned) {DIV} at (8,8) size 80x80 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/doctypes/002.html b/third_party/WebKit/LayoutTests/fast/doctypes/002.html
new file mode 100644
index 0000000..b60e790
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/doctypes/002.html
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML SYSTEM "blah">
+<div style="position:absolute; left:10; top:10; width:80px; height:80px;background-color:green"></div>
+
+<div style="height:100px"></div>
+
+This file has a doc type with no public identifier. We should be in strict mode.
+
+<ul>
+<li><ul><li>Both bullets should be on the same line.
+</li>
+</ul>
diff --git a/third_party/WebKit/LayoutTests/fast/doctypes/003-expected.txt b/third_party/WebKit/LayoutTests/fast/doctypes/003-expected.txt
new file mode 100644
index 0000000..350c542
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/doctypes/003-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x170
+ RenderBlock {HTML} at (0,0) size 800x170
+ RenderBody {BODY} at (8,8) size 784x148
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,0) size 784x100
+ RenderBlock (anonymous) at (0,100) size 784x17
+ RenderText {TEXT} at (0,0) size 529x17
+ text run at (0,0) width 334: "This file has a doc type with no public identifier. "
+ text run at (334,0) width 195: "We should be in strict mode."
+ RenderBlock {UL} at (0,131) size 784x17
+ RenderListItem {LI} at (40,0) size 744x17
+ RenderBlock {UL} at (0,0) size 744x17
+ RenderListItem {LI} at (40,0) size 704x17
+ RenderListMarker at (0,0) size 0x14
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 274x17
+ text run at (0,0) width 274: "Both bullets should be on the same line."
+layer at (8,8) size 80x80
+ RenderBlock (positioned) {DIV} at (8,8) size 80x80 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/doctypes/003.html b/third_party/WebKit/LayoutTests/fast/doctypes/003.html
new file mode 100644
index 0000000..d52b578
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/doctypes/003.html
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML PUBLIC "who cares" [strictmodebaby]>
+<div style="position:absolute; left:10; top:10; width:80px; height:80px;background-color:green"></div>
+
+<div style="height:100px"></div>
+
+This file has a doc type with no public identifier. We should be in strict mode.
+
+<ul>
+<li><ul><li>Both bullets should be on the same line.
+</li>
+</ul>
diff --git a/third_party/WebKit/LayoutTests/fast/doctypes/004-expected.txt b/third_party/WebKit/LayoutTests/fast/doctypes/004-expected.txt
new file mode 100644
index 0000000..ded4d4d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/doctypes/004-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x184
+ RenderBlock {HTML} at (0,0) size 800x184
+ RenderBody {BODY} at (8,8) size 784x162
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,0) size 784x100
+ RenderBlock (anonymous) at (0,100) size 784x17
+ RenderText {TEXT} at (0,0) size 375x17
+ text run at (0,0) width 172: "This file has no doctype. "
+ text run at (172,0) width 203: "We should be in quirks mode."
+ RenderBlock {UL} at (0,131) size 784x31
+ RenderListItem {LI} at (40,0) size 744x31
+ RenderBlock (anonymous) at (0,0) size 744x14
+ RenderListMarker at (0,0) size 0x14
+ RenderBlock {UL} at (0,14) size 744x17
+ RenderListItem {LI} at (40,0) size 704x17
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 264x17
+ text run at (0,0) width 264: "I should be underneath the first bullet."
+layer at (10,10) size 80x80
+ RenderBlock (positioned) {DIV} at (10,10) size 80x80 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/doctypes/004.html b/third_party/WebKit/LayoutTests/fast/doctypes/004.html
new file mode 100644
index 0000000..f7a0431
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/doctypes/004.html
@@ -0,0 +1,13 @@
+<!-- Vignette StoryServer 4 Thu Dec 14 00:24:41 2000 -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+
+<div style="position:absolute; left:10; top:10; width:80px; height:80px;background-color:green"></div>
+
+<div style="height:100px"></div>
+
+This file has no doctype. We should be in quirks mode.
+
+<ul>
+<li><ul><li>I should be underneath the first bullet.
+</li>
+</ul>
diff --git a/third_party/WebKit/LayoutTests/fast/dynamic/001-expected.txt b/third_party/WebKit/LayoutTests/fast/dynamic/001-expected.txt
new file mode 100644
index 0000000..ffa32d1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dynamic/001-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x18
+ RenderBlock {HTML} at (0,0) size 800x18
+ RenderBody {BODY} at (8,8) size 784x2
+ RenderTable {TABLE} at (0,0) size 102x2 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (0,0) size 0x2 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 102x2 [bgcolor=#008000] [r=0 c=0 rs=1 cs=1]
diff --git a/third_party/WebKit/LayoutTests/fast/dynamic/001.html b/third_party/WebKit/LayoutTests/fast/dynamic/001.html
new file mode 100644
index 0000000..deecf49
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dynamic/001.html
@@ -0,0 +1,10 @@
+<html>
+<body>
+<table id="tbl" cellspacing=0 border=0 style="background: red" cellpadding=10>
+<tr><td width=100 bgcolor=green></td>
+</table>
+
+<script>
+document.getElementById("tbl").removeAttribute("cellpadding");
+</script>
+
diff --git a/third_party/WebKit/LayoutTests/fast/dynamic/002-expected.txt b/third_party/WebKit/LayoutTests/fast/dynamic/002-expected.txt
new file mode 100644
index 0000000..dc6a9f7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dynamic/002-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x114
+ RenderBlock {HTML} at (0,0) size 800x114
+ RenderBody {BODY} at (8,8) size 784x98
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderBlock (floating) {DIV} at (494,0) size 290x104
+ RenderText {TEXT} at (2,2) size 286x17
+ text run at (2,2) width 286: "I should become a right-floating element."
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 433x17
+ text run at (0,0) width 215: "This text should be on the left. "
+ text run at (215,0) width 218: "The float should be to the right."
+ RenderBlock {DIV} at (0,17) size 784x30
+ RenderBlock {DIV} at (0,47) size 784x51
+ RenderBlock (floating) {SPAN} at (0,0) size 280x104
+ RenderText {TEXT} at (2,2) size 276x17
+ text run at (2,2) width 276: "I should become a left-floating element."
+ RenderText {TEXT} at (280,0) size 192x51
+ text run at (280,0) width 179: "This text should be on the"
+ text run at (280,17) width 42: "right. "
+ text run at (322,17) width 150: "The float should be to"
+ text run at (280,34) width 54: "the left."
diff --git a/third_party/WebKit/LayoutTests/fast/dynamic/002.html b/third_party/WebKit/LayoutTests/fast/dynamic/002.html
new file mode 100644
index 0000000..1674b025
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dynamic/002.html
@@ -0,0 +1,19 @@
+<html>
+<body>
+<div>
+<div id="float1" style="border: 2px solid red; height:100px">I should become a right-floating element.</div>
+This text should be on the left. The float should be to the right.
+</div>
+</div>
+
+<div style="height:30px"></div>
+
+<div>
+<span id="float2" style="border:2px solid red; height:100px">I should become a left-floating element.</span>
+This text should be on the right. The float should be to the left.
+</div>
+
+<script>
+document.getElementById("float1").style.cssFloat = 'right';
+document.getElementById("float2").style.cssFloat = 'left';
+</script> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/dynamic/004-expected.txt b/third_party/WebKit/LayoutTests/fast/dynamic/004-expected.txt
new file mode 100644
index 0000000..e7354e9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dynamic/004-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x59
+ RenderBlock {HTML} at (0,0) size 800x59
+ RenderBody {BODY} at (8,8) size 784x37
+ RenderBlock {P} at (0,0) size 784x37
+ RenderText {TEXT} at (10,10) size 328x17
+ text run at (10,10) width 328: "I should be surrounded by a thick green border."
diff --git a/third_party/WebKit/LayoutTests/fast/dynamic/004.html b/third_party/WebKit/LayoutTests/fast/dynamic/004.html
new file mode 100644
index 0000000..7d3f7b0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dynamic/004.html
@@ -0,0 +1,12 @@
+<html>
+<head><style>
+p { border: 1px solid red; }
+#foo { border: 10px solid green; }
+</style>
+</head>
+<p>
+I should be surrounded by a thick green border.
+</p>
+<script>
+document.getElementsByTagName("p")[0].id = 'foo';
+</script>
diff --git a/third_party/WebKit/LayoutTests/fast/encoding/utf-16-big-endian-expected.txt b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-big-endian-expected.txt
new file mode 100644
index 0000000..689578d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-big-endian-expected.txt
@@ -0,0 +1,497 @@
+layer at (0,0) size 800x1200
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x1200
+ RenderBlock {HTML} at (0,0) size 800x1200
+ RenderBody {BODY} at (8,8) size 784x1179 [bgcolor=#EEEEEE]
+ RenderBlock (anonymous) at (0,0) size 784x18 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 170x12
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 170x12
+ RenderTable {TABLE} at (0,0) size 170x18
+ RenderTableSection {TBODY} at (0,0) size 0x18
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 104x18 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 102x16
+ text run at (1,1) width 102: "Record Locator:"
+ RenderTableCell {TD} at (104,0) size 66x18 [r=0 c=1 rs=1 cs=1]
+ RenderInline {B} at (0,0) size 64x16
+ RenderText {TEXT} at (1,1) size 64x16
+ text run at (1,1) width 64: "WHGNSO"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,30) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,44) size 784x51 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 110x46
+ RenderInline {SPAN} at (0,0) size 110x46
+ RenderInline {SPAN} at (0,0) size 110x17
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,0) size 53x24
+ RenderText {TEXT} at (53,3) size 57x18
+ text run at (53,3) width 4: " "
+ text run at (57,3) width 53: "Names"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 108x15
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,107) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,121) size 784x78 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 596x74
+ RenderInline {SPAN} at (0,0) size 596x74
+ RenderImage {IMG} at (0,0) size 62x24
+ RenderText {TEXT} at (62,4) size 4x15
+ text run at (62,4) width 4: " "
+ RenderInline {SPAN} at (0,0) size 83x17
+ RenderText {TEXT} at (66,2) size 83x18
+ text run at (66,2) width 83: "Addresses"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,211) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,225) size 784x48 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 126x43
+ RenderInline {SPAN} at (0,0) size 126x43
+ RenderInline {SPAN} at (0,0) size 126x17
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,0) size 59x24
+ RenderText {TEXT} at (59,3) size 67x18
+ text run at (59,3) width 4: " "
+ text run at (63,3) width 63: "Phones "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,273) size 784x48 [bgcolor=#000000]
+ RenderBlock (anonymous) at (0,321) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,333) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,347) size 784x24 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 128x15
+ RenderInline {SPAN} at (0,0) size 128x15
+ RenderInline {SPAN} at (0,0) size 128x17
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,0) size 62x24
+ RenderText {TEXT} at (62,3) size 66x18
+ text run at (62,3) width 4: " "
+ text run at (66,3) width 62: "Itinerary"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,371) size 784x54 [bgcolor=#000000]
+ RenderTable {TABLE} at (0,0) size 513x54
+ RenderTableSection {TBODY} at (0,0) size 0x54
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,26) size 2x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (6,2) size 2x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (10,14) size 133x26 [r=0 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 131x24
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (145,2) size 366x50 [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 131x16
+ text run at (1,1) width 131: "TUR - Tour Package"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,17) size 205x16
+ text run at (1,17) width 205: "Date: Sunday, January 12, 2003"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,33) size 364x16
+ text run at (1,33) width 364: "Comments: -** TICKETLESS CONF CODE IS WHGNSO**"
+ RenderBlock (anonymous) at (0,425) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,437) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,451) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,451) size 784x176 [bgcolor=#000000]
+ RenderTable {TABLE} at (0,0) size 636x176
+ RenderTableSection {TBODY} at (0,0) size 0x176
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,87) size 2x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (6,2) size 2x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (10,75) size 80x26 [r=0 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 78x24
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (92,2) size 542x172 [r=0 c=3 rs=1 cs=1]
+ RenderBlock (anonymous) at (1,1) size 540x112
+ RenderText {TEXT} at (0,0) size 21x16
+ text run at (0,0) width 21: "Air "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,16) size 434x16
+ text run at (0,16) width 45: "United "
+ text run at (45,16) width 75: "Flight 1187 "
+ text run at (120,16) width 109: "Booking Code:M "
+ text run at (229,16) width 205: "Date: Sunday, January 12, 2003"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,32) size 348x16
+ text run at (0,32) width 348: "From: San Francisco Intl Arpt, San Francisco CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,48) size 361x16
+ text run at (0,48) width 25: "To: "
+ text run at (25,48) width 336: "Burbank Glendale Pasadena Arpt, Burbank CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,64) size 220x16
+ text run at (0,64) width 115: "Departs: 6:05 PM "
+ text run at (115,64) width 105: "Arrives: 7:10 PM"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,80) size 44x16
+ text run at (0,80) width 44: "Status:"
+ RenderText {TEXT} at (44,80) size 67x16
+ text run at (44,80) width 67: " confirmed"
+ RenderText {TEXT} at (111,80) size 4x16
+ text run at (111,80) width 4: " "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,96) size 40x16
+ text run at (0,96) width 40: "Seats:"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTable {TABLE} at (1,113) size 540x42
+ RenderTableSection {TBODY} at (1,1) size 0x40
+ RenderTableRow {TR} at (0,0) size 0x0 [bgcolor=#E0E0E0]
+ RenderTableCell {TD} at (0,0) size 86x20 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 38x16
+ text run at (2,2) width 38: "Name"
+ RenderTableCell {TD} at (86,0) size 33x20 [bgcolor=#000000] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 29x16
+ text run at (2,2) width 29: "Seat"
+ RenderTableCell {TD} at (119,0) size 71x20 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 40x16
+ text run at (2,2) width 40: "Status"
+ RenderTableCell {TD} at (190,0) size 282x20 [bgcolor=#000000] [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 32x16
+ text run at (2,2) width 32: "Type"
+ RenderTableCell {TD} at (472,0) size 66x20 [bgcolor=#000000] [r=0 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 62x16
+ text run at (2,2) width 62: "Comment"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,20) size 86x20 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 82x16
+ text run at (2,2) width 82: "HAO,SCOTT"
+ RenderTableCell {TD} at (86,20) size 33x20 [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 25x16
+ text run at (2,2) width 16: "08"
+ text run at (18,2) width 9: "A"
+ RenderTableCell {TD} at (119,20) size 71x20 [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x16
+ text run at (2,2) width 67: "confirmed\x{A0}"
+ RenderTableCell {TD} at (190,20) size 282x20 [r=1 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 278x16
+ text run at (2,2) width 278: "Non-Smoking, Window Seat, Preferred Seat"
+ RenderTableCell {TD} at (472,20) size 66x20 [r=1 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 4x16
+ text run at (2,2) width 4: "\x{A0}"
+ RenderBlock (anonymous) at (1,155) size 540x16
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,627) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,639) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,653) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,653) size 784x176 [bgcolor=#000000]
+ RenderTable {TABLE} at (0,0) size 535x176
+ RenderTableSection {TBODY} at (0,0) size 0x176
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,87) size 2x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (6,2) size 2x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (10,75) size 80x26 [r=0 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 78x24
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (92,2) size 441x172 [r=0 c=3 rs=1 cs=1]
+ RenderBlock (anonymous) at (1,1) size 439x112
+ RenderText {TEXT} at (0,0) size 21x16
+ text run at (0,0) width 21: "Air "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,16) size 417x16
+ text run at (0,16) width 45: "United "
+ text run at (45,16) width 67: "Flight 480 "
+ text run at (112,16) width 108: "Booking Code:Q "
+ text run at (220,16) width 197: "Date: Friday, January 24, 2003"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,32) size 378x16
+ text run at (0,32) width 378: "From: Burbank Glendale Pasadena Arpt, Burbank CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,48) size 331x16
+ text run at (0,48) width 25: "To: "
+ text run at (25,48) width 306: "San Francisco Intl Arpt, San Francisco CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,64) size 220x16
+ text run at (0,64) width 115: "Departs: 1:40 PM "
+ text run at (115,64) width 105: "Arrives: 2:50 PM"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,80) size 44x16
+ text run at (0,80) width 44: "Status:"
+ RenderText {TEXT} at (44,80) size 67x16
+ text run at (44,80) width 67: " confirmed"
+ RenderText {TEXT} at (111,80) size 4x16
+ text run at (111,80) width 4: " "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,96) size 40x16
+ text run at (0,96) width 40: "Seats:"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTable {TABLE} at (1,113) size 439x42
+ RenderTableSection {TBODY} at (1,1) size 0x40
+ RenderTableRow {TR} at (0,0) size 0x0 [bgcolor=#E0E0E0]
+ RenderTableCell {TD} at (0,0) size 86x20 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 38x16
+ text run at (2,2) width 38: "Name"
+ RenderTableCell {TD} at (86,0) size 33x20 [bgcolor=#000000] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 29x16
+ text run at (2,2) width 29: "Seat"
+ RenderTableCell {TD} at (119,0) size 71x20 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 40x16
+ text run at (2,2) width 40: "Status"
+ RenderTableCell {TD} at (190,0) size 181x20 [bgcolor=#000000] [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 32x16
+ text run at (2,2) width 32: "Type"
+ RenderTableCell {TD} at (371,0) size 66x20 [bgcolor=#000000] [r=0 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 62x16
+ text run at (2,2) width 62: "Comment"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,20) size 86x20 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 82x16
+ text run at (2,2) width 82: "HAO,SCOTT"
+ RenderTableCell {TD} at (86,20) size 33x20 [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 25x16
+ text run at (2,2) width 16: "13"
+ text run at (18,2) width 9: "F"
+ RenderTableCell {TD} at (119,20) size 71x20 [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x16
+ text run at (2,2) width 67: "confirmed\x{A0}"
+ RenderTableCell {TD} at (190,20) size 181x20 [r=1 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 177x16
+ text run at (2,2) width 177: "Non-Smoking, Window Seat"
+ RenderTableCell {TD} at (371,20) size 66x20 [r=1 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 4x16
+ text run at (2,2) width 4: "\x{A0}"
+ RenderBlock (anonymous) at (1,155) size 439x16
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,829) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,841) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,855) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,855) size 784x102 [bgcolor=#000000]
+ RenderTable {TABLE} at (0,0) size 547x102
+ RenderTableSection {TBODY} at (0,0) size 0x102
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,50) size 2x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (6,2) size 2x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (10,38) size 80x26 [r=0 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 78x24
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (92,2) size 453x98 [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 21x16
+ text run at (1,1) width 21: "Air "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,17) size 451x16
+ text run at (1,17) width 77: "UNKNOWN "
+ text run at (78,17) width 67: "Flight 123 "
+ text run at (145,17) width 106: "Booking Code:Y "
+ text run at (251,17) width 201: "Date: Tuesday, March 25, 2003"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,33) size 348x16
+ text run at (1,33) width 348: "From: San Francisco Intl Arpt, San Francisco CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,49) size 331x16
+ text run at (1,49) width 25: "To: "
+ text run at (26,49) width 306: "San Francisco Intl Arpt, San Francisco CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,65) size 154x16
+ text run at (1,65) width 82: "Departs: n/a "
+ text run at (83,65) width 72: "Arrives: n/a"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,81) size 44x16
+ text run at (1,81) width 44: "Status:"
+ RenderText {TEXT} at (45,81) size 172x16
+ text run at (45,81) width 172: " requested, await response"
+ RenderText {TEXT} at (217,81) size 4x16
+ text run at (217,81) width 4: " "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,957) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,969) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,983) size 784x54 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 196x49
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 101x17
+ RenderImage {IMG} at (0,0) size 24x24
+ RenderText {TEXT} at (24,3) size 77x18
+ text run at (24,3) width 4: " "
+ text run at (28,3) width 73: "Remarks:"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 196x15
+ RenderText {TEXT} at (0,39) size 196x15
+ text run at (0,39) width 126: "SERVICE FEE MCO "
+ text run at (126,39) width 70: "8103220490"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,1049) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,1063) size 784x24 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 182x15
+ RenderInline {SPAN} at (0,0) size 182x17
+ RenderImage {IMG} at (0,0) size 62x24
+ RenderText {TEXT} at (62,3) size 4x18
+ text run at (62,3) width 4: " "
+ RenderInline {B} at (0,0) size 112x17
+ RenderText {TEXT} at (66,3) size 112x18
+ text run at (66,3) width 112: "Web Bookings"
+ RenderText {TEXT} at (178,3) size 4x18
+ text run at (178,3) width 4: " "
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderBR {BR} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,1099) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,1113) size 784x24 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 281x15
+ RenderInline {SPAN} at (0,0) size 281x15
+ RenderInline {SPAN} at (0,0) size 281x17
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,0) size 24x24
+ RenderText {TEXT} at (24,3) size 257x18
+ text run at (24,3) width 4: " "
+ text run at (28,3) width 253: "Remarks and Service Information"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,1149) size 784x30 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock {P} at (0,15) size 784x15
+ RenderText {TEXT} at (0,0) size 204x15
+ text run at (0,0) width 204: "This itinerary is subject to change. "
+ RenderInline {A} at (0,0) size 163x15 [color=#0000EE]
+ RenderText {TEXT} at (204,0) size 163x15
+ text run at (204,0) width 163: "Click here for latest updates"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,1192) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (23,52) size 108x15
+ RenderInline (relative positioned) {SPAN} at (0,0) size 108x15
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 108x15
+ RenderImage {IMG} at (0,24) size 24x24
+ RenderText {TEXT} at (24,36) size 4x15
+ text run at (24,36) width 4: " "
+ RenderInline {SPAN} at (0,0) size 80x15
+ RenderText {TEXT} at (28,36) size 80x15
+ text run at (28,36) width 80: "HAO, SCOTT"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (25,0) size 0x0 backgroundClip at (48,52) size 0x0
+ RenderInline (relative positioned) {SPAN} at (0,0) size 0x0
+layer at (23,129) size 596x42
+ RenderInline (relative positioned) {SPAN} at (0,0) size 596x42
+ RenderImage {IMG} at (0,24) size 24x24
+ RenderText {TEXT} at (24,36) size 572x15
+ text run at (24,36) width 4: " "
+ text run at (28,36) width 56: "Address: "
+ text run at (84,36) width 512: "ST. JUDE MEDICAL, 21700 OXNARD ST SUITE 800, WOODLAND HILLS CA Z/91367 "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,51) size 24x24
+ RenderText {TEXT} at (24,63) size 409x15
+ text run at (24,63) width 4: " "
+ text run at (28,63) width 48: "Deliver: "
+ text run at (76,63) width 104: "DEBI STANGEL, "
+ text run at (180,63) width 117: "119 GLEN COURT, "
+ text run at (297,63) width 136: "DANVILLE CA Z/94526"
+layer at (23,233) size 24x12
+ RenderInline (relative positioned) {SPAN} at (0,0) size 24x12
+ RenderImage {IMG} at (0,24) size 24x24
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (28,266) size 470x48
+ RenderTable {TABLE} at (0,0) size 470x48
+ RenderTableSection {TBODY} at (1,1) size 0x46
+ RenderTableRow {TR} at (0,0) size 0x0 [bgcolor=#E0E0E0]
+ RenderTableCell {TD} at (2,2) size 85x20 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 32x16
+ text run at (2,2) width 32: "Type"
+ RenderTableCell {TD} at (89,2) size 40x20 [bgcolor=#000000] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 24x16
+ text run at (2,2) width 24: "City"
+ RenderTableCell {TD} at (131,2) size 335x20 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 41x16
+ text run at (2,2) width 41: "Phone"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,24) size 85x20 [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 81x16
+ text run at (2,2) width 81: "Travel Agent"
+ RenderTableCell {TD} at (89,24) size 40x20 [r=2 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 36x16
+ text run at (2,2) width 36: "(LAX)"
+ RenderTableCell {TD} at (131,24) size 335x20 [r=2 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 331x16
+ text run at (2,2) width 127: "RQ0/818 990-4053-"
+ text run at (129,2) width 184: "PLAZA TRAVEL - 05838276-"
+ text run at (313,2) width 20: "RC"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableRow {TR} at (0,0) size 0x0
+layer at (23,329) size 0x0
+ RenderInline (relative positioned) {SPAN} at (0,0) size 0x0
+layer at (33,1121) size 0x0
+ RenderInline (relative positioned) {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/encoding/utf-16-big-endian.html b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-big-endian.html
new file mode 100644
index 0000000..28e4aa0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-big-endian.html
Binary files differ
diff --git a/third_party/WebKit/LayoutTests/fast/encoding/utf-16-little-endian-expected.txt b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-little-endian-expected.txt
new file mode 100644
index 0000000..689578d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-little-endian-expected.txt
@@ -0,0 +1,497 @@
+layer at (0,0) size 800x1200
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x1200
+ RenderBlock {HTML} at (0,0) size 800x1200
+ RenderBody {BODY} at (8,8) size 784x1179 [bgcolor=#EEEEEE]
+ RenderBlock (anonymous) at (0,0) size 784x18 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 170x12
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 170x12
+ RenderTable {TABLE} at (0,0) size 170x18
+ RenderTableSection {TBODY} at (0,0) size 0x18
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 104x18 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 102x16
+ text run at (1,1) width 102: "Record Locator:"
+ RenderTableCell {TD} at (104,0) size 66x18 [r=0 c=1 rs=1 cs=1]
+ RenderInline {B} at (0,0) size 64x16
+ RenderText {TEXT} at (1,1) size 64x16
+ text run at (1,1) width 64: "WHGNSO"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,30) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,44) size 784x51 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 110x46
+ RenderInline {SPAN} at (0,0) size 110x46
+ RenderInline {SPAN} at (0,0) size 110x17
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,0) size 53x24
+ RenderText {TEXT} at (53,3) size 57x18
+ text run at (53,3) width 4: " "
+ text run at (57,3) width 53: "Names"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 108x15
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,107) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,121) size 784x78 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 596x74
+ RenderInline {SPAN} at (0,0) size 596x74
+ RenderImage {IMG} at (0,0) size 62x24
+ RenderText {TEXT} at (62,4) size 4x15
+ text run at (62,4) width 4: " "
+ RenderInline {SPAN} at (0,0) size 83x17
+ RenderText {TEXT} at (66,2) size 83x18
+ text run at (66,2) width 83: "Addresses"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,211) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,225) size 784x48 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 126x43
+ RenderInline {SPAN} at (0,0) size 126x43
+ RenderInline {SPAN} at (0,0) size 126x17
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,0) size 59x24
+ RenderText {TEXT} at (59,3) size 67x18
+ text run at (59,3) width 4: " "
+ text run at (63,3) width 63: "Phones "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,273) size 784x48 [bgcolor=#000000]
+ RenderBlock (anonymous) at (0,321) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,333) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,347) size 784x24 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 128x15
+ RenderInline {SPAN} at (0,0) size 128x15
+ RenderInline {SPAN} at (0,0) size 128x17
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,0) size 62x24
+ RenderText {TEXT} at (62,3) size 66x18
+ text run at (62,3) width 4: " "
+ text run at (66,3) width 62: "Itinerary"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,371) size 784x54 [bgcolor=#000000]
+ RenderTable {TABLE} at (0,0) size 513x54
+ RenderTableSection {TBODY} at (0,0) size 0x54
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,26) size 2x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (6,2) size 2x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (10,14) size 133x26 [r=0 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 131x24
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (145,2) size 366x50 [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 131x16
+ text run at (1,1) width 131: "TUR - Tour Package"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,17) size 205x16
+ text run at (1,17) width 205: "Date: Sunday, January 12, 2003"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,33) size 364x16
+ text run at (1,33) width 364: "Comments: -** TICKETLESS CONF CODE IS WHGNSO**"
+ RenderBlock (anonymous) at (0,425) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,437) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,451) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,451) size 784x176 [bgcolor=#000000]
+ RenderTable {TABLE} at (0,0) size 636x176
+ RenderTableSection {TBODY} at (0,0) size 0x176
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,87) size 2x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (6,2) size 2x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (10,75) size 80x26 [r=0 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 78x24
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (92,2) size 542x172 [r=0 c=3 rs=1 cs=1]
+ RenderBlock (anonymous) at (1,1) size 540x112
+ RenderText {TEXT} at (0,0) size 21x16
+ text run at (0,0) width 21: "Air "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,16) size 434x16
+ text run at (0,16) width 45: "United "
+ text run at (45,16) width 75: "Flight 1187 "
+ text run at (120,16) width 109: "Booking Code:M "
+ text run at (229,16) width 205: "Date: Sunday, January 12, 2003"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,32) size 348x16
+ text run at (0,32) width 348: "From: San Francisco Intl Arpt, San Francisco CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,48) size 361x16
+ text run at (0,48) width 25: "To: "
+ text run at (25,48) width 336: "Burbank Glendale Pasadena Arpt, Burbank CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,64) size 220x16
+ text run at (0,64) width 115: "Departs: 6:05 PM "
+ text run at (115,64) width 105: "Arrives: 7:10 PM"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,80) size 44x16
+ text run at (0,80) width 44: "Status:"
+ RenderText {TEXT} at (44,80) size 67x16
+ text run at (44,80) width 67: " confirmed"
+ RenderText {TEXT} at (111,80) size 4x16
+ text run at (111,80) width 4: " "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,96) size 40x16
+ text run at (0,96) width 40: "Seats:"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTable {TABLE} at (1,113) size 540x42
+ RenderTableSection {TBODY} at (1,1) size 0x40
+ RenderTableRow {TR} at (0,0) size 0x0 [bgcolor=#E0E0E0]
+ RenderTableCell {TD} at (0,0) size 86x20 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 38x16
+ text run at (2,2) width 38: "Name"
+ RenderTableCell {TD} at (86,0) size 33x20 [bgcolor=#000000] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 29x16
+ text run at (2,2) width 29: "Seat"
+ RenderTableCell {TD} at (119,0) size 71x20 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 40x16
+ text run at (2,2) width 40: "Status"
+ RenderTableCell {TD} at (190,0) size 282x20 [bgcolor=#000000] [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 32x16
+ text run at (2,2) width 32: "Type"
+ RenderTableCell {TD} at (472,0) size 66x20 [bgcolor=#000000] [r=0 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 62x16
+ text run at (2,2) width 62: "Comment"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,20) size 86x20 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 82x16
+ text run at (2,2) width 82: "HAO,SCOTT"
+ RenderTableCell {TD} at (86,20) size 33x20 [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 25x16
+ text run at (2,2) width 16: "08"
+ text run at (18,2) width 9: "A"
+ RenderTableCell {TD} at (119,20) size 71x20 [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x16
+ text run at (2,2) width 67: "confirmed\x{A0}"
+ RenderTableCell {TD} at (190,20) size 282x20 [r=1 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 278x16
+ text run at (2,2) width 278: "Non-Smoking, Window Seat, Preferred Seat"
+ RenderTableCell {TD} at (472,20) size 66x20 [r=1 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 4x16
+ text run at (2,2) width 4: "\x{A0}"
+ RenderBlock (anonymous) at (1,155) size 540x16
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,627) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,639) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,653) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,653) size 784x176 [bgcolor=#000000]
+ RenderTable {TABLE} at (0,0) size 535x176
+ RenderTableSection {TBODY} at (0,0) size 0x176
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,87) size 2x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (6,2) size 2x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (10,75) size 80x26 [r=0 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 78x24
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (92,2) size 441x172 [r=0 c=3 rs=1 cs=1]
+ RenderBlock (anonymous) at (1,1) size 439x112
+ RenderText {TEXT} at (0,0) size 21x16
+ text run at (0,0) width 21: "Air "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,16) size 417x16
+ text run at (0,16) width 45: "United "
+ text run at (45,16) width 67: "Flight 480 "
+ text run at (112,16) width 108: "Booking Code:Q "
+ text run at (220,16) width 197: "Date: Friday, January 24, 2003"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,32) size 378x16
+ text run at (0,32) width 378: "From: Burbank Glendale Pasadena Arpt, Burbank CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,48) size 331x16
+ text run at (0,48) width 25: "To: "
+ text run at (25,48) width 306: "San Francisco Intl Arpt, San Francisco CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,64) size 220x16
+ text run at (0,64) width 115: "Departs: 1:40 PM "
+ text run at (115,64) width 105: "Arrives: 2:50 PM"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,80) size 44x16
+ text run at (0,80) width 44: "Status:"
+ RenderText {TEXT} at (44,80) size 67x16
+ text run at (44,80) width 67: " confirmed"
+ RenderText {TEXT} at (111,80) size 4x16
+ text run at (111,80) width 4: " "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,96) size 40x16
+ text run at (0,96) width 40: "Seats:"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTable {TABLE} at (1,113) size 439x42
+ RenderTableSection {TBODY} at (1,1) size 0x40
+ RenderTableRow {TR} at (0,0) size 0x0 [bgcolor=#E0E0E0]
+ RenderTableCell {TD} at (0,0) size 86x20 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 38x16
+ text run at (2,2) width 38: "Name"
+ RenderTableCell {TD} at (86,0) size 33x20 [bgcolor=#000000] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 29x16
+ text run at (2,2) width 29: "Seat"
+ RenderTableCell {TD} at (119,0) size 71x20 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 40x16
+ text run at (2,2) width 40: "Status"
+ RenderTableCell {TD} at (190,0) size 181x20 [bgcolor=#000000] [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 32x16
+ text run at (2,2) width 32: "Type"
+ RenderTableCell {TD} at (371,0) size 66x20 [bgcolor=#000000] [r=0 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 62x16
+ text run at (2,2) width 62: "Comment"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,20) size 86x20 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 82x16
+ text run at (2,2) width 82: "HAO,SCOTT"
+ RenderTableCell {TD} at (86,20) size 33x20 [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 25x16
+ text run at (2,2) width 16: "13"
+ text run at (18,2) width 9: "F"
+ RenderTableCell {TD} at (119,20) size 71x20 [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x16
+ text run at (2,2) width 67: "confirmed\x{A0}"
+ RenderTableCell {TD} at (190,20) size 181x20 [r=1 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 177x16
+ text run at (2,2) width 177: "Non-Smoking, Window Seat"
+ RenderTableCell {TD} at (371,20) size 66x20 [r=1 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 4x16
+ text run at (2,2) width 4: "\x{A0}"
+ RenderBlock (anonymous) at (1,155) size 439x16
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,829) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,841) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,855) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,855) size 784x102 [bgcolor=#000000]
+ RenderTable {TABLE} at (0,0) size 547x102
+ RenderTableSection {TBODY} at (0,0) size 0x102
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,50) size 2x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (6,2) size 2x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (10,38) size 80x26 [r=0 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 78x24
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (92,2) size 453x98 [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 21x16
+ text run at (1,1) width 21: "Air "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,17) size 451x16
+ text run at (1,17) width 77: "UNKNOWN "
+ text run at (78,17) width 67: "Flight 123 "
+ text run at (145,17) width 106: "Booking Code:Y "
+ text run at (251,17) width 201: "Date: Tuesday, March 25, 2003"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,33) size 348x16
+ text run at (1,33) width 348: "From: San Francisco Intl Arpt, San Francisco CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,49) size 331x16
+ text run at (1,49) width 25: "To: "
+ text run at (26,49) width 306: "San Francisco Intl Arpt, San Francisco CA - U.S."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,65) size 154x16
+ text run at (1,65) width 82: "Departs: n/a "
+ text run at (83,65) width 72: "Arrives: n/a"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (1,81) size 44x16
+ text run at (1,81) width 44: "Status:"
+ RenderText {TEXT} at (45,81) size 172x16
+ text run at (45,81) width 172: " requested, await response"
+ RenderText {TEXT} at (217,81) size 4x16
+ text run at (217,81) width 4: " "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,957) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,969) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,983) size 784x54 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 196x49
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 101x17
+ RenderImage {IMG} at (0,0) size 24x24
+ RenderText {TEXT} at (24,3) size 77x18
+ text run at (24,3) width 4: " "
+ text run at (28,3) width 73: "Remarks:"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 196x15
+ RenderText {TEXT} at (0,39) size 196x15
+ text run at (0,39) width 126: "SERVICE FEE MCO "
+ text run at (126,39) width 70: "8103220490"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,1049) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,1063) size 784x24 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 182x15
+ RenderInline {SPAN} at (0,0) size 182x17
+ RenderImage {IMG} at (0,0) size 62x24
+ RenderText {TEXT} at (62,3) size 4x18
+ text run at (62,3) width 4: " "
+ RenderInline {B} at (0,0) size 112x17
+ RenderText {TEXT} at (66,3) size 112x18
+ text run at (66,3) width 112: "Web Bookings"
+ RenderText {TEXT} at (178,3) size 4x18
+ text run at (178,3) width 4: " "
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderBR {BR} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,1099) size 784x2 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock (anonymous) at (0,1113) size 784x24 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 281x15
+ RenderInline {SPAN} at (0,0) size 281x15
+ RenderInline {SPAN} at (0,0) size 281x17
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,0) size 24x24
+ RenderText {TEXT} at (24,3) size 257x18
+ text run at (24,3) width 4: " "
+ text run at (28,3) width 253: "Remarks and Service Information"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,1149) size 784x30 [bgcolor=#000000]
+ RenderBlock {HR} at (1,0) size 782x2
+ RenderBlock {P} at (0,15) size 784x15
+ RenderText {TEXT} at (0,0) size 204x15
+ text run at (0,0) width 204: "This itinerary is subject to change. "
+ RenderInline {A} at (0,0) size 163x15 [color=#0000EE]
+ RenderText {TEXT} at (204,0) size 163x15
+ text run at (204,0) width 163: "Click here for latest updates"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,1192) size 784x0 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (23,52) size 108x15
+ RenderInline (relative positioned) {SPAN} at (0,0) size 108x15
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 108x15
+ RenderImage {IMG} at (0,24) size 24x24
+ RenderText {TEXT} at (24,36) size 4x15
+ text run at (24,36) width 4: " "
+ RenderInline {SPAN} at (0,0) size 80x15
+ RenderText {TEXT} at (28,36) size 80x15
+ text run at (28,36) width 80: "HAO, SCOTT"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (25,0) size 0x0 backgroundClip at (48,52) size 0x0
+ RenderInline (relative positioned) {SPAN} at (0,0) size 0x0
+layer at (23,129) size 596x42
+ RenderInline (relative positioned) {SPAN} at (0,0) size 596x42
+ RenderImage {IMG} at (0,24) size 24x24
+ RenderText {TEXT} at (24,36) size 572x15
+ text run at (24,36) width 4: " "
+ text run at (28,36) width 56: "Address: "
+ text run at (84,36) width 512: "ST. JUDE MEDICAL, 21700 OXNARD ST SUITE 800, WOODLAND HILLS CA Z/91367 "
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,51) size 24x24
+ RenderText {TEXT} at (24,63) size 409x15
+ text run at (24,63) width 4: " "
+ text run at (28,63) width 48: "Deliver: "
+ text run at (76,63) width 104: "DEBI STANGEL, "
+ text run at (180,63) width 117: "119 GLEN COURT, "
+ text run at (297,63) width 136: "DANVILLE CA Z/94526"
+layer at (23,233) size 24x12
+ RenderInline (relative positioned) {SPAN} at (0,0) size 24x12
+ RenderImage {IMG} at (0,24) size 24x24
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (28,266) size 470x48
+ RenderTable {TABLE} at (0,0) size 470x48
+ RenderTableSection {TBODY} at (1,1) size 0x46
+ RenderTableRow {TR} at (0,0) size 0x0 [bgcolor=#E0E0E0]
+ RenderTableCell {TD} at (2,2) size 85x20 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 32x16
+ text run at (2,2) width 32: "Type"
+ RenderTableCell {TD} at (89,2) size 40x20 [bgcolor=#000000] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 24x16
+ text run at (2,2) width 24: "City"
+ RenderTableCell {TD} at (131,2) size 335x20 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 41x16
+ text run at (2,2) width 41: "Phone"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,24) size 85x20 [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 81x16
+ text run at (2,2) width 81: "Travel Agent"
+ RenderTableCell {TD} at (89,24) size 40x20 [r=2 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 36x16
+ text run at (2,2) width 36: "(LAX)"
+ RenderTableCell {TD} at (131,24) size 335x20 [r=2 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 331x16
+ text run at (2,2) width 127: "RQ0/818 990-4053-"
+ text run at (129,2) width 184: "PLAZA TRAVEL - 05838276-"
+ text run at (313,2) width 20: "RC"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableRow {TR} at (0,0) size 0x0
+layer at (23,329) size 0x0
+ RenderInline (relative positioned) {SPAN} at (0,0) size 0x0
+layer at (33,1121) size 0x0
+ RenderInline (relative positioned) {SPAN} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/encoding/utf-16-little-endian.html b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-little-endian.html
new file mode 100644
index 0000000..a19eadc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/encoding/utf-16-little-endian.html
Binary files differ
diff --git a/third_party/WebKit/LayoutTests/fast/events/onload-re-entry-expected.txt b/third_party/WebKit/LayoutTests/fast/events/onload-re-entry-expected.txt
new file mode 100644
index 0000000..9ae22cb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/onload-re-entry-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x39
+ RenderBlock {HTML} at (0,0) size 800x39
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "1"
diff --git a/third_party/WebKit/LayoutTests/fast/events/onload-re-entry.html b/third_party/WebKit/LayoutTests/fast/events/onload-re-entry.html
new file mode 100644
index 0000000..6eb51d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/onload-re-entry.html
@@ -0,0 +1,12 @@
+<script>
+var x = 0;
+function write_stuff()
+{
+ x++;
+ document.open();
+ document.write("<p>" + x + "</p>");
+}
+</script>
+<body onload="alert('child'); write_stuff()">
+</body>
+
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/001-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/001-expected.txt
new file mode 100644
index 0000000..3ee8934
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/001-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x39
+ RenderBlock {HTML} at (0,0) size 800x39
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 667x17
+ text run at (0,0) width 192: "You should see a single 100"
+ text run at (192,0) width 475: "x100 green square below. If you see any red, then the test has failed."
+layer at (10,39) size 100x100
+ RenderFlexibleBox (positioned) {DIV} at (10,39) size 100x100 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/001.html b/third_party/WebKit/LayoutTests/fast/flexbox/001.html
new file mode 100644
index 0000000..078876f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/001.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ width: 100px;
+ height: 100px;
+}
+
+div.outer {
+ position: absolute;
+ left:10px;
+ background-color:red;
+}
+
+div.inner {
+ background-color:green;
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ width:10px;
+ height:100px;
+ display: block;
+}
+</style>
+</head>
+<body>
+<p>You should see a single 100x100 green square below. If you see any red, then
+the test has failed.</p>
+<div class="outer">
+<div class="inner"></div>
+</div>
+</body>
+
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/002-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/002-expected.txt
new file mode 100644
index 0000000..25dbdb1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/002-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x550
+ RenderBlock {HTML} at (0,0) size 800x550
+ RenderBody {BODY} at (8,8) size 784x534
+ RenderBlock (anonymous) at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 776x34
+ text run at (0,0) width 506: "You should see a green cross below (300 pixels wide and 300 pixels tall). "
+ text run at (506,0) width 270: "This is a test to ensure that boxes don't"
+ text run at (0,17) width 749: "obey the overconstraint correction (margin-right/left should not be corrected when a box is overconstrained)."
+ RenderBlock {DIV} at (0,34) size 784x500
+ RenderFlexibleBox {DIV} at (100,100) size 100x300 [bgcolor=#008000]
+ RenderBlock {DIV} at (-100,100) size 300x100
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/002.html b/third_party/WebKit/LayoutTests/fast/flexbox/002.html
new file mode 100644
index 0000000..3d415b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/002.html
@@ -0,0 +1,38 @@
+<html>
+<head>
+<style>
+div.crossTop {
+ height: 300px;
+ width: 100px;
+ background-color:green;
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ -moz-box-align: center;
+ -khtml-box-align: center;
+ box-align: center;
+ -moz-box-orient: vertical;
+ -khtml-box-orient: vertical;
+ box-orient: vertical;
+}
+
+div.crossBar {
+ height: 100px;
+ width: 300px;
+ background-color:green;
+ margin-top: 100px;
+}
+</style>
+</head>
+<body>
+You should see a green cross below (300 pixels wide and 300 pixels tall). This is a test to ensure that
+boxes don't obey the overconstraint correction (margin-right/left should not be corrected when a box is
+overconstrained).
+
+<div style="padding:100px">
+<div class="crossTop">
+<div class="crossBar"></div>
+</div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/003-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/003-expected.txt
new file mode 100644
index 0000000..98f813e4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/003-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x542
+ RenderBlock {HTML} at (0,0) size 800x350
+ RenderBody {BODY} at (8,8) size 784x334
+ RenderBlock (anonymous) at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 776x34
+ text run at (0,0) width 506: "You should see a green cross below (300 pixels wide and 300 pixels tall). "
+ text run at (506,0) width 270: "This is a test to ensure that boxes don't"
+ text run at (0,17) width 767: "obey the overconstraint correction (margin-top/bottom should not be corrected when a box is overconstrained)."
+ RenderBlock {DIV} at (0,34) size 784x300
+ RenderFlexibleBox {DIV} at (0,200) size 300x100 [bgcolor=#008000]
+ RenderBlock {DIV} at (100,-100) size 100x300
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/003.html b/third_party/WebKit/LayoutTests/fast/flexbox/003.html
new file mode 100644
index 0000000..2f09924
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/003.html
@@ -0,0 +1,38 @@
+<html>
+<head>
+<style>
+div.crossTop {
+ height: 100px;
+ width: 300px;
+ background-color:green;
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ -moz-box-align: center;
+ -khtml-box-align: center;
+ box-align: center;
+ -moz-box-orient: horizontal;
+ -khtml-box-orient: horizontal;
+ box-orient: horizontal;
+}
+
+div.crossBar {
+ height: 300px;
+ width: 100px;
+ background-color:green;
+ margin-left: 100px;
+}
+</style>
+</head>
+<body>
+You should see a green cross below (300 pixels wide and 300 pixels tall). This is a test to ensure that
+boxes don't obey the overconstraint correction (margin-top/bottom should not be corrected when a box is
+overconstrained).
+
+<div style="padding-top:200px; padding-left:0px">
+<div class="crossTop">
+<div class="crossBar"></div>
+</div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/004-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/004-expected.txt
new file mode 100644
index 0000000..d8ea353
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/004-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x164
+ RenderBlock {HTML} at (0,0) size 800x164
+ RenderBody {BODY} at (8,8) size 784x148
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 773x34
+ text run at (0,0) width 190: "You should see a green 100"
+ text run at (190,0) width 120: "x100 box below. "
+ text run at (310,0) width 463: "If you see a red box, then the inner block is not properly growing to"
+ text run at (0,17) width 240: "fill the height of the enclosing box."
+ RenderFlexibleBox {DIV} at (0,48) size 100x100 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/004.html b/third_party/WebKit/LayoutTests/fast/flexbox/004.html
new file mode 100644
index 0000000..a0e8955
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/004.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+<style>
+div.box {
+ height: 100px;
+ width: 100px;
+ background-color:red;
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+div.innerBox {
+ width: 100px;
+ background-color:green;
+}
+</style>
+</head>
+<body>
+<p>You should see a green 100x100 box below. If you see a red box, then the inner block is not properly growing
+to fill the height of the enclosing box.
+</p>
+<div class="box">
+<div class="innerbox"></div>
+</div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/005-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/005-expected.txt
new file mode 100644
index 0000000..e1f1357
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/005-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x150
+ RenderBlock {HTML} at (0,0) size 800x150
+ RenderBody {BODY} at (8,8) size 784x134
+ RenderBlock (anonymous) at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 759x34
+ text run at (0,0) width 720: "You should see a green rectangle below that is 100 pixels tall and that fills the width of the content area. "
+ text run at (720,0) width 39: "If you"
+ text run at (0,17) width 249: "see any red, then the test has failed."
+ RenderBlock {DIV} at (0,34) size 784x100 [bgcolor=#FF0000]
+ RenderFlexibleBox {DIV} at (0,0) size 784x100 [bgcolor=#008000]
+ RenderBlock {DIV} at (0,0) size 0x100 [bgcolor=#FF0000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/005.html b/third_party/WebKit/LayoutTests/fast/flexbox/005.html
new file mode 100644
index 0000000..d809c72
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/005.html
@@ -0,0 +1,29 @@
+<html>
+<head>
+<style>
+div.box {
+ height: 100px;
+ background-color:green;
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ width: 100%;
+}
+
+div.innerBox {
+ background-color:red;
+ height:100px;
+}
+</style>
+</head>
+<body>
+You should see a green rectangle below that is 100 pixels tall and that fills the width of the content area. If you see any red, then the test has failed.
+
+<div style="background-color:red;height:100px">
+<div class="box">
+<div class="innerbox"></div>
+</div>
+</div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/006-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/006-expected.txt
new file mode 100644
index 0000000..6901eb5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/006-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x150
+ RenderBlock {HTML} at (0,0) size 800x150
+ RenderBody {BODY} at (8,8) size 784x134
+ RenderBlock (anonymous) at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 759x34
+ text run at (0,0) width 720: "You should see a green rectangle below that is 100 pixels tall and that fills the width of the content area. "
+ text run at (720,0) width 39: "If you"
+ text run at (0,17) width 249: "see any red, then the test has failed."
+ RenderBlock {DIV} at (0,34) size 784x100 [bgcolor=#FF0000]
+ RenderFlexibleBox {DIV} at (0,0) size 784x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/006.html b/third_party/WebKit/LayoutTests/fast/flexbox/006.html
new file mode 100644
index 0000000..666e9ec
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/006.html
@@ -0,0 +1,20 @@
+<html>
+<head>
+<style>
+div.box {
+ height: 100px;
+ background-color:green;
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+</style>
+</head>
+<body>
+You should see a green rectangle below that is 100 pixels tall and that fills the width of the content area. If you see any red, then the test has failed.
+
+<div style="background-color:red;height:100px">
+<div class="box"></div></div></div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/007-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/007-expected.txt
new file mode 100644
index 0000000..5d29cc3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/007-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x212
+ RenderBlock {HTML} at (0,0) size 800x212
+ RenderBody {BODY} at (8,8) size 784x196
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 780x34
+ text run at (0,0) width 147: "You should see a 100"
+ text run at (147,0) width 376: "x100 green square below enclosed by an olive border. "
+ text run at (523,0) width 257: "If you see any red, the test has failed."
+ text run at (0,17) width 530: "If the border does not fully enclose the green square, then the test has failed."
+ RenderBlock {P} at (0,48) size 784x34
+ RenderText {TEXT} at (0,0) size 757x34
+ text run at (0,0) width 757: "This test is checking to make sure blocks with auto height that are children of boxes will expand to encompass"
+ text run at (0,17) width 132: "overhanging floats."
+ RenderBlock {DIV} at (0,96) size 100x100 [bgcolor=#FF0000]
+ RenderFlexibleBox {DIV} at (0,0) size 100x100 [bgcolor=#000000]
+ RenderBlock {DIV} at (4,4) size 92x92
+ RenderBlock (floating) {DIV} at (0,0) size 92x92 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/007.html b/third_party/WebKit/LayoutTests/fast/flexbox/007.html
new file mode 100644
index 0000000..e5533d1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/007.html
@@ -0,0 +1,34 @@
+<html>
+<head>
+<style>
+div.box {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+div.float {
+ float: left;
+ width: 92px;
+ height:92px;
+ background-color: green;
+}
+</style>
+</head>
+<body>
+<p>
+You should see a 100x100 green square below enclosed by an olive border. If you see any red, the test has failed. If the border does not fully enclose the green square, then the test has failed.
+</p>
+<p>
+This test is checking to make sure blocks with auto height that are children of boxes will expand to encompass overhanging floats.
+</p>
+<div style="width:100px;height:100px;background-color:red">
+<div class="box" style="border:4px solid olive">
+<div>
+<div class="float">
+</div>
+</div>
+</div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/008-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/008-expected.txt
new file mode 100644
index 0000000..365c87b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/008-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x264
+ RenderBlock {HTML} at (0,0) size 800x264
+ RenderBody {BODY} at (8,8) size 784x248
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 749x34
+ text run at (0,0) width 147: "You should see a 200"
+ text run at (147,0) width 183: "x200 green square below. "
+ text run at (330,0) width 261: "If you see any red, the test has failed. "
+ text run at (591,0) width 158: "This test is checking to"
+ text run at (0,17) width 674: "make sure that boxes will shift to avoid floats that try to intrude into their space (just as tables do)."
+ RenderBlock {DIV} at (0,48) size 200x200 [bgcolor=#FF0000]
+ RenderBlock (floating) {DIV} at (0,0) size 100x200 [bgcolor=#008000]
+ RenderBlock (anonymous) at (0,0) size 200x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#FF0000]
+ RenderFlexibleBox {DIV} at (100,0) size 100x200 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/008.html b/third_party/WebKit/LayoutTests/fast/flexbox/008.html
new file mode 100644
index 0000000..e2ede86
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/008.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+<style>
+div.box {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ height: 200px;
+ width: 100px;
+ background-color:green;
+}
+
+div.float {
+ float: left;
+ width: 100px;
+ height: 200px;
+ background-color: green;
+}
+</style>
+</head>
+<body>
+<p>You should see a 200x200 green square below. If you see any red, the test has failed.
+This test is checking to make sure that boxes will shift to avoid floats that try to intrude into their space
+(just as tables do).
+</p>
+<div style="width:200px;height:200px;background-color:red">
+<div class="float">
+</div>
+
+<div class="box"></div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/009-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/009-expected.txt
new file mode 100644
index 0000000..bae107a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/009-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x168
+ RenderBlock {HTML} at (0,0) size 800x168
+ RenderBody {BODY} at (8,8) size 784x152
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 777x34
+ text run at (0,0) width 147: "You should see a 100"
+ text run at (147,0) width 451: "x100 olive-bordered green square below with a vertical scrollbar. "
+ text run at (598,0) width 179: "The scrollable area should"
+ text run at (0,17) width 265: "all be green and should be about 1000"
+ text run at (265,17) width 53: "px tall. "
+ text run at (318,17) width 361: "If you do not see a scrollbar, then the test has failed."
+layer at (8,56) size 104x104 clip at (10,58) size 85x100
+ RenderFlexibleBox {DIV} at (0,48) size 104x104 [bgcolor=#008000]
+ RenderBlock {DIV} at (2,2) size 0x1000 [bgcolor=#000000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/009.html b/third_party/WebKit/LayoutTests/fast/flexbox/009.html
new file mode 100644
index 0000000..a2c0d20
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/009.html
@@ -0,0 +1,23 @@
+<html>
+<head>
+<style>
+div.box {
+ height: 100px;
+ width:100px;
+ background-color:green;
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ overflow:auto;
+ border: 2px solid olive;
+}
+
+</style>
+</head>
+<body>
+<p>You should see a 100x100 olive-bordered green square below with a vertical scrollbar. The scrollable area should all be green
+and should be about 1000px tall. If you do not see a scrollbar, then the test has failed.
+</p>
+<div class="box"><div style="height:1000px;"></div></div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/010-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/010-expected.txt
new file mode 100644
index 0000000..4c51331
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/010-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x164
+ RenderBlock {HTML} at (0,0) size 800x164
+ RenderBody {BODY} at (8,8) size 784x148
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 765x34
+ text run at (0,0) width 147: "You should see a 100"
+ text run at (147,0) width 183: "x100 green square below. "
+ text run at (330,0) width 296: "If you see any red, then the test has failed. "
+ text run at (626,0) width 139: "This test is ensuring"
+ text run at (0,17) width 439: "that boxes can act as containing blocks for positioned elements."
+layer at (8,56) size 100x100
+ RenderFlexibleBox (relative positioned) {DIV} at (0,48) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 100x100 backgroundClip at (8,56) size 100x100
+ RenderBlock (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/010.html b/third_party/WebKit/LayoutTests/fast/flexbox/010.html
new file mode 100644
index 0000000..d75f5fe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/010.html
@@ -0,0 +1,30 @@
+<html>
+<head>
+<style>
+div.box {
+ height: 100px;
+ width:100px;
+ background-color:red;
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ position: relative;
+}
+
+div.block {
+ width: 100px;
+ height: 100px;
+ bottom: 0px;
+ right: 0px;
+ background-color: green;
+ position: absolute;
+}
+</style>
+</head>
+<body>
+<p>You should see a 100x100 green square below. If you see any red, then the test has failed. This test is ensuring
+that boxes can act as containing blocks for positioned elements.
+</p>
+<div class="box"><div class="block"></div></div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/011-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/011-expected.txt
new file mode 100644
index 0000000..55f5522
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/011-expected.txt
@@ -0,0 +1,49 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x165
+ RenderBlock {HTML} at (0,0) size 800x165
+ RenderBody {BODY} at (8,8) size 784x149
+ RenderBlock {P} at (0,0) size 784x68
+ RenderText {TEXT} at (0,0) size 779x68
+ text run at (0,0) width 488: "You should see a black box below that is the width of the content area. "
+ text run at (488,0) width 288: "It contains alternating struts and springs. "
+ text run at (0,17) width 356: "The struts are bordered in green and are inflexible. "
+ text run at (356,17) width 387: "The springs are bordered in purple and should grow and"
+ text run at (0,34) width 295: "shrink as you resize your browser window. "
+ text run at (295,34) width 484: "The black box should get taller when you make your window wider and"
+ text run at (0,51) width 346: "get shorter when you shrink your browser window."
+ RenderFlexibleBox {DIV} at (0,82) size 784x67
+ RenderFlexibleBox {DIV} at (6,6) size 41x55
+ RenderBlock (anonymous) at (2,2) size 37x51
+ RenderText {TEXT} at (0,0) size 37x17
+ text run at (0,0) width 37: "Fixed"
+ RenderFlexibleBox {DIV} at (51,6) size 195x55
+ RenderBlock (anonymous) at (2,2) size 191x51
+ RenderText {TEXT} at (0,0) size 188x51
+ text run at (0,0) width 188: "This is a flexible block, and"
+ text run at (0,17) width 160: "it will shrink or grow as"
+ text run at (0,34) width 55: "needed."
+ RenderFlexibleBox {DIV} at (250,6) size 41x55
+ RenderBlock (anonymous) at (2,2) size 37x51
+ RenderText {TEXT} at (0,0) size 37x17
+ text run at (0,0) width 37: "Fixed"
+ RenderFlexibleBox {DIV} at (295,6) size 195x55
+ RenderBlock (anonymous) at (2,2) size 191x51
+ RenderText {TEXT} at (0,0) size 188x51
+ text run at (0,0) width 188: "This is a flexible block, and"
+ text run at (0,17) width 160: "it will shrink or grow as"
+ text run at (0,34) width 55: "needed."
+ RenderFlexibleBox {DIV} at (494,6) size 41x55
+ RenderBlock (anonymous) at (2,2) size 37x51
+ RenderText {TEXT} at (0,0) size 37x17
+ text run at (0,0) width 37: "Fixed"
+ RenderFlexibleBox {DIV} at (539,6) size 194x55
+ RenderBlock (anonymous) at (2,2) size 190x51
+ RenderText {TEXT} at (0,0) size 188x51
+ text run at (0,0) width 188: "This is a flexible block, and"
+ text run at (0,17) width 160: "it will shrink or grow as"
+ text run at (0,34) width 55: "needed."
+ RenderFlexibleBox {DIV} at (737,6) size 41x55
+ RenderBlock (anonymous) at (2,2) size 37x51
+ RenderText {TEXT} at (0,0) size 37x17
+ text run at (0,0) width 37: "Fixed"
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/011.html b/third_party/WebKit/LayoutTests/fast/flexbox/011.html
new file mode 100644
index 0000000..1b8a4eb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/011.html
@@ -0,0 +1,56 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+div.strut {
+ border: 2px solid green;
+ margin: 2px;
+}
+
+div.flex {
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ border: 2px solid purple;
+ margin: 2px;
+}
+</style>
+</head>
+<body>
+<p>You should see a black box below that is the width of the content area. It contains alternating struts
+and springs. The struts are bordered in green and are inflexible. The springs are bordered in purple
+and should grow and shrink as you resize your browser window. The black box should get taller when
+you make your window wider and get shorter when you shrink your browser window.
+</p>
+
+<div style="padding:2px; border:2px solid black">
+<div class="strut">
+Fixed
+</div>
+<div class="flex">
+This is a flexible block, and it will shrink or grow as needed.
+</div>
+<div class="strut">
+Fixed
+</div>
+<div class="flex">
+This is a flexible block, and it will shrink or grow as needed.
+</div>
+<div class="strut">
+Fixed
+</div>
+<div class="flex">
+This is a flexible block, and it will shrink or grow as needed.
+</div>
+<div class="strut">
+Fixed
+</div>
+</div>
+</body>
+
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/012-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/012-expected.txt
new file mode 100644
index 0000000..aa0730e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/012-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x181
+ RenderBlock {HTML} at (0,0) size 800x181
+ RenderBody {BODY} at (8,8) size 784x165
+ RenderBlock {P} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 763x51
+ text run at (0,0) width 147: "You should see a 300"
+ text run at (147,0) width 200: "x100 green rectangle below. "
+ text run at (347,0) width 380: "If you see any red, the test has failed. This test makes a"
+ text run at (0,17) width 297: "positioned vertical box with three children. "
+ text run at (297,17) width 466: "The first and third children are absolutely positioned at the edges of"
+ text run at (0,34) width 61: "the box. "
+ text run at (61,34) width 526: "Box-align of center is used to align the second child in the center of the box."
+layer at (8,73) size 300x100
+ RenderFlexibleBox (relative positioned) {DIV} at (0,65) size 300x100 [bgcolor=#FF0000]
+ RenderFlexibleBox {DIV} at (100,0) size 100x100 [bgcolor=#008000]
+layer at (0,0) size 100x100 backgroundClip at (8,73) size 100x100
+ RenderFlexibleBox (positioned) {DIV} at (0,0) size 100x100 [bgcolor=#008000]
+layer at (200,0) size 100x100 backgroundClip at (208,73) size 100x100
+ RenderFlexibleBox (positioned) {DIV} at (200,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/012.html b/third_party/WebKit/LayoutTests/fast/flexbox/012.html
new file mode 100644
index 0000000..45cf08a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/012.html
@@ -0,0 +1,51 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+div.outer {
+ width: 300px;
+ height: 100px;
+ background-color: red;
+ -moz-box-orient: vertical;
+ -khtml-box-orient: vertical;
+ box-orient: vertical;
+ -moz-box-align: center;
+ -khtml-box-align: center;
+ box-align: center;
+ position: relative;
+}
+
+div.sides {
+ position: absolute;
+ top: 0px;
+ width: 100px;
+ height: 100px;
+ background-color: green;
+}
+
+div.middle {
+ width: 100px;
+ height: 100px;
+ background-color: green;
+}
+</style>
+</head>
+<body>
+<p>You should see a 300x100 green rectangle below. If you see any red, the test has failed.
+This test makes a positioned vertical box with three children. The first and third children are
+absolutely positioned at the edges of the box. Box-align of center is used to align the second
+child in the center of the box.
+</p>
+<div class="outer">
+ <div class="sides"></div>
+ <div class="middle"></div>
+ <div class="sides" style="left:200px"></div>
+</div>
+</body>
+
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/013-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/013-expected.txt
new file mode 100644
index 0000000..e5b24b3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/013-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x147
+ RenderBlock {HTML} at (0,0) size 800x147
+ RenderBody {BODY} at (8,8) size 784x131
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 667x17
+ text run at (0,0) width 192: "You should see a single 100"
+ text run at (192,0) width 475: "x100 green square below. If you see any red, then the test has failed."
+ RenderFlexibleBox {DIV} at (0,31) size 100x100 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/013.html b/third_party/WebKit/LayoutTests/fast/flexbox/013.html
new file mode 100644
index 0000000..1246b70
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/013.html
@@ -0,0 +1,35 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ width: 100px;
+ height: 100px;
+}
+
+div.outer {
+ background-color:red;
+}
+
+div.inner {
+ background-color:green;
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ width:10px;
+ height:100px;
+ display: block;
+}
+</style>
+</head>
+<body>
+<p>You should see a single 100x100 green square below. If you see any red, then
+the test has failed.</p>
+<div class="outer">
+<div class="inner"></div>
+</div>
+</body>
+
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/014-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/014-expected.txt
new file mode 100644
index 0000000..e5b24b3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/014-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x147
+ RenderBlock {HTML} at (0,0) size 800x147
+ RenderBody {BODY} at (8,8) size 784x131
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 667x17
+ text run at (0,0) width 192: "You should see a single 100"
+ text run at (192,0) width 475: "x100 green square below. If you see any red, then the test has failed."
+ RenderFlexibleBox {DIV} at (0,31) size 100x100 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/014.html b/third_party/WebKit/LayoutTests/fast/flexbox/014.html
new file mode 100644
index 0000000..56f98e0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/014.html
@@ -0,0 +1,38 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ width: 100px;
+ height: 100px;
+ -moz-box-orient: vertical;
+ -khtml-box-orient: vertical;
+ box-orient: vertical;
+}
+
+div.outer {
+ background-color:red;
+}
+
+div.inner {
+ background-color:green;
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ width:100px;
+ height:10px;
+ display: block;
+}
+</style>
+</head>
+<body>
+<p>You should see a single 100x100 green square below. If you see any red, then
+the test has failed.</p>
+<div class="outer">
+<div class="inner"></div>
+</div>
+</body>
+
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/015-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/015-expected.txt
new file mode 100644
index 0000000..7be4f62
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/015-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x147
+ RenderBlock {HTML} at (0,0) size 800x147
+ RenderBody {BODY} at (8,8) size 784x131
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 667x17
+ text run at (0,0) width 192: "You should see a single 100"
+ text run at (192,0) width 475: "x100 green square below. If you see any red, then the test has failed."
+ RenderFlexibleBox {DIV} at (0,31) size 300x100
+ RenderFlexibleBox {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+ RenderFlexibleBox {DIV} at (0,0) size 0x100
+ RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#008000]
+ RenderFlexibleBox {DIV} at (100,0) size 0x100
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/015.html b/third_party/WebKit/LayoutTests/fast/flexbox/015.html
new file mode 100644
index 0000000..0fb2543
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/015.html
@@ -0,0 +1,46 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+div.outer {
+ background-color:red;
+ height: 100px;
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ max-width: 100px;
+}
+
+div.sides {
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ background-color: red;
+}
+
+div.inner {
+ background-color:green;
+ width:100px;
+ height:100px;
+ display: block;
+}
+</style>
+</head>
+<body>
+<p>You should see a single 100x100 green square below. If you see any red, then
+the test has failed.</p>
+<div style="width:300px">
+<div class="outer">
+<div class="sides"></div>
+<div class="inner"></div>
+<div class="sides"></div>
+</div>
+</div>
+</body>
+
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/016-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/016-expected.txt
new file mode 100644
index 0000000..a609214
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/016-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 812x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 812x600
+ RenderBlock {HTML} at (0,0) size 800x600 [bgcolor=#FFFFFF]
+ RenderBody {BODY} at (0,0) size 800x600 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,0) size 800x600
+ RenderBlock {DIV} at (0,0) size 800x51
+ RenderText {TEXT} at (0,0) size 799x51
+ text run at (0,0) width 527: "This header should remain at the top of the browser window as you resize it. "
+ text run at (527,0) width 199: "It can wrap to multiple lines. "
+ text run at (726,0) width 73: "The center"
+ text run at (0,17) width 347: "should be filled with an olive-bordered green box. "
+ text run at (347,17) width 441: "It should start beneath the header, end above the footer, and fill"
+ text run at (0,34) width 228: "the width of the browser window."
+ RenderPartObject {IFRAME} at (0,51) size 812x532 [bgcolor=#008000]
+ layer at (0,0) size 0x0
+ RenderCanvas at (0,0) size 0x0
+ RenderBlock {DIV} at (0,583) size 800x17
+ RenderText {TEXT} at (0,0) size 722x17
+ text run at (0,0) width 442: "This footer should remain at the bottom of the browser window. "
+ text run at (442,0) width 280: "It can wrap to multiple lines if necessary."
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/016.html b/third_party/WebKit/LayoutTests/fast/flexbox/016.html
new file mode 100644
index 0000000..73fb282
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/016.html
@@ -0,0 +1,50 @@
+<html>
+<head>
+<style>
+.middle {
+ background-color:green;
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ border: 10px solid olive;
+}
+
+html {
+ background-color: white;
+ height: 100%;
+}
+
+body {
+ height: 100%;
+ margin: 0px;
+}
+
+div.outer {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ -moz-box-orient: vertical;
+ -khtml-box-orient: vertical;
+ box-orient: vertical;
+ height: 100%;
+ width: 100%;
+}
+</style>
+</head>
+<body>
+<div class="outer">
+<div>
+This header should remain at the top of the browser window as you resize it. It
+can wrap to multiple lines. The center should be filled with an olive-bordered
+green box. It should start beneath the header, end above the footer, and fill the width of the
+browser window.
+</div>
+<!--<div class="middle"></div>-->
+<iframe class="middle" style="display: block; width:99%" src="about:blank"></iframe>
+<div>
+This footer should remain at the bottom of the browser window. It
+can wrap to multiple lines if necessary.
+</div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/017-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/017-expected.txt
new file mode 100644
index 0000000..2ec4b74
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/017-expected.txt
@@ -0,0 +1,91 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x249
+ RenderBlock {HTML} at (0,0) size 800x249
+ RenderBody {BODY} at (8,8) size 784x233
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 779x34
+ text run at (0,0) width 339: "You should see identical rows of numbers below. "
+ text run at (339,0) width 440: "Every row should look exactly the same. If any objects are out of"
+ text run at (0,17) width 208: "order, then the test has failed."
+ RenderFlexibleBox {DIV} at (0,48) size 784x185
+ RenderFlexibleBox {DIV} at (0,0) size 784x37
+ RenderBlock {DIV} at (4,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "1"
+ RenderBlock {DIV} at (33,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "2"
+ RenderBlock {DIV} at (62,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "3"
+ RenderBlock {DIV} at (91,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "4"
+ RenderBlock {DIV} at (120,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "5"
+ RenderFlexibleBox {DIV} at (0,37) size 784x37
+ RenderBlock {DIV} at (120,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "5"
+ RenderBlock {DIV} at (91,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "4"
+ RenderBlock {DIV} at (62,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "3"
+ RenderBlock {DIV} at (33,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "2"
+ RenderBlock {DIV} at (4,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "1"
+ RenderFlexibleBox {DIV} at (0,74) size 784x37
+ RenderBlock {DIV} at (4,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "1"
+ RenderBlock {DIV} at (33,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "2"
+ RenderBlock {DIV} at (62,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "3"
+ RenderBlock {DIV} at (91,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "4"
+ RenderBlock {DIV} at (120,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "5"
+ RenderFlexibleBox {DIV} at (0,111) size 784x37
+ RenderBlock {DIV} at (62,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "3"
+ RenderBlock {DIV} at (4,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "1"
+ RenderBlock {DIV} at (91,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "4"
+ RenderBlock {DIV} at (33,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "2"
+ RenderBlock {DIV} at (120,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "5"
+ RenderFlexibleBox {DIV} at (0,148) size 784x37
+ RenderBlock {DIV} at (62,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "3"
+ RenderBlock {DIV} at (4,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "1"
+ RenderBlock {DIV} at (91,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "4"
+ RenderBlock {DIV} at (33,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "2"
+ RenderBlock {DIV} at (120,4) size 21x29
+ RenderText {TEXT} at (6,6) size 9x17
+ text run at (6,6) width 9: "5"
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/017.html b/third_party/WebKit/LayoutTests/fast/flexbox/017.html
new file mode 100644
index 0000000..ee99fcb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/017.html
@@ -0,0 +1,108 @@
+<html>
+<head>
+<style>
+div.box {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+div.vertical {
+ -moz-box-orient: vertical;
+ -khtml-box-orient: vertical;
+ box-orient: vertical;
+}
+
+div.number {
+ border: 2px solid black;
+ padding: 4px;
+ margin: 4px;
+}
+
+.rtl {
+ -moz-box-pack: end;
+ -khtml-box-pack: end;
+ box-pack: end;
+ direction: rtl;
+}
+
+.rev {
+ -moz-box-direction: reverse;
+ -khtml-box-direction: reverse;
+ box-direction: reverse;
+}
+
+.first {
+ -moz-box-ordinal-group: 1;
+ -khtml-box-ordinal-group: 1;
+ box-ordinal-group: 1
+}
+
+.second {
+ -moz-box-ordinal-group: 2;
+ -khtml-box-ordinal-group: 2;
+ box-ordinal-group: 2
+}
+
+.third {
+ -moz-box-ordinal-group: 3;
+ -khtml-box-ordinal-group: 3;
+ box-ordinal-group: 3
+}
+
+.fourth {
+ -moz-box-ordinal-group: 4;
+ -khtml-box-ordinal-group: 4;
+ box-ordinal-group: 4
+}
+
+.fifth {
+ -moz-box-ordinal-group: 5;
+ -khtml-box-ordinal-group: 5;
+ box-ordinal-group: 5
+}
+
+</style>
+<body>
+<p>
+You should see identical rows of numbers below. Every row should look exactly the same.
+If any objects are out of order, then the test has failed.
+</p>
+<div class="box vertical">
+<div class="box">
+ <div class="number">1</div>
+ <div class="number">2</div>
+ <div class="number">3</div>
+ <div class="number">4</div>
+ <div class="number">5</div>
+</div>
+<div class="box rtl">
+ <div class="number">5</div>
+ <div class="number">4</div>
+ <div class="number">3</div>
+ <div class="number">2</div>
+ <div class="number">1</div>
+</div>
+<div class="box rtl rev">
+ <div class="number">1</div>
+ <div class="number">2</div>
+ <div class="number">3</div>
+ <div class="number">4</div>
+ <div class="number">5</div>
+</div>
+<div class="box">
+ <div class="number third">3</div>
+ <div class="number first">1</div>
+ <div class="number fourth">4</div>
+ <div class="number second">2</div>
+ <div class="number fifth">5</div>
+</div>
+<div class="box rev">
+ <div class="number third">3</div>
+ <div class="number fifth">1</div>
+ <div class="number second">4</div>
+ <div class="number fourth">2</div>
+ <div class="number first">5</div>
+</div>
+</div>
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/018-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/018-expected.txt
new file mode 100644
index 0000000..834c90a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/018-expected.txt
@@ -0,0 +1,47 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x422
+ RenderBlock {HTML} at (0,0) size 800x422
+ RenderBody {BODY} at (8,8) size 784x406
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 766x34
+ text run at (0,0) width 147: "You should see a 350"
+ text run at (147,0) width 420: "x350 pixel (7 by 7) black/white checkerboard pattern below. "
+ text run at (567,0) width 199: "This test is checking to see if"
+ text run at (0,17) width 212: "box-pack: justify is supported."
+ RenderFlexibleBox {DIV} at (0,48) size 358x358
+ RenderFlexibleBox {DIV} at (4,4) size 50x350
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,100) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,200) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,300) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (54,4) size 50x350 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (0,100) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (0,200) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (0,300) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (104,4) size 50x350
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,100) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,200) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,300) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (154,4) size 50x350 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (0,100) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (0,200) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (0,300) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (204,4) size 50x350
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,100) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,200) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,300) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (254,4) size 50x350 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (0,100) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (0,200) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (0,300) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (304,4) size 50x350
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,100) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,200) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,300) size 50x50 [bgcolor=#000000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/018.html b/third_party/WebKit/LayoutTests/fast/flexbox/018.html
new file mode 100644
index 0000000..2e25975
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/018.html
@@ -0,0 +1,94 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+.strip {
+ -moz-box-orient: vertical;
+ -khtml-box-orient: vertical;
+ box-orient: vertical;
+ -moz-box-pack: justify;
+ -khtml-box-pack: justify;
+ box-pack: justify;
+}
+
+.black {
+ background-color: black
+}
+
+.board {
+ border:4px solid maroon;
+ width: 350px;
+ height: 350px;
+}
+
+.square {
+ background-color: black;
+ width: 50px;
+ height: 50px;
+}
+
+.white {
+ background-color: white;
+}
+
+</style>
+</head>
+<body>
+<p>You should see a 350x350 pixel (7 by 7) black/white checkerboard pattern below. This test is checking
+to see if box-pack: justify is supported.</p>
+<div class="board">
+ <div class="strip">
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ </div>
+
+ <div class="strip black">
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ </div>
+
+ <div class="strip">
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ </div>
+
+ <div class="strip black">
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ </div>
+
+ <div class="strip">
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ </div>
+
+ <div class="strip black">
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ </div>
+
+ <div class="strip">
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ </div>
+</div>
+
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/019-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/019-expected.txt
new file mode 100644
index 0000000..32bbc51
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/019-expected.txt
@@ -0,0 +1,47 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x422
+ RenderBlock {HTML} at (0,0) size 800x422
+ RenderBody {BODY} at (8,8) size 784x406
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 766x34
+ text run at (0,0) width 147: "You should see a 350"
+ text run at (147,0) width 420: "x350 pixel (7 by 7) black/white checkerboard pattern below. "
+ text run at (567,0) width 199: "This test is checking to see if"
+ text run at (0,17) width 212: "box-pack: justify is supported."
+ RenderFlexibleBox {DIV} at (0,48) size 358x358
+ RenderFlexibleBox {DIV} at (4,4) size 350x50
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (100,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (200,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (300,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (4,54) size 350x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (100,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (200,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (300,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (4,104) size 350x50
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (100,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (200,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (300,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (4,154) size 350x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (100,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (200,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (300,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (4,204) size 350x50
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (100,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (200,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (300,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (4,254) size 350x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (100,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (200,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (300,0) size 50x50 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {DIV} at (4,304) size 350x50
+ RenderFlexibleBox {DIV} at (0,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (100,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (200,0) size 50x50 [bgcolor=#000000]
+ RenderFlexibleBox {DIV} at (300,0) size 50x50 [bgcolor=#000000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/019.html b/third_party/WebKit/LayoutTests/fast/flexbox/019.html
new file mode 100644
index 0000000..98a6476
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/019.html
@@ -0,0 +1,94 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+.strip {
+ -moz-box-pack: justify;
+ -khtml-box-pack: justify;
+ box-pack: justify;
+}
+
+.black {
+ background-color: black
+}
+
+.board {
+ border:4px solid maroon;
+ width: 350px;
+ height: 350px;
+ -moz-box-orient: vertical;
+ -khtml-box-orient: vertical;
+ box-orient: vertical;
+}
+
+.square {
+ background-color: black;
+ width: 50px;
+ height: 50px;
+}
+
+.white {
+ background-color: white;
+}
+
+</style>
+</head>
+<body>
+<p>You should see a 350x350 pixel (7 by 7) black/white checkerboard pattern below. This test is checking
+to see if box-pack: justify is supported.</p>
+<div class="board">
+ <div class="strip">
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ </div>
+
+ <div class="strip black">
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ </div>
+
+ <div class="strip">
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ </div>
+
+ <div class="strip black">
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ </div>
+
+ <div class="strip">
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ </div>
+
+ <div class="strip black">
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ <div class="square white"></div>
+ </div>
+
+ <div class="strip">
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ <div class="square"></div>
+ </div>
+</div>
+
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/020-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/020-expected.txt
new file mode 100644
index 0000000..0139c8e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/020-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x164
+ RenderBlock {HTML} at (0,0) size 800x164
+ RenderBody {BODY} at (8,8) size 784x148
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 755x34
+ text run at (0,0) width 147: "You should see a 100"
+ text run at (147,0) width 183: "x100 green square below. "
+ text run at (330,0) width 261: "If you see any red, the test has failed. "
+ text run at (591,0) width 164: "This test is checking for"
+ text run at (0,17) width 172: "box-flex-group support."
+ RenderFlexibleBox {DIV} at (0,48) size 100x100 [bgcolor=#FF0000]
+ RenderFlexibleBox {DIV} at (0,0) size 100x100 [bgcolor=#008000]
+ RenderFlexibleBox {DIV} at (100,0) size 0x100
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/020.html b/third_party/WebKit/LayoutTests/fast/flexbox/020.html
new file mode 100644
index 0000000..6fd2d14
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/020.html
@@ -0,0 +1,39 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+}
+
+.first {
+ -moz-box-flex-group: 1;
+ -khtml-box-flex-group: 1;
+ box-flex-group: 1;
+ background-color: green;
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+}
+
+.second {
+ -moz-box-flex-group: 2;
+ -khtml-box-flex-group: 2;
+ box-flex-group: 2;
+ background-color: red;
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+}
+</style>
+</head>
+<body>
+<p>You should see a 100x100 green square below. If you see any red, the test has failed. This test is checking
+for box-flex-group support.</p>
+<div style="width:100px;height:100px;background-color:red">
+ <div class="first"></div>
+ <div class="second"></div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/021-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/021-expected.txt
new file mode 100644
index 0000000..b73bc9b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/021-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x164
+ RenderBlock {HTML} at (0,0) size 800x164
+ RenderBody {BODY} at (8,8) size 784x148
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 755x34
+ text run at (0,0) width 147: "You should see a 100"
+ text run at (147,0) width 183: "x100 green square below. "
+ text run at (330,0) width 261: "If you see any red, the test has failed. "
+ text run at (591,0) width 164: "This test is checking for"
+ text run at (0,17) width 180: "visibility:collapse support."
+ RenderFlexibleBox {DIV} at (0,48) size 100x100 [bgcolor=#FF0000]
+ RenderFlexibleBox {DIV} at (0,-500000) size 0x0
+ RenderFlexibleBox {DIV} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/021.html b/third_party/WebKit/LayoutTests/fast/flexbox/021.html
new file mode 100644
index 0000000..b5c1612
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/021.html
@@ -0,0 +1,41 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ background-color: red;
+ width: 100px;
+ height: 100px;
+}
+
+.first {
+ visibility: collapse;
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ width: 50px;
+ height: 100px;
+}
+
+.second {
+ background-color: green;
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ width: 50px;
+ height: 100px;
+}
+
+</style>
+</head>
+<body>
+<p>You should see a 100x100 green square below. If you see any red, the test has failed. This test is checking
+for visibility:collapse support.</p>
+<div>
+ <div class="first"></div>
+ <div class="second"></div>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/022-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/022-expected.txt
new file mode 100644
index 0000000..660fa7b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/022-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x164
+ RenderBlock {HTML} at (0,0) size 800x164
+ RenderBody {BODY} at (8,8) size 784x148
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 749x34
+ text run at (0,0) width 147: "You should see a 100"
+ text run at (147,0) width 183: "x100 green square below. "
+ text run at (330,0) width 261: "If you see any red, the test has failed. "
+ text run at (591,0) width 158: "This test is checking to"
+ text run at (0,17) width 541: "make sure inlines get wrapped in anonymous blocks when placed inside boxes."
+ RenderFlexibleBox {DIV} at (0,48) size 100x100 [bgcolor=#008000]
+ RenderBlock (anonymous) at (0,0) size 0x100 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 0x0 [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/022.html b/third_party/WebKit/LayoutTests/fast/flexbox/022.html
new file mode 100644
index 0000000..ee63e3e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/022.html
@@ -0,0 +1,30 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ background-color: green;
+ width: 100px;
+ height: 100px;
+}
+
+span {
+ -moz-box-flex: 1;
+ -khtml-box-flex: 1;
+ box-flex: 1;
+ height: 100px;
+ background-color: red;
+}
+
+</style>
+</head>
+<body>
+<p>You should see a 100x100 green square below. If you see any red, the test has failed. This test is checking
+to make sure inlines get wrapped in anonymous blocks when placed inside boxes.</p>
+<div>
+ <span></span>
+</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/023-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/023-expected.txt
new file mode 100644
index 0000000..f98f124
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/023-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x181
+ RenderBlock {HTML} at (0,0) size 800x181
+ RenderBody {BODY} at (8,8) size 784x165
+ RenderBlock {P} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 785x51
+ text run at (0,0) width 192: "You should see a single 100"
+ text run at (192,0) width 593: "x100 green square below. If your browser supports the display of ALT text, you should"
+ text run at (0,17) width 316: "see the word \"Image\" inside the green square. "
+ text run at (316,17) width 296: "If you see any red, then the test has failed. "
+ text run at (612,17) width 158: "This test is checking to"
+ text run at (0,34) width 427: "make sure replaced elements inside boxes get stretched when "
+ RenderInline {CODE} at (0,0) size 144x16
+ RenderText {TEXT} at (427,35) size 144x16
+ text run at (427,35) width 144: "box-align: stretch"
+ RenderText {TEXT} at (571,34) size 86x17
+ text run at (571,34) width 86: " is specified."
+ RenderFlexibleBox {DIV} at (0,65) size 100x100 [bgcolor=#FF0000]
+ RenderImage {IMG} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/023.html b/third_party/WebKit/LayoutTests/fast/flexbox/023.html
new file mode 100644
index 0000000..baab2a5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/023.html
@@ -0,0 +1,34 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ width: 100px;
+ height: 100px;
+}
+
+div.outer {
+ background-color:red;
+}
+
+img.inner {
+ background-color:green;
+ width:100px;
+ display: block;
+}
+</style>
+</head>
+<body>
+<p>You should see a single 100x100 green square below. If your browser supports the
+display of ALT text, you should see the word "Image" inside the green square.
+If you see any red, then
+the test has failed. This test is checking to make sure replaced elements inside boxes
+get stretched when <code>box-align: stretch</code> is specified.</p>
+<div class="outer">
+<img class="inner" alt="Image">
+</div>
+</body>
+
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/024-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/024-expected.txt
new file mode 100644
index 0000000..f98f124
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/024-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x181
+ RenderBlock {HTML} at (0,0) size 800x181
+ RenderBody {BODY} at (8,8) size 784x165
+ RenderBlock {P} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 785x51
+ text run at (0,0) width 192: "You should see a single 100"
+ text run at (192,0) width 593: "x100 green square below. If your browser supports the display of ALT text, you should"
+ text run at (0,17) width 316: "see the word \"Image\" inside the green square. "
+ text run at (316,17) width 296: "If you see any red, then the test has failed. "
+ text run at (612,17) width 158: "This test is checking to"
+ text run at (0,34) width 427: "make sure replaced elements inside boxes get stretched when "
+ RenderInline {CODE} at (0,0) size 144x16
+ RenderText {TEXT} at (427,35) size 144x16
+ text run at (427,35) width 144: "box-align: stretch"
+ RenderText {TEXT} at (571,34) size 86x17
+ text run at (571,34) width 86: " is specified."
+ RenderFlexibleBox {DIV} at (0,65) size 100x100 [bgcolor=#FF0000]
+ RenderImage {IMG} at (0,0) size 100x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/024.html b/third_party/WebKit/LayoutTests/fast/flexbox/024.html
new file mode 100644
index 0000000..8712ef4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/024.html
@@ -0,0 +1,37 @@
+<html>
+<head>
+<style>
+div {
+ display: -moz-box;
+ display: -khtml-box;
+ display: box;
+ width: 100px;
+ height: 100px;
+ -moz-box-orient: vertical;
+ -khtml-box-orient: vertical;
+ box-orient: vertical;
+}
+
+div.outer {
+ background-color:red;
+}
+
+img.inner {
+ background-color:green;
+ height:100px;
+ display: block;
+}
+</style>
+</head>
+<body>
+<p>You should see a single 100x100 green square below. If your browser supports the
+display of ALT text, you should see the word "Image" inside the green square.
+If you see any red, then
+the test has failed. This test is checking to make sure replaced elements inside boxes
+get stretched when <code>box-align: stretch</code> is specified.</p>
+<div class="outer">
+<img class="inner" alt="Image">
+</div>
+</body>
+
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/025-expected.txt b/third_party/WebKit/LayoutTests/fast/flexbox/025-expected.txt
new file mode 100644
index 0000000..9aa6f1c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/025-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderFlexibleBox {HTML} at (0,0) size 800x600 [bgcolor=#FFFFFF]
+ RenderFlexibleBox {BODY} at (0,0) size 800x600 [color=#FFFFFF] [bgcolor=#008000]
+ RenderBlock (anonymous) at (0,0) size 490x600 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 486x17 [bgcolor=#008000]
+ text run at (0,0) width 486: "You should see white text on a green background that fills the window."
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/flexbox/025.html b/third_party/WebKit/LayoutTests/fast/flexbox/025.html
new file mode 100644
index 0000000..b136633
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/flexbox/025.html
@@ -0,0 +1,5 @@
+<html style="display: -moz-box; display: -khtml-box; display: box; height:100%; background-color:white">
+<body style="margin: 0; display: -moz-box; display: -khtml-box; display: box; -moz-box-flex: 1; -khtml-box-flex: 1; box-flex: 1; background-color:green; color:white">
+You should see white text on a green background that fills the window.
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/forms/001-actual.txt b/third_party/WebKit/LayoutTests/fast/forms/001-actual.txt
new file mode 100644
index 0000000..1edeb81
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/001-actual.txt
@@ -0,0 +1,50 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x296
+ RenderBlock {HTML} at (0,0) size 800x296
+ RenderBody {BODY} at (8,8) size 784x274
+ RenderBlock {H1} at (0,0) size 784x33
+ RenderText {TEXT} at (0,0) size 242x33
+ text run at (0,0) width 242: "Min-Width Tests"
+ RenderTable {TABLE} at (0,51) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 57x20 [r=0 c=0 rs=1 cs=1]
+ RenderSelect {SELECT} at (3,1) size 51x18
+ RenderTableCell {TD} at (57,9) size 723x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {P} at (0,89) size 784x24
+ RenderTable {TABLE} at (0,0) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 20x20 [r=0 c=0 rs=1 cs=1]
+ RenderCheckBox {INPUT} at (4,4) size 12x12
+ RenderTableCell {TD} at (20,9) size 760x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {P} at (0,127) size 784x25
+ RenderTable {TABLE} at (0,0) size 784x25
+ RenderTableSection {TBODY} at (2,2) size 0x21
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 22x21 [r=0 c=0 rs=1 cs=1]
+ RenderRadioButton {INPUT} at (4,4) size 14x13
+ RenderTableCell {TD} at (22,9) size 758x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {P} at (0,166) size 784x28
+ RenderTable {TABLE} at (0,0) size 784x28
+ RenderTableSection {TBODY} at (2,2) size 0x24
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 42x24 [r=0 c=0 rs=1 cs=1]
+ RenderSubmitButton {INPUT} at (3,3) size 36x18
+ RenderTableCell {TD} at (42,11) size 738x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {P} at (0,208) size 784x66
+ RenderTable {TABLE} at (0,0) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 42x20 [r=0 c=0 rs=1 cs=1]
+ RenderSubmitButton {INPUT} at (3,1) size 36x18
+ RenderTableCell {TD} at (42,9) size 738x2 [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (0,24) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 93x20 [r=0 c=0 rs=1 cs=1]
+ RenderResetButton {INPUT} at (3,1) size 87x18
+ RenderTableCell {TD} at (93,9) size 687x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock (anonymous) at (0,48) size 784x18
+ RenderSubmitButton {INPUT} at (2,0) size 36x18
diff --git a/third_party/WebKit/LayoutTests/fast/forms/001-diffs.txt b/third_party/WebKit/LayoutTests/fast/forms/001-diffs.txt
new file mode 100644
index 0000000..603a86b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/001-diffs.txt
@@ -0,0 +1,34 @@
+--- /Users/darin/Labyrinth/Site/layout-tests/fast/forms/001-expected.txt Tue Jul 8 16:44:11 2003
++++ /Users/darin/Labyrinth/Site/layout-tests/fast/forms/001-actual.txt Wed Jul 30 17:00:49 2003
+@@ -30,21 +30,21 @@
+ RenderTable {TABLE} at (0,0) size 784x28
+ RenderTableSection {TBODY} at (2,2) size 0x24
+ RenderTableRow {TR} at (0,0) size 0x0
+- RenderTableCell {TD} at (0,0) size 44x24 [r=0 c=0 rs=1 cs=1]
+- RenderSubmitButton {INPUT} at (3,3) size 38x18
+- RenderTableCell {TD} at (44,11) size 736x2 [r=0 c=1 rs=1 cs=1]
++ RenderTableCell {TD} at (0,0) size 42x24 [r=0 c=0 rs=1 cs=1]
++ RenderSubmitButton {INPUT} at (3,3) size 36x18
++ RenderTableCell {TD} at (42,11) size 738x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {P} at (0,208) size 784x66
+ RenderTable {TABLE} at (0,0) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+- RenderTableCell {TD} at (0,0) size 44x20 [r=0 c=0 rs=1 cs=1]
+- RenderSubmitButton {INPUT} at (3,1) size 38x18
+- RenderTableCell {TD} at (44,9) size 736x2 [r=0 c=1 rs=1 cs=1]
++ RenderTableCell {TD} at (0,0) size 42x20 [r=0 c=0 rs=1 cs=1]
++ RenderSubmitButton {INPUT} at (3,1) size 36x18
++ RenderTableCell {TD} at (42,9) size 738x2 [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (0,24) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+- RenderTableCell {TD} at (0,0) size 95x20 [r=0 c=0 rs=1 cs=1]
+- RenderResetButton {INPUT} at (3,1) size 89x18
+- RenderTableCell {TD} at (95,9) size 685x2 [r=0 c=1 rs=1 cs=1]
++ RenderTableCell {TD} at (0,0) size 93x20 [r=0 c=0 rs=1 cs=1]
++ RenderResetButton {INPUT} at (3,1) size 87x18
++ RenderTableCell {TD} at (93,9) size 687x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock (anonymous) at (0,48) size 784x18
+- RenderSubmitButton {INPUT} at (2,0) size 38x18
++ RenderSubmitButton {INPUT} at (2,0) size 36x18
diff --git a/third_party/WebKit/LayoutTests/fast/forms/001-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/001-expected.txt
new file mode 100644
index 0000000..c3fe3bc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/001-expected.txt
@@ -0,0 +1,50 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x296
+ RenderBlock {HTML} at (0,0) size 800x296
+ RenderBody {BODY} at (8,8) size 784x274
+ RenderBlock {H1} at (0,0) size 784x33
+ RenderText {TEXT} at (0,0) size 242x33
+ text run at (0,0) width 242: "Min-Width Tests"
+ RenderTable {TABLE} at (0,51) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 57x20 [r=0 c=0 rs=1 cs=1]
+ RenderSelect {SELECT} at (3,1) size 51x18
+ RenderTableCell {TD} at (57,9) size 723x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {P} at (0,89) size 784x24
+ RenderTable {TABLE} at (0,0) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 20x20 [r=0 c=0 rs=1 cs=1]
+ RenderCheckBox {INPUT} at (4,4) size 12x12
+ RenderTableCell {TD} at (20,9) size 760x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {P} at (0,127) size 784x25
+ RenderTable {TABLE} at (0,0) size 784x25
+ RenderTableSection {TBODY} at (2,2) size 0x21
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 22x21 [r=0 c=0 rs=1 cs=1]
+ RenderRadioButton {INPUT} at (4,4) size 14x13
+ RenderTableCell {TD} at (22,9) size 758x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {P} at (0,166) size 784x28
+ RenderTable {TABLE} at (0,0) size 784x28
+ RenderTableSection {TBODY} at (2,2) size 0x24
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 44x24 [r=0 c=0 rs=1 cs=1]
+ RenderSubmitButton {INPUT} at (3,3) size 38x18
+ RenderTableCell {TD} at (44,11) size 736x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {P} at (0,208) size 784x66
+ RenderTable {TABLE} at (0,0) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 44x20 [r=0 c=0 rs=1 cs=1]
+ RenderSubmitButton {INPUT} at (3,1) size 38x18
+ RenderTableCell {TD} at (44,9) size 736x2 [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (0,24) size 784x24
+ RenderTableSection {TBODY} at (2,2) size 0x20
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 95x20 [r=0 c=0 rs=1 cs=1]
+ RenderResetButton {INPUT} at (3,1) size 89x18
+ RenderTableCell {TD} at (95,9) size 685x2 [r=0 c=1 rs=1 cs=1]
+ RenderBlock (anonymous) at (0,48) size 784x18
+ RenderSubmitButton {INPUT} at (2,0) size 38x18
diff --git a/third_party/WebKit/LayoutTests/fast/forms/001.html b/third_party/WebKit/LayoutTests/fast/forms/001.html
new file mode 100644
index 0000000..d84c7ec
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/001.html
@@ -0,0 +1,33 @@
+<h1>Min-Width Tests</h1>
+
+<table width=100% border=2 cellpadding=0 cellspacing=0>
+<tr><td width=1><select style="border:40px solid red; height:12px"><option>Foo</option></select></td>
+<td></tr></table>
+
+<p>
+
+<table width=100% border=2 cellpadding=0 cellspacing=0>
+<tr><td width=1><input type=checkbox style="border:40px solid red; height:12px"></td>
+<td></tr></table>
+
+<p>
+
+<table width=100% border=2 cellpadding=0 cellspacing=0>
+<tr><td width=1><input type=radio style="border:40px solid red; height:12px"></td>
+<td></tr></table>
+
+<p>
+
+<table width=100% border=2 cellpadding=0 cellspacing=0>
+<tr><td width="1"><input type=button value="Foo"></td>
+<td></tr></table>
+<p>
+<table width=100% border=2 cellpadding=0 cellspacing=0>
+<tr><td width=1><input type=submit value="Foo" style="border:40px solid red; height:12px"></td>
+<td></tr></table>
+
+<table width=100% border=2 cellpadding=0 cellspacing=0>
+<tr><td width=1><input type=reset value="Submit a bug" style="border:40px solid red; height:12px"></td>
+<td></tr></table>
+
+<input type=button value="Foo" style="border:40px solid red; height:12px"> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/forms/002-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/002-expected.txt
new file mode 100644
index 0000000..274e15e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/002-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderBlock (floating) {DIV} at (0,0) size 156x24
+ RenderImageButton {INPUT} at (2,2) size 152x20
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/forms/002.html b/third_party/WebKit/LayoutTests/fast/forms/002.html
new file mode 100644
index 0000000..613f224
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/002.html
@@ -0,0 +1,4 @@
+<html>
+<body >
+ <div style="float:left; border:2px solid red"><input type="image" width="152" height="20" value="Submit" border="0" src="spinner%20Files/grx_transparency.gif" >
+ </div> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/forms/003-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/003-expected.txt
new file mode 100644
index 0000000..71cce8d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/003-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x53
+ RenderBlock {HTML} at (0,0) size 800x53
+ RenderBody {BODY} at (8,8) size 784x37
+ RenderSelect {SELECT} at (2,0) size 59x18
+ RenderBlock (anonymous) at (0,20) size 784x17
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This text should be *below* the select widget."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/forms/003.html b/third_party/WebKit/LayoutTests/fast/forms/003.html
new file mode 100644
index 0000000..930adcf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/003.html
@@ -0,0 +1,6 @@
+<html>
+<body>
+<select style="display:block"><option selected>Hello</option></select>
+This text should be *below* the select widget.
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/forms/004-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/004-expected.txt
new file mode 100644
index 0000000..023425a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/004-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x38
+ RenderBlock {HTML} at (0,0) size 800x38
+ RenderBody {BODY} at (8,8) size 784x22
+ RenderSelect {SELECT} at (2,2) size 59x18
+ RenderText {TEXT} at (63,0) size 4x17
+ text run at (63,0) width 4: " "
+ RenderSelect {SELECT} at (69,2) size 79x18
diff --git a/third_party/WebKit/LayoutTests/fast/forms/004.html b/third_party/WebKit/LayoutTests/fast/forms/004.html
new file mode 100644
index 0000000..7595a8d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/004.html
@@ -0,0 +1 @@
+<select><option>Hello</option></select> <select><option>Goodbye</option></select>
diff --git a/third_party/WebKit/LayoutTests/fast/forms/005-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/005-expected.txt
new file mode 100644
index 0000000..a28818b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/005-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x70
+ RenderBlock {HTML} at (0,0) size 800x70
+ RenderBody {BODY} at (8,8) size 784x54
+ RenderTable {TABLE} at (0,0) size 44x54
+ RenderTableSection {TBODY} at (0,0) size 0x54
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 44x54 [r=0 c=0 rs=1 cs=1]
+ RenderImageButton {INPUT} at (2,2) size 40x50
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/forms/005.html b/third_party/WebKit/LayoutTests/fast/forms/005.html
new file mode 100644
index 0000000..4c0ec05
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/005.html
@@ -0,0 +1,8 @@
+<table width=40 cellpadding=0 cellspacing=0 border=0>
+<tr>
+<td width=40>
+<input type=image width=40 height=50 hspace=2 vspace=2>
+</td>
+</tr>
+</table>
+
diff --git a/third_party/WebKit/LayoutTests/fast/forms/006-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/006-expected.txt
new file mode 100644
index 0000000..792ea43
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/006-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x90
+ RenderBlock {HTML} at (0,0) size 800x90
+ RenderBody {BODY} at (8,8) size 784x74
+ RenderBlock {DIV} at (0,0) size 784x74
+ RenderFieldSet {FIELDSET} at (7,5) size 770x64
+ RenderLegend {LEGEND} at (38,0) size 134x17
+ RenderText {TEXT} at (2,0) size 130x17
+ text run at (2,0) width 130: "Test without forms"
+ RenderBlock {DIV} at (18,27) size 734x17
+ RenderText {TEXT} at (0,0) size 296x17
+ text run at (0,0) width 296: "A DIV inside a fieldset, not related to forms"
diff --git a/third_party/WebKit/LayoutTests/fast/forms/006.html b/third_party/WebKit/LayoutTests/fast/forms/006.html
new file mode 100644
index 0000000..0dd6462
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/006.html
@@ -0,0 +1,5 @@
+<div style="border: 5px solid black">
+<FIELDSET style="border:10px groove red">
+<LEGEND style="margin-left:20px;">Test without forms</LEGEND><DIV>A DIV inside a fieldset, not related to forms</DIV>
+</FIELDSET>
+</div>
diff --git a/third_party/WebKit/LayoutTests/fast/forms/input-width-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/input-width-expected.txt
new file mode 100644
index 0000000..cd5f2330
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/input-width-expected.txt
@@ -0,0 +1,6 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x39
+ RenderBlock {HTML} at (0,0) size 800x39
+ RenderBody {BODY} at (8,8) size 784x23
+ RenderLineEdit {INPUT} at (2,2) size 50x19
diff --git a/third_party/WebKit/LayoutTests/fast/forms/input-width.html b/third_party/WebKit/LayoutTests/fast/forms/input-width.html
new file mode 100644
index 0000000..eec9398
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/input-width.html
@@ -0,0 +1 @@
+<input type=text maxlength=5 size=6>
diff --git a/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-actual.txt b/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-actual.txt
new file mode 100644
index 0000000..f448ab4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-actual.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderFrameSet {FRAMESET} at (0,0) size 800x600
+ RenderFrame {FRAME} at (0,0) size 800x197
+ layer at (0,0) size 785x182
+ RenderCanvas at (0,0) size 785x182
+ layer at (0,0) size 785x8
+ RenderBlock {HTML} at (0,0) size 785x8
+ RenderBody {BODY} at (8,8) size 769x0 [bgcolor=#FF0000]
+ RenderFrame {FRAME} at (0,201) size 800x197
+ layer at (0,0) size 785x182
+ RenderCanvas at (0,0) size 785x182
+ layer at (0,0) size 785x8
+ RenderBlock {HTML} at (0,0) size 785x8
+ RenderBody {BODY} at (8,8) size 769x0 [bgcolor=#800080]
+ RenderFrame {FRAME} at (0,402) size 800x197
+ layer at (0,0) size 785x182
+ RenderCanvas at (0,0) size 785x182
diff --git a/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-diffs.txt b/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-diffs.txt
new file mode 100644
index 0000000..e45c5822
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-diffs.txt
@@ -0,0 +1,32 @@
+--- /Users/darin/Labyrinth/Site/layout-tests/fast/frames/empty-frame-src-expected.txt Thu Jul 17 16:25:41 2003
++++ /Users/darin/Labyrinth/Site/layout-tests/fast/frames/empty-frame-src-actual.txt Wed Jul 30 17:00:50 2003
+@@ -4,17 +4,17 @@
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderFrameSet {FRAMESET} at (0,0) size 800x600
+ RenderFrame {FRAME} at (0,0) size 800x197
+- layer at (0,0) size 800x197
+- RenderCanvas at (0,0) size 800x197
+- layer at (0,0) size 800x8
+- RenderBlock {HTML} at (0,0) size 800x8
+- RenderBody {BODY} at (8,8) size 784x0 [bgcolor=#FF0000]
++ layer at (0,0) size 785x182
++ RenderCanvas at (0,0) size 785x182
++ layer at (0,0) size 785x8
++ RenderBlock {HTML} at (0,0) size 785x8
++ RenderBody {BODY} at (8,8) size 769x0 [bgcolor=#FF0000]
+ RenderFrame {FRAME} at (0,201) size 800x197
+- layer at (0,0) size 800x197
+- RenderCanvas at (0,0) size 800x197
+- layer at (0,0) size 800x8
+- RenderBlock {HTML} at (0,0) size 800x8
+- RenderBody {BODY} at (8,8) size 784x0 [bgcolor=#800080]
++ layer at (0,0) size 785x182
++ RenderCanvas at (0,0) size 785x182
++ layer at (0,0) size 785x8
++ RenderBlock {HTML} at (0,0) size 785x8
++ RenderBody {BODY} at (8,8) size 769x0 [bgcolor=#800080]
+ RenderFrame {FRAME} at (0,402) size 800x197
+- layer at (0,0) size 800x197
+- RenderCanvas at (0,0) size 800x197
++ layer at (0,0) size 785x182
++ RenderCanvas at (0,0) size 785x182
diff --git a/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-expected.txt b/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-expected.txt
new file mode 100644
index 0000000..01334e5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderFrameSet {FRAMESET} at (0,0) size 800x600
+ RenderFrame {FRAME} at (0,0) size 800x197
+ layer at (0,0) size 800x197
+ RenderCanvas at (0,0) size 800x197
+ layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0 [bgcolor=#FF0000]
+ RenderFrame {FRAME} at (0,201) size 800x197
+ layer at (0,0) size 800x197
+ RenderCanvas at (0,0) size 800x197
+ layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0 [bgcolor=#800080]
+ RenderFrame {FRAME} at (0,402) size 800x197
+ layer at (0,0) size 800x197
+ RenderCanvas at (0,0) size 800x197
diff --git a/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src.html b/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src.html
new file mode 100644
index 0000000..e318fb1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/empty-frame-src.html
@@ -0,0 +1,5 @@
+<frameset rows="20,20,20">
+ <frame src="resources/red.html">
+ <frame src="resources/purple.html">
+ <frame src="">
+</frameset>
diff --git a/third_party/WebKit/LayoutTests/fast/frames/resources/purple.html b/third_party/WebKit/LayoutTests/fast/frames/resources/purple.html
new file mode 100644
index 0000000..16f5c5f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/resources/purple.html
@@ -0,0 +1,4 @@
+<html>
+<body bgcolor="purple">
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/frames/resources/red.html b/third_party/WebKit/LayoutTests/fast/frames/resources/red.html
new file mode 100644
index 0000000..9e618b0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/resources/red.html
@@ -0,0 +1,4 @@
+<html>
+<body bgcolor="red">
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/inline-block/001-expected.txt b/third_party/WebKit/LayoutTests/fast/inline-block/001-expected.txt
new file mode 100644
index 0000000..7fcdde4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/inline-block/001-expected.txt
@@ -0,0 +1,46 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x57
+ RenderBlock {HTML} at (0,0) size 800x57
+ RenderBody {BODY} at (8,8) size 784x41
+ RenderBlock {P} at (0,0) size 64x38
+ RenderText {TEXT} at (2,2) size 60x17
+ text run at (2,2) width 60: "This text"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (2,19) size 60x17
+ text run at (2,19) width 60: "This text"
+ RenderText {TEXT} at (64,24) size 4x17
+ text run at (64,24) width 4: " "
+ RenderBlock {P} at (68,0) size 123x38
+ RenderBlock {SPAN} at (2,2) size 119x34
+ RenderText {TEXT} at (0,0) size 87x17
+ text run at (0,0) width 87: "should all be"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,17) size 119x17
+ text run at (0,17) width 119: "should also all be"
+ RenderText {TEXT} at (191,24) size 4x17
+ text run at (191,24) width 4: " "
+ RenderTable {TABLE} at (195,0) size 48x38
+ RenderTableSection {TBODY} at (2,2) size 0x34
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 44x17 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 44x17
+ text run at (0,0) width 44: "on the"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,17) size 44x17 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 44x17
+ text run at (0,0) width 44: "on the"
+ RenderText {TEXT} at (243,24) size 4x17
+ text run at (243,24) width 4: " "
+ RenderTable {TABLE} at (247,0) size 78x38
+ RenderTableSection {TBODY} at (2,2) size 0x34
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 74x17 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 74x17
+ text run at (0,0) width 74: "same line.\x{A0}"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,17) size 74x17 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 70x17
+ text run at (0,0) width 70: "same line."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/inline-block/001.html b/third_party/WebKit/LayoutTests/fast/inline-block/001.html
new file mode 100644
index 0000000..eb09781
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/inline-block/001.html
@@ -0,0 +1,14 @@
+<html>
+<body><p style="margin:0;display:inline-block;border:2px solid blue;">This text<br>This text</p>
+<p style="margin: 0; border: 2px solid blue; display:inline-block">
+<span style="display:block">should all be<br>should also all be</span></p>
+<table style="margin: 0; display: inline-table; border:2px solid blue" cellpadding=0 cellspacing=0>
+<tr><td>on the
+<tr><td>on the
+</table>
+<table style="margin: 0; display: inline-table; border:2px solid blue" cellpadding=0 cellspacing=0>
+<tr><td>same line.&nbsp;
+<tr><td>same line.
+</table>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/inline/001-expected.txt b/third_party/WebKit/LayoutTests/fast/inline/001-expected.txt
new file mode 100644
index 0000000..30602a8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/inline/001-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x73
+ RenderBlock {HTML} at (0,0) size 800x73
+ RenderBody {BODY} at (8,8) size 784x57
+ RenderBlock {DIV} at (0,0) size 784x57
+ RenderText {TEXT} at (2,38) size 171x17
+ text run at (2,38) width 171: "This image has a margin "
+ RenderImage {IMG} at (223,2) size 50x50 [bgcolor=#008000]
+ RenderText {TEXT} at (323,38) size 41x17
+ text run at (323,38) width 41: " on it."
diff --git a/third_party/WebKit/LayoutTests/fast/inline/001.html b/third_party/WebKit/LayoutTests/fast/inline/001.html
new file mode 100644
index 0000000..232ff9a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/inline/001.html
@@ -0,0 +1,4 @@
+<body>
+<div style="border:2px solid red">
+This image has a margin <img style="width:50px; height:50px; background-color:green; margin-left:50px; margin-right:50px"> on it.
+</div>
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/001-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/001-expected.txt
new file mode 100644
index 0000000..0187636
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/001-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x64
+ RenderBlock {HTML} at (0,0) size 800x64
+ RenderBody {BODY} at (8,8) size 784x48
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderInline {B} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderInline {B} at (0,0) size 0x0
+ RenderBlock {P} at (0,0) size 784x17
+ RenderInline {B} at (0,0) size 37x17
+ RenderText {TEXT} at (0,0) size 37x17
+ text run at (0,0) width 37: "Bold "
+ RenderText {TEXT} at (37,0) size 60x17
+ text run at (37,0) width 60: "Not bold"
+ RenderBlock (anonymous) at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 97x17
+ text run at (0,0) width 97: "Also not bold."
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/001.html b/third_party/WebKit/LayoutTests/fast/invalid/001.html
new file mode 100644
index 0000000..28b40bf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/001.html
@@ -0,0 +1,2 @@
+<b><p>Bold </b> Not bold</p>
+Also not bold.
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/002-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/002-expected.txt
new file mode 100644
index 0000000..869b2ce
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/002-expected.txt
@@ -0,0 +1,29 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x152
+ RenderBlock {HTML} at (0,0) size 800x152
+ RenderBody {BODY} at (8,8) size 784x136
+ RenderBlock (anonymous) at (0,0) size 784x16
+ RenderInline {I} at (0,0) size 58x16
+ RenderText {TEXT} at (0,0) size 58x16
+ text run at (0,0) width 58: "Line One"
+ RenderBlock (anonymous) at (0,30) size 784x16
+ RenderBlock {P} at (0,0) size 784x16
+ RenderText {TEXT} at (0,0) size 58x16
+ text run at (0,0) width 58: "Line Two"
+ RenderBlock (anonymous) at (0,60) size 784x16
+ RenderInline {I} at (0,0) size 31x16
+ RenderText {TEXT} at (0,0) size 31x16
+ text run at (0,0) width 31: "Line "
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {I} at (0,0) size 38x16
+ RenderText {TEXT} at (31,0) size 38x16
+ text run at (31,0) width 38: "Three"
+ RenderBlock (anonymous) at (0,90) size 784x16
+ RenderBlock {P} at (0,0) size 784x16
+ RenderText {TEXT} at (0,0) size 61x16
+ text run at (0,0) width 61: "Line Four"
+ RenderBlock (anonymous) at (0,120) size 784x16
+ RenderInline {I} at (0,0) size 58x16
+ RenderText {TEXT} at (0,0) size 58x16
+ text run at (0,0) width 58: "Line Five"
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/002.html b/third_party/WebKit/LayoutTests/fast/invalid/002.html
new file mode 100644
index 0000000..73bdccc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/002.html
@@ -0,0 +1,3 @@
+<html>
+<i>Line One<p>Line Two</p>Line </i>
+<i>Three<p>Line Four</p>Line Five</i>
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/003-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/003-expected.txt
new file mode 100644
index 0000000..2bae31f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/003-expected.txt
@@ -0,0 +1,70 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x186
+ RenderBlock {HTML} at (0,0) size 800x186
+ RenderBody {BODY} at (8,8) size 784x170
+ RenderBlock (anonymous) at (0,0) size 784x16
+ RenderInline {FONT} at (0,0) size 87x16 [color=#FF0000]
+ RenderInline {I} at (0,0) size 87x16
+ RenderText {TEXT} at (0,0) size 87x16
+ text run at (0,0) width 87: "Italic and Red"
+ RenderBlock (anonymous) at (0,16) size 784x0 [color=#FF0000]
+ RenderBlock (anonymous) at (0,16) size 784x0
+ RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000]
+ RenderInline {I} at (0,0) size 0x0
+ RenderInline {I} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,30) size 784x16
+ RenderBlock {P} at (0,0) size 784x16
+ RenderInline {FONT} at (0,0) size 91x16 [color=#FF0000]
+ RenderText {TEXT} at (0,0) size 91x16
+ text run at (0,0) width 91: "Italic and Red "
+ RenderText {TEXT} at (91,0) size 62x16
+ text run at (91,0) width 62: "Just italic."
+ RenderBlock (anonymous) at (0,60) size 784x17
+ RenderInline {I} at (0,0) size 63x16
+ RenderText {TEXT} at (0,1) size 63x16
+ text run at (0,1) width 63: "Italic only."
+ RenderText {TEXT} at (63,0) size 37x17
+ text run at (63,0) width 37: " Plain"
+ RenderBlock {P} at (0,91) size 784x17
+ RenderText {TEXT} at (0,0) size 139x17
+ text run at (0,0) width 139: "I should not be red. "
+ RenderInline {FONT} at (0,0) size 121x17 [color=#FF0000]
+ RenderText {TEXT} at (139,0) size 35x17
+ text run at (139,0) width 35: "Red. "
+ RenderInline {I} at (0,0) size 86x16
+ RenderText {TEXT} at (174,1) size 86x16
+ text run at (174,1) width 86: "Italic and red."
+ RenderBlock (anonymous) at (0,122) size 784x0
+ RenderInline {I} at (0,0) size 0x0
+ RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,122) size 784x0 [color=#FF0000]
+ RenderBlock (anonymous) at (0,122) size 784x0
+ RenderInline {I} at (0,0) size 0x0
+ RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000]
+ RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000]
+ RenderBlock (anonymous) at (0,122) size 784x0 [color=#FF0000]
+ RenderBlock (anonymous) at (0,122) size 784x0
+ RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000]
+ RenderBlock {P} at (0,122) size 784x17
+ RenderInline {FONT} at (0,0) size 121x17 [color=#FF0000]
+ RenderInline {I} at (0,0) size 90x16
+ RenderText {TEXT} at (0,1) size 90x16
+ text run at (0,1) width 90: "Italic and red. "
+ RenderText {TEXT} at (90,0) size 31x17
+ text run at (90,0) width 31: "Red."
+ RenderText {TEXT} at (121,0) size 139x17
+ text run at (121,0) width 139: " I should not be red."
+ RenderBlock (anonymous) at (0,153) size 784x17
+ RenderInline {B} at (0,0) size 136x17
+ RenderText {TEXT} at (0,0) size 37x17
+ text run at (0,0) width 37: "Bold "
+ RenderInline {I} at (0,0) size 99x16
+ RenderText {TEXT} at (37,1) size 99x16
+ text run at (37,1) width 99: "Bold and italic"
+ RenderInline {I} at (0,0) size 70x16
+ RenderText {TEXT} at (136,1) size 70x16
+ text run at (136,1) width 70: " Only Italic "
+ RenderText {TEXT} at (206,0) size 33x17
+ text run at (206,0) width 33: "Plain"
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/003.html b/third_party/WebKit/LayoutTests/fast/invalid/003.html
new file mode 100644
index 0000000..1b6d3e1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/003.html
@@ -0,0 +1,9 @@
+<html>
+
+<font color=red><i>Italic and Red<p>Italic and Red </font> Just italic.</p> Italic only.</i> Plain
+
+<p>I should not be red. <font color=red>Red. <i>Italic and red.</p>
+<p>Italic and red. </i> Red.</font> I should not be red.</p>
+
+
+<b>Bold <i>Bold and italic</b> Only Italic </i> Plain \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/004-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/004-expected.txt
new file mode 100644
index 0000000..be770dd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/004-expected.txt
@@ -0,0 +1,33 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x212
+ RenderBlock {HTML} at (0,0) size 800x212
+ RenderBody {BODY} at (8,8) size 784x190
+ RenderBlock {P} at (0,0) size 784x47
+ RenderInline {FONT} at (0,0) size 311x47
+ RenderText {TEXT} at (0,0) size 311x47
+ text run at (0,0) width 311: "First paragraph."
+ RenderBlock (anonymous) at (0,61) size 784x0
+ RenderInline {FONT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,87) size 784x47
+ RenderBlock {P} at (0,0) size 784x47
+ RenderText {TEXT} at (0,0) size 365x47
+ text run at (0,0) width 365: "Second paragraph."
+ RenderBlock (anonymous) at (0,174) size 784x0
+ RenderInline {FONT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {B} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,174) size 784x0
+ RenderBlock (anonymous) at (0,174) size 784x0
+ RenderInline {B} at (0,0) size 0x0
+ RenderBlock {P} at (0,174) size 784x16
+ RenderInline {B} at (0,0) size 99x16
+ RenderInline {I} at (0,0) size 99x16
+ RenderText {TEXT} at (0,0) size 99x16
+ text run at (0,0) width 99: "Bold and Italic"
+ RenderInline {I} at (0,0) size 33x16
+ RenderText {TEXT} at (99,0) size 33x16
+ text run at (99,0) width 33: " Italic"
+ RenderBlock (anonymous) at (0,204) size 784x0
+ RenderInline {I} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/004.html b/third_party/WebKit/LayoutTests/fast/invalid/004.html
new file mode 100644
index 0000000..c9f3271
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/004.html
@@ -0,0 +1,5 @@
+<html><body>
+<p><font size="7">First paragraph.</p>
+<p>Second paragraph.</p></font>
+
+<b><p><i>Bold and Italic</b> Italic</p> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/005-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/005-expected.txt
new file mode 100644
index 0000000..6e72df5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/005-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x56
+ RenderBlock {HTML} at (0,0) size 800x56
+ RenderBody {BODY} at (8,8) size 784x34
+ RenderBlock {DL} at (0,0) size 784x34
+ RenderBlock {DT} at (0,0) size 784x17
+ RenderInline {B} at (0,0) size 27x17
+ RenderText {TEXT} at (0,0) size 27x17
+ text run at (0,0) width 27: "Boo"
+ RenderBlock (anonymous) at (0,17) size 784x0
+ RenderInline {B} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,17) size 784x17
+ RenderBlock {DD} at (40,0) size 744x17
+ RenderText {TEXT} at (0,0) size 36x17
+ text run at (0,0) width 36: "Goo?"
+ RenderBlock (anonymous) at (0,34) size 784x0
+ RenderInline {B} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,48) size 784x0
+ RenderInline {B} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/005.html b/third_party/WebKit/LayoutTests/fast/invalid/005.html
new file mode 100644
index 0000000..5bc7cb8b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/005.html
@@ -0,0 +1,6 @@
+<html>
+<dl>
+<dt><b>Boo
+<dd>Goo?
+</dl>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/006-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/006-expected.txt
new file mode 100644
index 0000000..9744e20
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/006-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17 [color=#FFFFFF] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 340x17
+ text run at (0,0) width 340: "This should be white text on a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/006.html b/third_party/WebKit/LayoutTests/fast/invalid/006.html
new file mode 100644
index 0000000..ef1a675
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/006.html
@@ -0,0 +1,15 @@
+<html>
+<head>
+<style>
+body {
+ color: white; !important
+}
+
+body {
+ background-color:green;
+}
+</style>
+</head>
+<body>
+This should be white text on a green background.
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/007-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/007-expected.txt
new file mode 100644
index 0000000..af97eb3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/007-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x50
+ RenderBlock {HTML} at (0,0) size 800x50
+ RenderBody {BODY} at (8,8) size 784x34
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderInline {LABEL} at (0,0) size 0x0
+ RenderInline {A} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderInline {LABEL} at (0,0) size 0x0
+ RenderInline {A} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,0) size 784x34
+ RenderBlock {DIV} at (0,0) size 784x34
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {A} at (0,0) size 35x17
+ RenderText {TEXT} at (0,0) size 35x17
+ text run at (0,0) width 35: "Hello"
+ RenderBlock (anonymous) at (0,17) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 40x17
+ text run at (0,0) width 40: "World"
+ RenderBlock (anonymous) at (0,34) size 784x0
+ RenderInline {A} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,34) size 784x0
+ RenderInline {LABEL} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/007.html b/third_party/WebKit/LayoutTests/fast/invalid/007.html
new file mode 100644
index 0000000..63c0cc9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/007.html
@@ -0,0 +1,3 @@
+<html><body>
+<label><a><div>Hello<div>World</div></a></label>
+</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/008-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/008-expected.txt
new file mode 100644
index 0000000..f719295
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/008-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x41
+ RenderBlock {HTML} at (0,0) size 800x41
+ RenderBody {BODY} at (8,8) size 784x18
+ RenderBlock {P} at (0,0) size 784x18
+ RenderText {TEXT} at (0,0) size 32x18
+ text run at (0,0) width 32: "Test"
+layer at (250,50) size 264x61
+ RenderBlock (positioned) {DIV} at (250,50) size 264x61
+ RenderText {TEXT} at (22,22) size 220x17
+ text run at (22,22) width 220: "I should be absolute positioned."
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/008.html b/third_party/WebKit/LayoutTests/fast/invalid/008.html
new file mode 100644
index 0000000..facf2b9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/008.html
@@ -0,0 +1,20 @@
+<head>
+<style>
+#body {
+position: absolute;
+left: 250px;
+top: 50px;
+padding: 20px;
+<!-- was: background: #000 url(backgroundblur.jpg) 0 0 no-repeat; -->
+background: #000;
+}
+p {
+font-family: Verdana, Tahoma, Eurostile, Arial, Helvetica, Geneva, sans-serif;
+font-size: 15px;
+}
+</style>
+</head>
+<body>
+<p>Test</p>
+<div id="body" style="border:2px solid green;">I should
+be absolute positioned.</div>
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/009-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/009-expected.txt
new file mode 100644
index 0000000..40c683e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/009-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17 [color=#FFFFFF] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 340x17
+ text run at (0,0) width 340: "This text should be white on a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/009.html b/third_party/WebKit/LayoutTests/fast/invalid/009.html
new file mode 100644
index 0000000..bb480c42
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/009.html
@@ -0,0 +1,13 @@
+<html>
+<head>
+<style>
+body {
+ color: white;
+ background-color:green;
+ letter-spacing: .none
+}
+</style>
+</head>
+<body>
+This text should be white on a green background.
+
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/010-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/010-expected.txt
new file mode 100644
index 0000000..6b86f26
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/010-expected.txt
@@ -0,0 +1,51 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x273
+ RenderBlock {HTML} at (0,0) size 800x273
+ RenderBody {BODY} at (8,8) size 784x257
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 367x17
+ text run at (0,0) width 367: "The style rule on this page should be totally ignored. "
+ RenderInline {A} at (0,0) size 88x17
+ RenderText {TEXT} at (367,0) size 88x17
+ text run at (367,0) width 88: "here is a link"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {H1} at (0,35) size 784x33
+ RenderText {TEXT} at (0,0) size 116x33
+ text run at (0,0) width 116: "heading"
+ RenderBlock (anonymous) at (0,86) size 784x85
+ RenderInline {SPAN} at (0,0) size 35x17
+ RenderText {TEXT} at (0,0) size 35x17
+ text run at (0,0) width 35: "issue"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 21x17
+ RenderText {TEXT} at (0,17) size 21x17
+ text run at (0,17) width 21: "fail"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {A} at (0,0) size 133x17
+ RenderText {TEXT} at (0,34) size 133x17
+ text run at (0,34) width 133: "here is another link"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 24x17
+ RenderText {TEXT} at (0,51) size 24x17
+ text run at (0,51) width 24: "n/a"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 31x17
+ RenderText {TEXT} at (0,68) size 31x17
+ text run at (0,68) width 31: "pass"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {H1} at (0,189) size 784x33
+ RenderText {TEXT} at (0,0) size 237x33
+ text run at (0,0) width 237: "another heading"
+ RenderBlock (anonymous) at (0,240) size 784x17
+ RenderInline {SPAN} at (0,0) size 24x17
+ RenderText {TEXT} at (0,0) size 24x17
+ text run at (0,0) width 24: "n/a"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/010.html b/third_party/WebKit/LayoutTests/fast/invalid/010.html
new file mode 100644
index 0000000..a4fe2ef
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/010.html
@@ -0,0 +1,23 @@
+<html>
+<head>
+<style type="text/css">
+.issue, .fail, .pass, .n/a {
+ font-weight: bold;
+ text-transform: uppercase;
+}
+</style>
+</head>
+
+<body>
+The style rule on this page should be totally ignored.
+<a>here is a link</a>
+<h1>heading</h1>
+<span class="issue">issue</span><br>
+<span class="fail">fail</span><br>
+<a>here is another link</a><br>
+<span class="n/a">n/a</span><br>
+<span class="pass">pass</span><br>
+<h1>another heading</h1>
+<span class="n/a">n/a</span><br>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/011-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/011-expected.txt
new file mode 100644
index 0000000..f4d41f6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/011-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17 [color=#FFFFFF] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 316x17
+ text run at (0,0) width 316: "I should be white text on a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/011.html b/third_party/WebKit/LayoutTests/fast/invalid/011.html
new file mode 100644
index 0000000..daa6cd5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/011.html
@@ -0,0 +1,9 @@
+<HTML>
+<HEAD>
+<STYLE type="text/css">
+p { font-family: }
+body { color: white; background-color: green }
+</STYLE>
+</HEAD>
+<BODY>
+I should be white text on a green background.
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/012-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/012-expected.txt
new file mode 100644
index 0000000..c9b14c5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/012-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x139
+ RenderBlock {HTML} at (0,0) size 800x139
+ RenderBody {BODY} at (8,8) size 784x123
+ RenderBlock {CENTER} at (0,0) size 784x17
+ RenderInline {FONT} at (0,0) size 322x17
+ RenderText {TEXT} at (231,0) size 322x17
+ text run at (231,0) width 147: "You should see a 100"
+ text run at (378,0) width 175: "x100 green Image below."
+ RenderBlock (anonymous) at (0,17) size 784x100
+ RenderInline {FONT} at (0,0) size 100x14
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,0) size 100x100 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTable {TABLE} at (0,117) size 6x6
+ RenderTableSection {TBODY} at (0,0) size 0x6
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 2x2 [r=0 c=0 rs=1 cs=1]
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/012.html b/third_party/WebKit/LayoutTests/fast/invalid/012.html
new file mode 100644
index 0000000..b7400ff
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/012.html
@@ -0,0 +1,9 @@
+<TABLE>
+ <CENTER>
+ <FONT>You should see a 100x100 green Image below.
+ </CENTER>
+<IMG alt="Image" width=100 height=100 style="background-color:green">
+<tr><td>
+</td>
+</tr>
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/013-expected.txt b/third_party/WebKit/LayoutTests/fast/invalid/013-expected.txt
new file mode 100644
index 0000000..434f3157
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/013-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17 [color=#FFFFFF] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 344x17
+ text run at (0,0) width 344: "You should see white text on a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/invalid/013.html b/third_party/WebKit/LayoutTests/fast/invalid/013.html
new file mode 100644
index 0000000..61b0e42
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/invalid/013.html
@@ -0,0 +1,19 @@
+<html>
+<head>
+<style>
+div {
+ color: #;
+}
+
+div {
+ color: #
+}
+
+body {
+ color: white;
+ background-color: green;
+}
+</style>
+</head>
+<body>
+You should see white text on a green background.
diff --git a/third_party/WebKit/LayoutTests/fast/lists/001-expected.txt b/third_party/WebKit/LayoutTests/fast/lists/001-expected.txt
new file mode 100644
index 0000000..d2b46b23
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/001-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x271
+ RenderBlock {HTML} at (0,0) size 800x271
+ RenderBody {BODY} at (8,8) size 784x249
+ RenderBlock {DIV} at (0,0) size 784x97
+ RenderBlock (floating) {DIV} at (10,10) size 120x120 [bgcolor=#FFA500]
+ RenderBlock (anonymous) at (10,10) size 764x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderListItem {DIV} at (10,10) size 764x77
+ RenderListItem {DIV} at (10,10) size 744x57
+ RenderListItem {DIV} at (10,10) size 724x37
+ RenderListMarker at (128,10) size 0x14
+ RenderListMarker at (128,10) size 0x14
+ RenderListMarker at (128,10) size 0x14
+ RenderText {TEXT} at (128,10) size 95x17
+ text run at (128,10) width 95: "List item text."
+ RenderBlock {UL} at (158,111) size 626x138
+ RenderListItem {LI} at (40,0) size 586x138
+ RenderListMarker at (83,52) size 0x14
+ RenderText {TEXT} at (83,52) size 451x34
+ text run at (83,52) width 451: "Foo fofodfosjlkdf dslkdjlk asdlksjald djklsd klasjdkas sdajd lsadjkl"
+ text run at (457,69) width 77: "asjdlksajdk"
diff --git a/third_party/WebKit/LayoutTests/fast/lists/001.html b/third_party/WebKit/LayoutTests/fast/lists/001.html
new file mode 100644
index 0000000..60814b2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/001.html
@@ -0,0 +1,30 @@
+<html>
+<head>
+<style>
+div {
+ border: solid orange; padding: 0.5em 0.5em 0.5em 0.5em;
+ display: list-item;
+ }
+
+ .float {
+ float: left;
+ margin-right: 2em;
+ width:100px;
+ height:100px;
+ background-color: orange;
+ }
+</style>
+<body>
+<div style="display:block">
+ <div class="float"></div>
+ <div>
+ <div>
+ <div>
+ List item text.
+ </div>
+ </div>
+ </div>
+</div>
+
+<ul><li style="direction: rtl; border:2px solid red; padding:50px">Foo fofodfosjlkdf
+dslkdjlk asdlksjald djklsd klasjdkas sdajd lsadjkl asjdlksajdk </ul>
diff --git a/third_party/WebKit/LayoutTests/fast/lists/002-expected.txt b/third_party/WebKit/LayoutTests/fast/lists/002-expected.txt
new file mode 100644
index 0000000..395a9a1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/002-expected.txt
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x104
+ RenderBlock {HTML} at (0,0) size 800x104
+ RenderBody {BODY} at (8,8) size 784x82
+ RenderBlock {DIV} at (0,0) size 784x34
+ RenderBlock {UL} at (0,0) size 784x34
+ RenderListItem {LI} at (40,0) size 744x17
+ RenderListMarker at (704,0) size 0x14
+ RenderInline {A} at (0,0) size 40x17 [color=#0000EE]
+ RenderText {TEXT} at (704,0) size 40x17
+ text run at (704,0) width 40: "Home"
+ RenderListItem {LI} at (40,17) size 744x17
+ RenderListMarker at (686,0) size 0x14
+ RenderInline {A} at (0,0) size 58x17 [color=#0000EE]
+ RenderText {TEXT} at (686,0) size 58x17
+ text run at (686,0) width 58: "Archives"
+ RenderBlock {P} at (0,48) size 784x34
+ RenderText {TEXT} at (0,0) size 782x34
+ text run at (0,0) width 587: "This test case illustrates the correct positioning of list item bullets according to CSS3. "
+ text run at (587,0) width 195: "The bullets should be on the"
+ text run at (0,17) width 365: "far left, with the text of the list items on the far right."
diff --git a/third_party/WebKit/LayoutTests/fast/lists/002.html b/third_party/WebKit/LayoutTests/fast/lists/002.html
new file mode 100644
index 0000000..6e47044
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/002.html
@@ -0,0 +1,22 @@
+<html>
+<head>
+<title>Safari test case: list items within text-align: right div</title>
+<style type="text/css">
+#menu {
+ text-align: right;
+}
+</style>
+</head>
+<body>
+<div id="menu">
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/archives/">Archives</a></li>
+</ul>
+</div>
+
+<p>This test case illustrates the correct positioning of list item bullets according to CSS3. The bullets should be on the far left, with the text of the list items on the far right.
+</p>
+</body>
+
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/lists/003-expected.txt b/third_party/WebKit/LayoutTests/fast/lists/003-expected.txt
new file mode 100644
index 0000000..7087df4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/003-expected.txt
@@ -0,0 +1,210 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x311
+ RenderBlock {HTML} at (0,0) size 800x311
+ RenderBody {BODY} at (8,14) size 784x283
+ RenderBlock (floating) {DIV} at (0,0) size 470x328
+ RenderBlock {P} at (0,14) size 470x51
+ RenderText {TEXT} at (0,0) size 453x17
+ text run at (0,0) width 453: "This test case illustrates incorrect positioning of list items within a"
+ RenderInline {CODE} at (0,0) size 136x16
+ RenderText {TEXT} at (0,18) size 136x16
+ text run at (0,18) width 136: "text-align: right"
+ RenderText {TEXT} at (136,17) size 77x17
+ text run at (136,17) width 77: " div after a "
+ RenderInline {CODE} at (0,0) size 88x16
+ RenderText {TEXT} at (213,18) size 88x16
+ text run at (213,18) width 88: "float: left"
+ RenderText {TEXT} at (301,17) size 34x17
+ text run at (301,17) width 34: " div. "
+ RenderInline {A} at (0,0) size 428x34 [color=#0000EE]
+ RenderText {TEXT} at (335,17) size 428x34
+ text run at (335,17) width 93: "Screenshot of"
+ text run at (0,34) width 111: "correct behavior"
+ RenderText {TEXT} at (111,34) size 9x17
+ text run at (111,34) width 9: "; "
+ RenderInline {A} at (0,0) size 134x17 [color=#0000EE]
+ RenderText {TEXT} at (120,34) size 134x17
+ text run at (120,34) width 134: "screenshot of Safari"
+ RenderText {TEXT} at (254,34) size 5x17
+ text run at (254,34) width 5: "."
+ RenderBlock {P} at (0,79) size 470x34
+ RenderText {TEXT} at (0,0) size 401x34
+ text run at (0,0) width 401: "This bug only occurs on pages with a standards-compliant"
+ text run at (0,17) width 73: "DOCTYPE. "
+ RenderInline {A} at (0,0) size 262x17 [color=#0000EE]
+ RenderText {TEXT} at (73,17) size 262x17
+ text run at (73,17) width 262: "View this test case without a DOCTYPE"
+ RenderText {TEXT} at (335,17) size 5x17
+ text run at (335,17) width 5: "."
+ RenderBlock {OL} at (0,127) size 470x187
+ RenderListItem {LI} at (40,0) size 430x34
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 422x34
+ text run at (0,0) width 161: "New larger PowerBook. "
+ text run at (161,0) width 178: "Still 1 GHz, but with a 17-"
+ text run at (339,0) width 83: "inch screen."
+ text run at (0,17) width 50: "$3299."
+ RenderListItem {LI} at (40,34) size 430x17
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 379x17
+ text run at (0,0) width 242: "New smaller PowerBook, with a 12-"
+ text run at (242,0) width 87: "inch screen. "
+ text run at (329,0) width 50: "$1799."
+ RenderListItem {LI} at (40,51) size 430x51
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 97x17
+ text run at (0,0) width 97: "New browser: "
+ RenderInline {A} at (0,0) size 38x17 [color=#0000EE]
+ RenderText {TEXT} at (97,0) size 38x17
+ text run at (97,0) width 38: "Safari"
+ RenderText {TEXT} at (135,0) size 75x17
+ text run at (135,0) width 9: ". "
+ text run at (144,0) width 66: "Engine is "
+ RenderInline {A} at (0,0) size 84x17 [color=#0000EE]
+ RenderText {TEXT} at (210,0) size 84x17
+ text run at (210,0) width 84: "open source"
+ RenderText {TEXT} at (294,0) size 21x17
+ text run at (294,0) width 21: " (a "
+ RenderInline {A} at (0,0) size 115x17 [color=#0000EE]
+ RenderText {TEXT} at (315,0) size 115x17
+ text run at (315,0) width 115: "modified version"
+ RenderText {TEXT} at (0,17) size 18x17
+ text run at (0,17) width 18: "of "
+ RenderInline {A} at (0,0) size 48x17 [color=#0000EE]
+ RenderText {TEXT} at (18,17) size 48x17
+ text run at (18,17) width 48: "KHTML"
+ RenderText {TEXT} at (66,17) size 419x34
+ text run at (66,17) width 352: "), rest of the application is free but not open source"
+ text run at (0,34) width 121: "(just like the OS). "
+ text run at (121,34) width 133: "Only runs on 10.2. "
+ text run at (254,34) width 165: "Currently in public beta."
+ RenderListItem {LI} at (40,102) size 430x34
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 417x34
+ text run at (0,0) width 255: "New presentation software: Keynote. "
+ text run at (255,0) width 162: "The software Steve Jobs"
+ text run at (0,17) width 36: "uses."
+ RenderListItem {LI} at (40,136) size 430x34
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 112x17
+ text run at (0,0) width 112: "New versions of "
+ RenderInline {A} at (0,0) size 44x17 [color=#0000EE]
+ RenderText {TEXT} at (112,0) size 44x17
+ text run at (112,0) width 44: "iMovie"
+ RenderText {TEXT} at (156,0) size 9x17
+ text run at (156,0) width 9: ", "
+ RenderInline {A} at (0,0) size 43x17 [color=#0000EE]
+ RenderText {TEXT} at (165,0) size 43x17
+ text run at (165,0) width 43: "iPhoto"
+ RenderText {TEXT} at (208,0) size 9x17
+ text run at (208,0) width 9: ", "
+ RenderInline {A} at (0,0) size 46x17 [color=#0000EE]
+ RenderText {TEXT} at (217,0) size 46x17
+ text run at (217,0) width 46: "iTunes"
+ RenderText {TEXT} at (263,0) size 400x34
+ text run at (263,0) width 9: ". "
+ text run at (272,0) width 128: "Bundled into a box"
+ text run at (0,17) width 44: "called "
+ RenderInline {A} at (0,0) size 29x17 [color=#0000EE]
+ RenderText {TEXT} at (44,17) size 29x17
+ text run at (44,17) width 29: "iLife"
+ RenderText {TEXT} at (73,17) size 65x17
+ text run at (73,17) width 65: ", for $49."
+ RenderListItem {LI} at (40,170) size 430x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 118x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 118x17
+ text run at (0,0) width 118: "Final Cut Express"
+ RenderText {TEXT} at (118,0) size 176x17
+ text run at (118,0) width 135: " for creating DVDs. "
+ text run at (253,0) width 41: "$299."
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,0) size 784x283
+ RenderBlock {UL} at (0,0) size 784x136
+ RenderListItem {LI} at (40,0) size 744x17
+ RenderListMarker at (703,0) size 0x14
+ RenderInline {A} at (0,0) size 41x17 [color=#0000EE]
+ RenderText {TEXT} at (703,0) size 41x17
+ text run at (703,0) width 41: "About"
+ RenderListItem {LI} at (40,17) size 744x17
+ RenderListMarker at (685,0) size 0x14
+ RenderInline {A} at (0,0) size 59x17 [color=#0000EE]
+ RenderText {TEXT} at (685,0) size 59x17
+ text run at (685,0) width 59: "Site map"
+ RenderListItem {LI} at (40,34) size 744x17
+ RenderListMarker at (686,0) size 0x14
+ RenderInline {A} at (0,0) size 58x17 [color=#0000EE]
+ RenderText {TEXT} at (686,0) size 58x17
+ text run at (686,0) width 58: "Archives"
+ RenderListItem {LI} at (40,51) size 744x17
+ RenderListMarker at (690,0) size 0x14
+ RenderInline {A} at (0,0) size 54x17 [color=#0000EE]
+ RenderText {TEXT} at (690,0) size 54x17
+ text run at (690,0) width 54: "Projects"
+ RenderListItem {LI} at (40,68) size 744x17
+ RenderListMarker at (698,0) size 0x14
+ RenderInline {A} at (0,0) size 46x17 [color=#0000EE]
+ RenderText {TEXT} at (698,0) size 46x17
+ text run at (698,0) width 46: "Photos"
+ RenderListItem {LI} at (40,85) size 744x17
+ RenderListMarker at (683,0) size 0x14
+ RenderInline {A} at (0,0) size 61x17 [color=#0000EE]
+ RenderText {TEXT} at (683,0) size 61x17
+ text run at (683,0) width 61: "Statistics"
+ RenderListItem {LI} at (40,102) size 744x17
+ RenderListMarker at (588,0) size 0x14
+ RenderInline {A} at (0,0) size 156x17 [color=#0000EE]
+ RenderText {TEXT} at (588,0) size 156x17
+ text run at (588,0) width 156: "Accessibility statement"
+ RenderListItem {LI} at (40,119) size 744x17
+ RenderListMarker at (629,0) size 0x14
+ RenderInline {A} at (0,0) size 24x17 [color=#0000EE]
+ RenderText {TEXT} at (629,0) size 24x17
+ text run at (629,0) width 24: "RSS"
+ RenderText {TEXT} at (653,0) size 9x17
+ text run at (653,0) width 9: " ("
+ RenderInline {A} at (0,0) size 77x17 [color=#0000EE]
+ RenderText {TEXT} at (662,0) size 77x17
+ text run at (662,0) width 77: "more feeds"
+ RenderText {TEXT} at (739,0) size 5x17
+ text run at (739,0) width 5: ")"
+ RenderBlock {UL} at (0,150) size 784x17
+ RenderListItem {LI} at (40,0) size 744x17
+ RenderListMarker at (660,0) size 0x14
+ RenderInline {A} at (0,0) size 84x17 [color=#0000EE]
+ RenderText {TEXT} at (660,0) size 84x17
+ text run at (660,0) width 84: "What is RSS?"
+ RenderBlock {UL} at (0,181) size 784x102
+ RenderListItem {LI} at (40,0) size 744x17
+ RenderListMarker at (654,0) size 0x14
+ RenderInline {A} at (0,0) size 90x17 [color=#0000EE]
+ RenderText {TEXT} at (654,0) size 90x17
+ text run at (654,0) width 90: "RSS Validator"
+ RenderListItem {LI} at (40,17) size 744x17
+ RenderListMarker at (595,0) size 0x14
+ RenderInline {A} at (0,0) size 149x17 [color=#0000EE]
+ RenderText {TEXT} at (595,0) size 149x17
+ text run at (595,0) width 149: "Dive Into Accessibility"
+ RenderListItem {LI} at (40,34) size 744x17
+ RenderListMarker at (647,0) size 0x14
+ RenderInline {A} at (0,0) size 97x17 [color=#0000EE]
+ RenderText {TEXT} at (647,0) size 97x17
+ text run at (647,0) width 97: "Dive Into OS X"
+ RenderListItem {LI} at (40,51) size 744x17
+ RenderListMarker at (650,0) size 0x14
+ RenderInline {A} at (0,0) size 94x17 [color=#0000EE]
+ RenderText {TEXT} at (650,0) size 94x17
+ text run at (650,0) width 94: "Dive Into J2EE"
+ RenderListItem {LI} at (40,68) size 744x17
+ RenderListMarker at (632,0) size 0x14
+ RenderInline {A} at (0,0) size 112x17 [color=#0000EE]
+ RenderText {TEXT} at (632,0) size 112x17
+ text run at (632,0) width 112: "Dive Into Python"
+ RenderListItem {LI} at (40,85) size 744x17
+ RenderListMarker at (693,0) size 0x14
+ RenderInline {A} at (0,0) size 51x17 [color=#0000EE]
+ RenderText {TEXT} at (693,0) size 51x17
+ text run at (693,0) width 51: "r\x{E9}sum\x{E9}"
diff --git a/third_party/WebKit/LayoutTests/fast/lists/003.html b/third_party/WebKit/LayoutTests/fast/lists/003.html
new file mode 100644
index 0000000..2f1fb33
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/003.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+<title>Safari test case: list items within text-align: right div after float:left div</title>
+<style type="text/css">
+#main {
+ float: left;
+ width: 60%;
+}
+
+#menu {
+ text-align: right;
+}
+</style>
+</head>
+<body>
+<div id="main">
+<p>This test case illustrates incorrect positioning of list items within a <code>text-align: right</code> div after a <code>float: left</code> div. <a href="float-left-chimera.png">Screenshot of correct behavior</a>; <a href="float-left-safari.png">screenshot of Safari</a>.</p>
+
+<p>This bug only occurs on pages with a standards-compliant DOCTYPE. <a href="float-left-text-align-right-no-doctype.html">View this test case without a DOCTYPE</a>.</p>
+
+<ol>
+<li>New larger PowerBook. Still 1 GHz, but with a 17-inch screen. $3299.</li>
+<li>New smaller PowerBook, with a 12-inch screen. $1799.</li>
+<li>New browser: <a href="http://www.apple.com/safari/">Safari</a>. Engine is <a href="http://developer.apple.com/darwin/projects/webcore/">open source</a> (a <a href="http://lists.kde.org/?l=kfm-devel&amp;m=104196912316326&amp;w=2">modified version</a> of <a href="http://developer.kde.org/documentation/library/kdeqt/kde3arch/khtml/">KHTML</a>), rest of the application is free but not open source (just like the OS). Only runs on 10.2. Currently in public beta.</li>
+<li>New presentation software: Keynote. The software Steve Jobs uses.</li>
+<li>New versions of <a href="http://www.apple.com/imovie/">iMovie</a>, <a href="http://www.apple.com/iphoto/">iPhoto</a>, <a href="http://www.apple.com/itunes/">iTunes</a>. Bundled into a box called <a href="http://www.apple.com/ilife/">iLife</a>, for $49.</li>
+<li><a href="http://www.apple.com/finalcutexpress/">Final Cut Express</a> for creating DVDs. $299.</li>
+</ol>
+
+
+</div> <!--main-->
+
+<div id="menu">
+<ul>
+<li><a title="about this site" href="/about/" accesskey="9" rel="help">About</a></li>
+<li><a title="a little of everything" href="/sitemap.html">Site map</a></li>
+<li><a title="old posts" href="/archives/" rel="contents">Archives</a></li>
+<li><a title="small projects, scripts, fun stuff" href="/projects/">Projects</a></li>
+<li><a title="cat pictures and stuff" href="/pictures/">Photos</a></li>
+<li><a title="referrers and other visitor statistics" href="/stats/">Statistics</a></li>
+<li><a title="accessibility features of this site" href="/accessibility_statement.html" accesskey="0">Accessibility statement</a></li>
+<li><a title="syndicated version of &quot;dive into mark&quot; in RSS format" href="/xml/rss.xml">RSS</a> (<a title="other syndicated feeds" href="/xml/">more feeds</a>)</li>
+</ul>
+<ul>
+<li><a title="Mark Pilgrim's new column, Dive Into XML, explores the RSS menagerie" href="http://www.xml.com/pub/a/2002/12/18/dive-into-xml.html">What is RSS?</a></li>
+</ul>
+<ul>
+<li><a title="Free validator for syndicated content producers" href="http://feeds.archive.org/validator/">RSS Validator</a></li>
+<li><a title="Free book for web designers" href="http://diveintoaccessibility.org/">Dive Into Accessibility</a></li>
+<li><a title="Free repository for Mac OS X system administrators" href="http://diveintoosx.org/">Dive Into OS X</a></li>
+<li><a title="Free J2EE training material" href="http://j2ee.masslight.com/">Dive Into J2EE</a></li>
+<li><a title="Free Python book for experienced programmers" href="http://diveintopython.org/">Dive Into Python</a></li>
+<li><a title="web design, J2EE, Mac OS X, Python expertise -- available for contract work and training" href="/resume/">r&eacute;sum&eacute;</a></li>
+</ul>
+</div> <!--menu-->
+
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/lists/004-expected.txt b/third_party/WebKit/LayoutTests/fast/lists/004-expected.txt
new file mode 100644
index 0000000..0b73362
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/004-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x39
+ RenderBlock {HTML} at (0,0) size 800x39
+ RenderBody {BODY} at (8,8) size 784x23
+ RenderTable {TABLE} at (0,0) size 56x23
+ RenderTableSection {TBODY} at (2,2) size 0x19
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,1) size 16x16 [r=0 c=0 rs=1 cs=1]
+ RenderListItem {LI} at (1,1) size 14x14
+ RenderListMarker at (0,0) size 14x14
+ RenderImage {IMG} at (14,14) size 0x0
+ RenderTableCell {TD} at (16,0) size 36x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 34x17
+ text run at (1,1) width 34: "hello"
diff --git a/third_party/WebKit/LayoutTests/fast/lists/004.html b/third_party/WebKit/LayoutTests/fast/lists/004.html
new file mode 100644
index 0000000..6d6c51e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/004.html
@@ -0,0 +1,5 @@
+<html>
+<table border=2 cellspacing=0 cellpadding=0>
+<tr><td><li><img width=0 height=0></td><td>hello</tr>
+</table>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/lists/005-expected.txt b/third_party/WebKit/LayoutTests/fast/lists/005-expected.txt
new file mode 100644
index 0000000..23eae93
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/005-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x67
+ RenderBlock {HTML} at (0,0) size 800x67
+ RenderBody {BODY} at (8,8) size 784x45
+ RenderBlock {UL} at (0,0) size 784x45
+ RenderListItem {LI} at (40,0) size 744x14
+ RenderListMarker at (0,0) size 0x14
+ RenderListItem {LI} at (40,14) size 744x14
+ RenderListMarker at (0,0) size 0x14
+ RenderListItem {LI} at (40,28) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 350x17
+ text run at (0,0) width 350: "There should be two bullets with no text above me."
diff --git a/third_party/WebKit/LayoutTests/fast/lists/005.html b/third_party/WebKit/LayoutTests/fast/lists/005.html
new file mode 100644
index 0000000..af0ed3e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/005.html
@@ -0,0 +1,10 @@
+<html>
+<body>
+<ul>
+<li></li>
+<li></li>
+<li>There should be two bullets with no text above me.
+</ul>
+</body>
+</html>
+
diff --git a/third_party/WebKit/LayoutTests/fast/lists/006-expected.txt b/third_party/WebKit/LayoutTests/fast/lists/006-expected.txt
new file mode 100644
index 0000000..5c42afe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/006-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x56
+ RenderBlock {HTML} at (0,0) size 800x56
+ RenderBody {BODY} at (8,8) size 784x34
+ RenderBlock {OL} at (0,0) size 784x34
+ RenderListItem {LI} at (40,0) size 744x34
+ RenderBlock (anonymous) at (0,0) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {I} at (0,0) size 70x16
+ RenderInline {U} at (0,0) size 70x16
+ RenderText {TEXT} at (0,1) size 70x16
+ text run at (0,1) width 70: "Hello world"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {OL} at (0,17) size 744x17
+ RenderListItem {LI} at (40,0) size 704x17
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 61x17
+ text run at (0,0) width 61: "Goodbye"
diff --git a/third_party/WebKit/LayoutTests/fast/lists/006.html b/third_party/WebKit/LayoutTests/fast/lists/006.html
new file mode 100644
index 0000000..29e6dec
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/006.html
@@ -0,0 +1,6 @@
+<html>
+<body>
+<ol>
+<li> <i><u>Hello world</u></i> <ol><li>Goodbye</li></ol>
+</li>
+</ol>
diff --git a/third_party/WebKit/LayoutTests/fast/lists/007-expected.txt b/third_party/WebKit/LayoutTests/fast/lists/007-expected.txt
new file mode 100644
index 0000000..094cd12
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/007-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x107
+ RenderBlock {HTML} at (0,0) size 800x107
+ RenderBody {BODY} at (8,8) size 784x85
+ RenderBlock {UL} at (0,0) size 784x85 [bgcolor=#808080]
+ RenderListItem {LI} at (50,0) size 734x34 [bgcolor=#000000]
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 698x34
+ text run at (0,0) width 698: "The left padding on this unordered list has been set to 25 pixels, which will require some extra test in"
+ text run at (0,17) width 90: "order to test."
+ RenderListItem {LI} at (50,34) size 734x51 [bgcolor=#FFFFFF]
+ RenderListMarker at (50,0) size 0x14 [bgcolor=#000000]
+ RenderText {TEXT} at (50,0) size 682x51
+ text run at (50,0) width 669: "Another list item might not be such a bad idea, either, considering that such things do need to be"
+ text run at (50,17) width 120: "double-checked. "
+ text run at (170,17) width 562: "This list item has its left padding also set to 25 pixels, which should combine with"
+ text run at (50,34) width 318: "the list's padding to make 50 pixels of margin."
diff --git a/third_party/WebKit/LayoutTests/fast/lists/007.html b/third_party/WebKit/LayoutTests/fast/lists/007.html
new file mode 100644
index 0000000..9d2302d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/lists/007.html
@@ -0,0 +1,13 @@
+<html>
+<head>
+<style type="text/css">
+.two {padding-left: 25px; border-left: 25px solid green; background-color: aqua;}
+</style>
+</head>
+<body>
+<UL class="two" style="background-color: gray;">
+<LI>The left padding on this unordered list has been set to 25 pixels, which will require some extra test in order to test.</LI>
+<LI class="two" style="background-color: white;">Another list item might not be such a bad idea, either, considering that such things do need to be double-checked. This list item has its left padding also set to 25 pixels, which should combine with the list's padding to make 50 pixels of margin.
+</UL>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/overflow/001-expected.txt b/third_party/WebKit/LayoutTests/fast/overflow/001-expected.txt
new file mode 100644
index 0000000..1bb5a1a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/overflow/001-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x254
+ RenderBlock {HTML} at (0,0) size 800x254
+ RenderBody {BODY} at (8,8) size 784x238
+ RenderBlock {DIV} at (0,0) size 784x100 [bgcolor=#FFFF00]
+ RenderBlock (floating) {DIV} at (0,0) size 77x500 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 77x17
+ text run at (0,0) width 77: "Hello world"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,204) size 784x34
+ RenderText {TEXT} at (77,0) size 667x34
+ text run at (77,0) width 310: "This text should not overlap the purple float? "
+ text run at (387,0) width 357: "Will this happen? I'm really not sure. This is a test of"
+ text run at (77,17) width 561: "some of the strange behavior you will find when using overflow auto or scroll, etc."
+layer at (85,108) size 707x104 clip at (87,110) size 703x100
+ RenderBlock {DIV} at (77,100) size 707x104
+ RenderText {TEXT} at (2,2) size 155x17
+ text run at (2,2) width 155: "Does the float intrude?"
+ RenderBlock (floating) {SPAN} at (605,2) size 100x400 [bgcolor=#800080]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/overflow/001.html b/third_party/WebKit/LayoutTests/fast/overflow/001.html
new file mode 100644
index 0000000..e1c4b79
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/overflow/001.html
@@ -0,0 +1,11 @@
+<html>
+<body>
+<div style="height:100px;background-color:yellow">
+<div style="float:left;height:500px;background-color:green">Hello world</div>
+</div>
+<div style="overflow:hidden; height:100px; border:2px solid black">Does the float intrude?
+<span style="float:right;width:100px;background-color:purple;height:400px"></span>
+</div>
+<div>This text should not overlap the purple float? Will this happen? I'm really not sure.
+This is a test of some of the strange behavior you will find when using overflow auto or scroll, etc.
+</div>
diff --git a/third_party/WebKit/LayoutTests/fast/overflow/002-expected.txt b/third_party/WebKit/LayoutTests/fast/overflow/002-expected.txt
new file mode 100644
index 0000000..28b1d2f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/overflow/002-expected.txt
@@ -0,0 +1,81 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x328
+ RenderBlock {HTML} at (0,0) size 800x328
+ RenderBody {BODY} at (8,8) size 784x312
+ RenderTable {TABLE} at (0,0) size 212x312
+ RenderTableSection {TBODY} at (2,2) size 0x308
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 204x304 [r=0 c=0 rs=1 cs=1]
+layer at (14,14) size 200x300 clip at (14,14) size 185x300
+ RenderBlock {DIV} at (2,2) size 200x300
+ RenderText {TEXT} at (0,0) size 145x17
+ text run at (0,0) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,17) size 145x17
+ text run at (0,17) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,34) size 145x17
+ text run at (0,34) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,51) size 145x17
+ text run at (0,51) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,68) size 145x17
+ text run at (0,68) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,85) size 145x17
+ text run at (0,85) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,102) size 145x17
+ text run at (0,102) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,119) size 145x17
+ text run at (0,119) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,136) size 145x17
+ text run at (0,136) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,153) size 145x17
+ text run at (0,153) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,170) size 145x17
+ text run at (0,170) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,187) size 145x17
+ text run at (0,187) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,204) size 145x17
+ text run at (0,204) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,221) size 145x17
+ text run at (0,221) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,238) size 145x17
+ text run at (0,238) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,255) size 145x17
+ text run at (0,255) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,272) size 145x17
+ text run at (0,272) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,289) size 145x17
+ text run at (0,289) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,306) size 145x17
+ text run at (0,306) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,323) size 145x17
+ text run at (0,323) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,340) size 145x17
+ text run at (0,340) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,357) size 145x17
+ text run at (0,357) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,374) size 145x17
+ text run at (0,374) width 145: "Lots of overflow text."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/overflow/002.html b/third_party/WebKit/LayoutTests/fast/overflow/002.html
new file mode 100644
index 0000000..98bc04a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/overflow/002.html
@@ -0,0 +1,34 @@
+<html>
+<body>
+<table border=2>
+<tr><td>
+<div style="overflow:auto; width:200px;height:300px">
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+Lots of overflow text.<br>
+</div>
+</td>
+</tr>
+</table>
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/overflow/003-expected.txt b/third_party/WebKit/LayoutTests/fast/overflow/003-expected.txt
new file mode 100644
index 0000000..26594b0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/overflow/003-expected.txt
@@ -0,0 +1,4 @@
+layer at (0,0) size 0x0
+ RenderCanvas at (0,0) size 0x0
+layer at (0,-500000) size 0x0 backgroundClip at (0,0) size 0x-500000 clip at (0,0) size 0x0
+ RenderBlock {COMMENT} at (0,-500000) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/overflow/003.xml b/third_party/WebKit/LayoutTests/fast/overflow/003.xml
new file mode 100644
index 0000000..452cb11
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/overflow/003.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="resources/rss.css" type="text/css"?>
+<rss version="0.91" xmlns:xhtml="http://www.w3.org/1999/xhtml">
+ <channel>
+ <title>scottandrew.com</title>
+ <link>http://www.scottandrew.com</link>
+ <description>DHTML, DOM and JavaScript News</description>
+ <language>en-us</language>
+
+ <item>
+ <title>DHTML Animation Array Generator</title>
+ <description>Robert points us to the first third-party tool for the DomAPI: The Animation Array Generator, a visual tool for creating...</description>
+ <link>http://www.scottandrew.com/weblog/2002_06</link>
+ </item>
+
+ <item>
+ <title>DOM and Extended Entries</title>
+ <description>Aarondot: A Better Way To Display Extended Entries. Very cool, and uses the DOM and JavaScript to reveal the extended...</description>
+ <link>http://www.scottandrew.com/weblog/2002_06</link>
+ </item>
+
+ <item>
+ <title>cellspacing and the DOM</title>
+ <description>By the way, if you're using the DOM to generate TABLE elements, you have to use setAttribute() to set the...</description>
+ <link>http://www.scottandrew.com/weblog/2002_05</link>
+ </item>
+
+ <item>
+ <title>contenteditable for Mozilla</title>
+ <description>The folks art Q42, creator of Quek (cute little avatar/chat) and Xopus (browser-based WYSIWYG XML-editor) have released code that simulates...</description>
+ <link>http://www.scottandrew.com/weblog/2002_05</link>
+ </item>
+
+ <item>
+ <title>DHTML Timeline/Keyframe Animation</title>
+ <description>Tim Morgan is working on a Flash-like timeline/keyframe extension for his DHTML toolset....</description>
+ <link>http://www.scottandrew.com/weblog/2002_05</link>
+ </item>
+
+ <item>
+ <title>DynAPI 2.9 and Mozilla compatibility ports</title>
+ <description>DynAPI 2.9 is the latest release of the popular cross-browser DHTML library, and is available at Dan Steinman's original site....</description>
+ <link>http://www.scottandrew.com/weblog/2002_05</link>
+ </item>
+
+ <item>
+ <title>!lineDraw bookmarklet</title>
+ <description>Milov's !lineDraw bookmarklet is in fact the Coolest Bookmarklet Ever....</description>
+ <link>http://www.scottandrew.com/weblog/2002_05</link>
+ </item>
+
+ <item>
+ <title>Mozilla, DHTML and DOM links</title>
+ <description>Why Mozilla Rules (Link via Dean) Steve Champeon: Why DHTML Will Win. Glish finds a not-quite-DOM-compliant replacement for innerHTML. It...</description>
+ <link>http://www.scottandrew.com/weblog/2002_05</link>
+ </item>
+
+ <item>
+ <title>Mozilla 1.0 RC2</title>
+ <description>I'm late for this train: Mozilla 1.0 Release Candidate 2 is now available....</description>
+ <link>http://www.scottandrew.com/weblog/2002_05</link>
+ </item>
+
+ <item>
+ <title>javascript: is deprecated. Don't use it.</title>
+ <description>Repeat after me: javascript: is deprecated. Don't use it. javascript: is deprecated. Don't use it. javascript: is deprecated. Don't use...</description>
+ <link>http://www.scottandrew.com/weblog/2002_05</link>
+ </item>
+
+ <item>
+ <title>Conditional Script Loading</title>
+ <description>Webreference: DOM-Based Conditional Script Loading in JavaScript...</description>
+ <link>http://www.scottandrew.com/weblog/2002_04</link>
+ </item>
+
+ <item>
+ <title>Stories and Tools</title>
+ <description>Anil Dash talks about Stories and Tools, drawing comparisons between the Web as a text medium and the Web as...</description>
+ <link>http://www.scottandrew.com/weblog/2002_04</link>
+ </item>
+
+ <item>
+ <title>Whole Lotto Gecko Links</title>
+ <description>AOL Gecko Browser Detection Tips Establishing Dreamweaver compatibility with Netscape 6 Stylesheets and MIME Types in Gecko...</description>
+ <link>http://www.scottandrew.com/weblog/2002_04</link>
+ </item>
+ <xhtml:script src="rss.js" type="text/javascript"/>
+ </channel>
+</rss>
diff --git a/third_party/WebKit/LayoutTests/fast/overflow/resources/rss.css b/third_party/WebKit/LayoutTests/fast/overflow/resources/rss.css
new file mode 100644
index 0000000..7408e7e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/overflow/resources/rss.css
@@ -0,0 +1,56 @@
+rss
+{
+ display:inline;
+ margin:10px;
+ background-color: yellow;
+}
+
+channel
+{
+ display:block;
+ height:300px;
+ width:280px;
+ border:1px solid #000;
+ overflow:auto;
+ background-color:#eee;
+ font: 12px verdana;
+}
+
+item
+{
+ display: block;
+ padding:10px;
+ margin-bottom:10px;
+ border-top:1px solid #ccc;
+ border-bottom:1px solid #ccc;
+ background-color:#fff;
+}
+item>title
+{
+ font-weight:bold;
+}
+
+channel>title, channel>description
+{
+ display: block;
+ margin-left:10px;
+ margin-top:10px;
+ background-color:#eee;
+ font-weight:bold;
+}
+
+channel>title
+{
+ font-size:16px;
+}
+
+channel>description
+{
+ font-size:10px;
+ margin-bottom:10px;
+}
+
+item>link, channel>link, channel>language
+{
+ display: none;
+} \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/parser/document-write-option-expected.txt b/third_party/WebKit/LayoutTests/fast/parser/document-write-option-expected.txt
new file mode 100644
index 0000000..99c969c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/parser/document-write-option-expected.txt
@@ -0,0 +1,6 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x38
+ RenderBlock {HTML} at (0,0) size 800x38
+ RenderBody {BODY} at (8,8) size 784x22
+ RenderSelect {SELECT} at (2,2) size 36x18
diff --git a/third_party/WebKit/LayoutTests/fast/parser/document-write-option.html b/third_party/WebKit/LayoutTests/fast/parser/document-write-option.html
new file mode 100644
index 0000000..85e15b8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/parser/document-write-option.html
@@ -0,0 +1,5 @@
+<select>
+ <script>
+ document.write('<option>This is a very long string so it makes the select bigger.');
+ </script>
+</select>
diff --git a/third_party/WebKit/LayoutTests/fast/parser/head-comment-expected.txt b/third_party/WebKit/LayoutTests/fast/parser/head-comment-expected.txt
new file mode 100644
index 0000000..8635667
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/parser/head-comment-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x70
+ RenderBlock {HTML} at (0,0) size 800x70
+ RenderBody {BODY} at (8,8) size 784x48
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 202x17
+ text run at (0,0) width 202: "This is a UTF-8 quote mark: \x{2019}"
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 679x17
+ text run at (0,0) width 679: "If it shows up as garbage, that means Safari got confused by comments within the <head> section."
diff --git a/third_party/WebKit/LayoutTests/fast/parser/head-comment.html b/third_party/WebKit/LayoutTests/fast/parser/head-comment.html
new file mode 100644
index 0000000..a3fd5f7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/parser/head-comment.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<!-- this is not a <body> tag -->
+<meta http-equiv=Content-Type content="text/html; charset=utf-8">
+<head>
+<body>
+<p>This is a UTF-8 quote mark: ’</p>
+<p>If it shows up as garbage, that means Safari got confused by comments within the &lt;head> section.</p>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/parser/tabs-in-scripts-expected.txt b/third_party/WebKit/LayoutTests/fast/parser/tabs-in-scripts-expected.txt
new file mode 100644
index 0000000..dfae554
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/parser/tabs-in-scripts-expected.txt
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "1"
diff --git a/third_party/WebKit/LayoutTests/fast/parser/tabs-in-scripts.html b/third_party/WebKit/LayoutTests/fast/parser/tabs-in-scripts.html
new file mode 100644
index 0000000..54d4a2b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/parser/tabs-in-scripts.html
@@ -0,0 +1,3 @@
+<script>
+document.write("x y".indexOf("\t"));
+</script>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/001-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/001-expected.txt
new file mode 100644
index 0000000..84cc8a2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/001-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x159
+ RenderBlock {HTML} at (0,0) size 800x159
+ RenderBody {BODY} at (8,14) size 784x131
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,31) size 784x100 [bgcolor=#FF0000]
+ RenderBlock {P} at (0,0) size 784x100 [bgcolor=#000000]
+ RenderImage {IMG} at (0,0) size 784x100
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/001.html b/third_party/WebKit/LayoutTests/fast/replaced/001.html
new file mode 100644
index 0000000..f946f76
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/001.html
@@ -0,0 +1,16 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Replaced inline elements with % widths</title>
+ <style type="text/css">
+ div { width: 600px: height: 100px; background: red; }
+ img { width: 100%; height: 100px; vertical-align: bottom; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div>
+ <p><img src="/resources/images/sample" alt="Image support required for this test"></p>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/002-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/002-expected.txt
new file mode 100644
index 0000000..cd1790e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/002-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x253
+ RenderBlock {HTML} at (0,0) size 800x253
+ RenderBody {BODY} at (8,14) size 784x231
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,31) size 600x200 [bgcolor=#FF0000]
+ RenderBlock {P} at (0,0) size 600x100 [bgcolor=#008000]
+ RenderImage {IMG} at (0,0) size 24x24 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,24) size 600x100 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/002.html b/third_party/WebKit/LayoutTests/fast/replaced/002.html
new file mode 100644
index 0000000..87fa1d8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/002.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Replaced inline elements wrapping around floats (% widths)</title>
+ <style type="text/css">
+ div { width: 600px; height: 200px; background: red; }
+ div p { height: 100px; background: green; }
+ img { vertical-align: bottom; }
+ img.float { float: left; }
+ img.flow { width: 100%; height: 100px; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div>
+ <p>
+ <img src="/resources/images/sample" alt="" class="float">
+ <img src="/resources/images/sample" alt="Image support required for this test" class="flow">
+ </p>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/003-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/003-expected.txt
new file mode 100644
index 0000000..cd1790e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/003-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x253
+ RenderBlock {HTML} at (0,0) size 800x253
+ RenderBody {BODY} at (8,14) size 784x231
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "There should be no red below."
+ RenderBlock {DIV} at (0,31) size 600x200 [bgcolor=#FF0000]
+ RenderBlock {P} at (0,0) size 600x100 [bgcolor=#008000]
+ RenderImage {IMG} at (0,0) size 24x24 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (0,24) size 600x100 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/003.html b/third_party/WebKit/LayoutTests/fast/replaced/003.html
new file mode 100644
index 0000000..2e716d8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/003.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Replaced inline elements wrapping around floats (pixel widths)</title>
+ <style type="text/css">
+ div { width: 600px; height: 200px; background: red; }
+ div p { height: 100px; background: green; }
+ img { vertical-align: bottom; }
+ img.float { float: left; }
+ img.flow { width: 600px; height: 100px; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below.</p>
+ <div>
+ <p>
+ <img src="/resources/images/sample" alt="" class="float">
+ <img src="/resources/images/sample" alt="Image support required for this test" class="flow">
+ </p>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/004-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/004-expected.txt
new file mode 100644
index 0000000..0038d542a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/004-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x290
+ RenderBlock {HTML} at (0,0) size 800x290
+ RenderBody {BODY} at (8,14) size 784x262
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 775x34
+ text run at (0,0) width 422: "There should be no red below, just two 300\x{D7}100 pixel green "
+ text run at (422,0) width 314: "rectangles of different shades, seperated by 1"
+ text run at (736,0) width 39: "em of"
+ text run at (0,17) width 53: "margin."
+ RenderBlock {DIV} at (0,48) size 300x100 [bgcolor=#FF0000]
+ RenderBlock {P} at (0,0) size 600x100 [bgcolor=#000000]
+ RenderImage {IMG} at (0,0) size 300x100
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (8,176) size 600x100
+ RenderBlock (relative positioned) {DIV} at (0,162) size 300x100
+ RenderBlock {P} at (0,0) size 600x100
+ RenderImage {IMG} at (0,0) size 300x100
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 300x100 backgroundClip at (8,176) size 300x100
+ RenderBlock (positioned) {SPAN} at (0,0) size 300x100 [bgcolor=#008000]
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/004.html b/third_party/WebKit/LayoutTests/fast/replaced/004.html
new file mode 100644
index 0000000..adc68a3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/004.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Replaced inline elements with % widths</title>
+ <style type="text/css">
+ div.a { width: 300px; height: 100px; background: red; }
+ div.a p { width: 200%; }
+ div.a img { width: 50%; height: 100px; vertical-align: bottom; }
+ div.b { width: 300px; position: relative; }
+ div.b p { width: 200%; }
+ div.b img { width: 50%; height: 100px; vertical-align: bottom; }
+ div.b span { position: absolute; top: 0; left: 0; background: green; width: 300px; height: 100px; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below, just two 300&times;100 pixel green
+ rectangles of different shades, seperated by 1em of margin.</p>
+ <div class="a">
+ <p>
+ <img src="/resources/images/1x1-green" alt="Image support required for this test">
+ </p>
+ </div>
+ <div class="b">
+ <p>
+ <img src="/resources/images/1x1-red" alt="Image support required for this test">
+ <span></span>
+ </p>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/005-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/005-expected.txt
new file mode 100644
index 0000000..4ac78a9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/005-expected.txt
@@ -0,0 +1,41 @@
+layer at (0,0) size 800x670
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x670
+ RenderBlock {HTML} at (0,0) size 800x670
+ RenderBody {BODY} at (8,8) size 784x648
+ RenderTable {TABLE} at (0,0) size 784x212
+ RenderTableSection {TBODY} at (2,2) size 0x208
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 202x208 [r=0 c=0 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 100x100 [bgcolor=#008000]
+ RenderImage {IMG} at (101,1) size 100x100 [bgcolor=#008000]
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (1,104) size 100x100 [bgcolor=#008000]
+ RenderImage {IMG} at (101,104) size 100x100 [bgcolor=#008000]
+ RenderTableCell {TD} at (202,94) size 578x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 25x17
+ text run at (1,1) width 25: "Foo"
+ RenderTable {TABLE} at (0,212) size 784x212
+ RenderTableSection {TBODY} at (2,2) size 0x208
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 202x208 [r=0 c=0 rs=1 cs=1]
+ RenderInline {SPAN} at (0,0) size 200x17
+ RenderImage {IMG} at (1,1) size 100x100 [bgcolor=#008000]
+ RenderImage {IMG} at (101,1) size 100x100 [bgcolor=#008000]
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (1,104) size 100x100 [bgcolor=#008000]
+ RenderImage {IMG} at (101,104) size 100x100 [bgcolor=#008000]
+ RenderTableCell {TD} at (202,94) size 578x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 25x17
+ text run at (1,1) width 25: "Foo"
+ RenderBlock {P} at (0,438) size 784x210
+ RenderImage {IMG} at (2,2) size 100x100 [bgcolor=#008000]
+ RenderImage {IMG} at (102,2) size 100x100 [bgcolor=#008000]
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {A} at (0,0) size 100x17 [color=#0000EE]
+ RenderImage {IMG} at (2,105) size 100x100 [bgcolor=#008000]
+ RenderImage {IMG} at (102,105) size 100x100 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/005.html b/third_party/WebKit/LayoutTests/fast/replaced/005.html
new file mode 100644
index 0000000..3af7a7c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/005.html
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<table width=100% cellpadding=0 cellspacing=0 border=2>
+<tr><td nowrap><img style="width:100px;height:100px;background-color:green"><img style="width:100px;height:100px;background-color:green"><br>
+<img style="width:100px;height:100px;background-color:green"><img style="width:100px;height:100px;background-color:green"></td>
+<td width=100%">Foo</td>
+</tr>
+</table>
+
+<table width=100% cellpadding=0 cellspacing=0 border=2>
+<tr><td><span style="white-space:pre"><img style="width:100px;height:100px;background-color:green"><img style="width:100px;height:100px;background-color:green"></span><br>
+<img style="width:100px;height:100px;background-color:green"><img style="width:100px;height:100px;background-color:green"></td>
+<td width=100%">Foo</td>
+</tr>
+</table>
+<p style="border:2px solid blue"><img style="width:100px;height:100px;background-color:green"><img style="width:100px;height:100px;background-color:green"><br>
+<a href="foo.html"><img style="width:100px;height:100px;background-color:green"></a><img style="width:100px;height:100px;background-color:green">
+</p> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/006-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/006-expected.txt
new file mode 100644
index 0000000..a1d66fc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/006-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderBlock (floating) {DIV} at (0,0) size 221x107
+ RenderInline {SPAN} at (0,0) size 217x17
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderImage {IMG} at (2,2) size 100x100 [bgcolor=#008000]
+ RenderText {TEXT} at (102,88) size 117x17
+ text run at (102,88) width 117: "This is some text"
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/006.html b/third_party/WebKit/LayoutTests/fast/replaced/006.html
new file mode 100644
index 0000000..a277d1a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/006.html
@@ -0,0 +1,2 @@
+<div style="float:left; border:2px solid blue"><span style="white-space:nowrap">
+<img style="width:100px;height:100px;background-color:green">This is some text</span></div>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/007-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/007-expected.txt
new file mode 100644
index 0000000..adbbd1f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/007-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x322
+ RenderBlock {HTML} at (0,0) size 800x322
+ RenderBody {BODY} at (8,8) size 784x306
+ RenderBlock {DIV} at (0,0) size 784x306
+ RenderText {TEXT} at (155,136) size 173x17
+ text run at (155,136) width 173: "This should be centered. "
+ RenderPartObject {IFRAME} at (328,0) size 300x150
+ layer at (0,0) size 8x8
+ RenderCanvas at (0,0) size 0x0
+ layer at (0,0) size 8x8
+ RenderBlock {HTML} at (0,0) size 0x8
+ RenderBody {BODY} at (8,8) size 0x0 [bgcolor=#FF0000]
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (155,289) size 173x17
+ text run at (155,289) width 173: "This should be centered. "
+ RenderPartObject {OBJECT} at (328,153) size 300x150
+ layer at (0,0) size 8x8
+ RenderCanvas at (0,0) size 0x0
+ layer at (0,0) size 8x8
+ RenderBlock {HTML} at (0,0) size 0x8
+ RenderBody {BODY} at (8,8) size 0x0 [bgcolor=#FF0000]
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/007.html b/third_party/WebKit/LayoutTests/fast/replaced/007.html
new file mode 100644
index 0000000..08985cc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/007.html
@@ -0,0 +1,6 @@
+<html>
+<div style="text-align:center">
+This should be centered. <iframe width=300 height=150 src="resources/007-sub.html"></iframe><br>
+This should be centered. <object width=300 height=150 type="text/html" data="resources/007-sub.html"></object><br>
+</div>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/008-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/008-expected.txt
new file mode 100644
index 0000000..a7ca43b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/008-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderBlock (floating) {DIV} at (0,0) size 20x20
+ RenderImage {IMG} at (2,2) size 16x16
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/008.html b/third_party/WebKit/LayoutTests/fast/replaced/008.html
new file mode 100644
index 0000000..2dd78e3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/008.html
@@ -0,0 +1,2 @@
+<div style="border:2px solid red; float:left; vertical-align:top"><img width="16" height="16" border="0" style="vertical-align:middle"></div>
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/image-onload-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/image-onload-expected.txt
new file mode 100644
index 0000000..3c69e2b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/image-onload-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x181
+ RenderBlock {HTML} at (0,0) size 800x181
+ RenderBody {BODY} at (8,8) size 784x159
+ RenderBlock (anonymous) at (0,0) size 784x128
+ RenderImage {IMG} at (0,0) size 128x128
+ RenderBlock {P} at (0,142) size 784x17
+ RenderText {TEXT} at (0,0) size 70x17
+ text run at (0,0) width 70: "not empty"
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/image-onload.html b/third_party/WebKit/LayoutTests/fast/replaced/image-onload.html
new file mode 100644
index 0000000..71e64f2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/image-onload.html
@@ -0,0 +1 @@
+<img src="resources/compass.jpg" onload="document.getElementById('emptyParagraph').appendChild(document.createTextNode('not empty'))"><p id="emptyParagraph"></p>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/image-sizing-expected.txt b/third_party/WebKit/LayoutTests/fast/replaced/image-sizing-expected.txt
new file mode 100644
index 0000000..e590a226
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/image-sizing-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x288
+ RenderBlock {HTML} at (0,0) size 800x288
+ RenderBody {BODY} at (8,14) size 784x260
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 433x17
+ text run at (0,0) width 433: "These images should all look the same, square not rectangular."
+ RenderBlock {P} at (0,31) size 784x67
+ RenderImage {IMG} at (0,0) size 64x64
+ RenderBlock {P} at (0,112) size 784x67
+ RenderImage {IMG} at (0,0) size 64x64
+ RenderBlock {P} at (0,193) size 784x67
+ RenderImage {IMG} at (0,0) size 64x64
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/image-sizing.html b/third_party/WebKit/LayoutTests/fast/replaced/image-sizing.html
new file mode 100644
index 0000000..3614e33
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/image-sizing.html
@@ -0,0 +1,12 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html lang="en">
+ <head>
+ <title>Image sizing</title>
+ </head>
+ <body>
+ <p>These images should all look the same, square not rectangular.</p>
+ <p><img src="resources/compass.jpg" width="64" height="64" alt="compass"></p>
+ <p><img src="resources/compass.jpg" width="64" alt="compass"></p>
+ <p><img src="resources/compass.jpg" height="64" alt="compass"></p>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/resources/007-sub.html b/third_party/WebKit/LayoutTests/fast/replaced/resources/007-sub.html
new file mode 100644
index 0000000..8363bab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/resources/007-sub.html
@@ -0,0 +1,4 @@
+<html>
+<body style="background-color:red">
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/replaced/resources/compass.jpg b/third_party/WebKit/LayoutTests/fast/replaced/resources/compass.jpg
new file mode 100644
index 0000000..671f7b1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/replaced/resources/compass.jpg
Binary files differ
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/001-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/001-expected.txt
new file mode 100644
index 0000000..95f68ea
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/001-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x93
+ RenderBlock {HTML} at (0,0) size 800x93
+ RenderBody {BODY} at (8,14) size 784x65
+ RenderBlock {UL} at (0,0) size 784x34
+ RenderListItem {LI} at (40,0) size 744x17 [bgcolor=#00FF00]
+ RenderListMarker at (0,0) size 0x14 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 334x17
+ text run at (0,0) width 334: "The background of this list item should be green"
+ RenderListItem {LI} at (40,17) size 744x17 [bgcolor=#00FF00]
+ RenderListMarker at (0,0) size 0x14 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 419x17
+ text run at (0,0) width 419: "The background of this second list item should be also green"
+ RenderBlock {P} at (0,48) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 353x17
+ text run at (0,0) width 353: "The background of this paragraph should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/001.html b/third_party/WebKit/LayoutTests/fast/selectors/001.html
new file mode 100644
index 0000000..8aea55f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/001.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Groups of selectors</title>
+ <style type="text/css">li,p { background-color : lime }</style>
+ <link rel="next" href="css3-modsel-2.html" title="Type element selectors">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<ul>
+ <li>The background of this list item should be green</li>
+ <li>The background of this second list item should be also green</li>
+</ul>
+<p>The background of this paragraph should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/002-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/002-expected.txt
new file mode 100644
index 0000000..864bb51
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/002-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x32
+ RenderBlock {HTML} at (0,0) size 800x32
+ RenderBody {BODY} at (8,8) size 784x16
+ RenderBlock {ADDRESS} at (0,0) size 784x16 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 354x16
+ text run at (0,0) width 354: "This address element should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/002.html b/third_party/WebKit/LayoutTests/fast/selectors/002.html
new file mode 100644
index 0000000..ef58902
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/002.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Type element selectors</title>
+ <style type="text/css">address { background-color: lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="next" href="css3-modsel-4.html" title="Omitted universal selector">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<address>This address element should have a green background.</address>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/003-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/003-expected.txt
new file mode 100644
index 0000000..938a61c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/003-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 330x17
+ text run at (0,0) width 330: "This paragraph should have a green background"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/003.html b/third_party/WebKit/LayoutTests/fast/selectors/003.html
new file mode 100644
index 0000000..4e110af
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/003.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Omitted universal selector</title>
+ <style type="text/css">#foo { background-color : lime }
+p { background-color : red }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-2.html" title="Type element selectors">
+ <link rel="next" href="css3-modsel-5.html" title="Attribute existence selector">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p id="foo">This paragraph should have a green background</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/004-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/004-expected.txt
new file mode 100644
index 0000000..5b2c4fd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/004-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 561x17
+ text run at (0,0) width 456: "This paragraph should have a green background because its TITLE "
+ text run at (456,0) width 105: "attribute is set."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/004.html b/third_party/WebKit/LayoutTests/fast/selectors/004.html
new file mode 100644
index 0000000..9555a6f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/004.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Attribute existence selector</title>
+ <style type="text/css">p { background-color : red }
+p[title] { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-4.html" title="Omitted universal selector">
+ <link rel="next" href="css3-modsel-6.html" title="Attribute value selector">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p title="title">This paragraph should have a green background because its TITLE
+ attribute is set.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/005-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/005-expected.txt
new file mode 100644
index 0000000..5b2c4fd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/005-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 561x17
+ text run at (0,0) width 456: "This paragraph should have a green background because its TITLE "
+ text run at (456,0) width 105: "attribute is set."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/005.html b/third_party/WebKit/LayoutTests/fast/selectors/005.html
new file mode 100644
index 0000000..9555a6f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/005.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Attribute existence selector</title>
+ <style type="text/css">p { background-color : red }
+p[title] { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-4.html" title="Omitted universal selector">
+ <link rel="next" href="css3-modsel-6.html" title="Attribute value selector">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p title="title">This paragraph should have a green background because its TITLE
+ attribute is set.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/006-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/006-expected.txt
new file mode 100644
index 0000000..f8cff1a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/006-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x32
+ RenderBlock {HTML} at (0,0) size 800x32
+ RenderBody {BODY} at (8,8) size 784x16
+ RenderBlock {ADDRESS} at (0,0) size 784x16 [bgcolor=#00FF00]
+ RenderInline {SPAN} at (0,0) size 132x16 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 132x16
+ text run at (0,0) width 132: "This address should "
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 569x16 [bgcolor=#000000]
+ RenderText {TEXT} at (132,0) size 569x16
+ text run at (132,0) width 249: "have a green background because the "
+ text run at (381,0) width 320: "selector in last rule does not apply to inner SPANs."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/006.html b/third_party/WebKit/LayoutTests/fast/selectors/006.html
new file mode 100644
index 0000000..772d5b8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/006.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Attribute value selector</title>
+ <style type="text/css">address { background-color : red }
+address[title="foo"] { background-color : lime }
+span[title="a"] { background-color : red }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-5.html" title="Attribute existence selector">
+ <link rel="next" href="css3-modsel-7.html" title="Attribute multivalue selector">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<address title="foo">
+<span title="b">This address should </span>
+ <span title="aa">have a green background because the
+ selector in last rule does not apply to inner SPANs.
+</span>
+</address>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/007a-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/007a-expected.txt
new file mode 100644
index 0000000..d4f7ee5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/007a-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x69
+ RenderBlock {HTML} at (0,0) size 800x69
+ RenderBody {BODY} at (8,14) size 784x47
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 510x17
+ text run at (0,0) width 428: "This paragraph should have green background because CLASS "
+ text run at (428,0) width 82: "contains \"b\""
+ RenderBlock {ADDRESS} at (0,31) size 784x16 [bgcolor=#00FF00]
+ RenderInline {SPAN} at (0,0) size 158x16 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 158x16
+ text run at (0,0) width 158: "This address should also"
+ RenderText {TEXT} at (158,0) size 4x16
+ text run at (158,0) width 4: " "
+ RenderInline {SPAN} at (0,0) size 605x16 [bgcolor=#000000]
+ RenderText {TEXT} at (162,0) size 605x16
+ text run at (162,0) width 356: "have green background because the selector in the last "
+ text run at (518,0) width 249: "rule does not apply to the inner SPANs."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/007a.html b/third_party/WebKit/LayoutTests/fast/selectors/007a.html
new file mode 100644
index 0000000..c9ce536
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/007a.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Attribute multivalue selector</title>
+ <style type="text/css">p { background-color : red }
+p[class~="b"] { background-color : lime }
+address { background-color : red }
+address[title~="foo"] { background-color : lime }
+span[class~="b"] { background-color : red }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-6.html" title="Attribute value selector">
+ <link rel="next" href="css3-modsel-7b.html" title="Attribute multivalue selector">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p class="a b c">This paragraph should have green background because CLASS
+ contains &quot;b&quot;</p>
+<address title="tot foo bar">
+<span class="a c">This address should also</span>
+ <span class="a bb c">have green background because the selector in the last
+ rule does not apply to the inner SPANs.</span>
+</address>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/007b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/007b-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/007b-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/007b.html b/third_party/WebKit/LayoutTests/fast/selectors/007b.html
new file mode 100644
index 0000000..956a2f5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/007b.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Attribute multivalue selector</title>
+ <style type="text/css">
+p { background: lime; }
+[title~="hello world"] { background: red; }
+/* Section 6.3.1: Represents the att attribute whose value is a
+space-separated list of words, one of which is exactly "val". If this
+selector is used, the words in the value must not contain spaces
+(since they are separated by spaces). */
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-7.html" title="Attribute multivalue selector">
+ <link rel="next" href="css3-modsel-8.html" title="Attribute value selectors (hyphen-separated attributes)">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p title="hello world">This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/008-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/008-expected.txt
new file mode 100644
index 0000000..54da5e6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/008-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x69
+ RenderBlock {HTML} at (0,0) size 800x69
+ RenderBody {BODY} at (8,14) size 784x47
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 539x17
+ text run at (0,0) width 539: "This paragraph should have green background because its language is \"en-gb\""
+ RenderBlock {ADDRESS} at (0,31) size 784x16 [bgcolor=#00FF00]
+ RenderInline {SPAN} at (0,0) size 158x16 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 158x16
+ text run at (0,0) width 158: "This address should also"
+ RenderText {TEXT} at (158,0) size 4x16
+ text run at (158,0) width 4: " "
+ RenderInline {SPAN} at (0,0) size 511x16 [bgcolor=#000000]
+ RenderText {TEXT} at (162,0) size 511x16
+ text run at (162,0) width 424: "have green background because the language of the inner SPANs "
+ text run at (586,0) width 87: "is not French."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/008.html b/third_party/WebKit/LayoutTests/fast/selectors/008.html
new file mode 100644
index 0000000..0364ef9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/008.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Attribute value selectors (hyphen-separated attributes)</title>
+ <style type="text/css">p { background-color : red }
+p[lang|="en"] { background-color : lime }
+address { background-color : red }
+address[lang="fi"] { background-color : lime }
+span[lang|="fr"] { background-color : red }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-7b.html" title="Attribute multivalue selector">
+ <link rel="next" href="css3-modsel-9.html" title="Substring matching attribute selector (beginning)">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p lang="en-gb">This paragraph should have green background because its language is &quot;en-gb&quot;</p>
+<address lang="fi">
+<span lang="en-us">This address should also</span>
+ <span lang="en-fr">have green background because the language of the inner SPANs
+ is not French.</span>
+</address>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/009-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/009-expected.txt
new file mode 100644
index 0000000..c9f562d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/009-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x62
+ RenderBlock {HTML} at (0,0) size 800x62
+ RenderBody {BODY} at (8,14) size 784x34
+ RenderBlock {P} at (0,0) size 784x34 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 330x17
+ text run at (0,0) width 330: "This paragraph should have a green background"
+ RenderBR {BR} at (0,0) size 0x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,17) size 291x17
+ text run at (0,17) width 291: "because its title attribute begins with \"foo\""
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/009.html b/third_party/WebKit/LayoutTests/fast/selectors/009.html
new file mode 100644
index 0000000..0bcfc3e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/009.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Substring matching attribute selector (beginning)</title>
+ <style type="text/css">p { background-color : red }
+p[title^="foo"] { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-8.html" title="Attribute value selectors (hyphen-separated attributes)">
+ <link rel="next" href="css3-modsel-10.html" title="Substring matching attribute selector (end)">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p title="foobar">This paragraph should have a green background<br>
+because its title attribute begins with &quot;foo&quot;</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/010-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/010-expected.txt
new file mode 100644
index 0000000..aa22e74
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/010-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 612x17
+ text run at (0,0) width 612: "This paragraph should have a green background because its title attribute ends with \"bar\""
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/010.html b/third_party/WebKit/LayoutTests/fast/selectors/010.html
new file mode 100644
index 0000000..482025b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/010.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Substring matching attribute selector (end)</title>
+ <style type="text/css">p { background-color : red }
+p[title$="bar"] { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-9.html" title="Substring matching attribute selector (beginning)">
+ <link rel="next" href="css3-modsel-11.html" title="Substring matching attribute selector (contains)">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p title="foobar">This paragraph should have a green background because
+its title attribute ends with &quot;bar&quot;</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/011-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/011-expected.txt
new file mode 100644
index 0000000..55d1007
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/011-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 604x17
+ text run at (0,0) width 604: "This paragraph should have a green background because its title attribute contains \"bar\""
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/011.html b/third_party/WebKit/LayoutTests/fast/selectors/011.html
new file mode 100644
index 0000000..36a4ca9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/011.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Substring matching attribute selector (contains)</title>
+ <style type="text/css">p { background-color : red }
+p[title*="bar"] { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-10.html" title="Substring matching attribute selector (end)">
+ <link rel="next" href="css3-modsel-12.html" title="Default attribute value">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p title="foobarufoo">This paragraph should have a green background because
+its title attribute contains &quot;bar&quot;</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/012-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/012-expected.txt
new file mode 100644
index 0000000..b0f6c2b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/012-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {FORM} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 384x17
+ text run at (0,0) width 221: "The content of this form should "
+ text run at (221,0) width 163: "have a lime background"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/012.html b/third_party/WebKit/LayoutTests/fast/selectors/012.html
new file mode 100644
index 0000000..0689b1b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/012.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Default attribute value</title>
+ <style type="text/css">form { background-color : lime }
+form[method] { background-color : red }
+form[method="get"] { background-color : red }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-11.html" title="Substring matching attribute selector (contains)">
+ <link rel="next" href="css3-modsel-13.html" title="Class selectors">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<form action="http://www.example.org/foo.cgi">
+<p>The content of this form should
+ have a lime background</p>
+</form>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/013-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/013-expected.txt
new file mode 100644
index 0000000..7ca275d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/013-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x79
+ RenderBlock {HTML} at (0,0) size 800x79
+ RenderBody {BODY} at (8,14) size 784x51
+ RenderBlock {UL} at (0,0) size 784x51
+ RenderListItem {LI} at (40,0) size 744x17 [bgcolor=#00FF00]
+ RenderListMarker at (0,0) size 0x14 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 468x17
+ text run at (0,0) width 468: "This list item should have green background because its class is \"t1\""
+ RenderListItem {LI} at (40,17) size 744x17 [bgcolor=#00FF00]
+ RenderListMarker at (0,0) size 0x14 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 468x17
+ text run at (0,0) width 468: "This list item should have green background because its class is \"t2\""
+ RenderListItem {LI} at (40,34) size 744x17 [bgcolor=#00FF00]
+ RenderListMarker at (0,0) size 0x14 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 638x17 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 638x17
+ text run at (0,0) width 368: "This list item should have green background because "
+ text run at (368,0) width 270: "the inner SPAN does not match SPAN.t3"
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/013.html b/third_party/WebKit/LayoutTests/fast/selectors/013.html
new file mode 100644
index 0000000..6d600c1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/013.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Class selectors</title>
+ <style type="text/css">li { background-color : red }
+.t1 { background-color : lime }
+li.t2 { background-color : lime }
+.t3 { background-color : red }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-12.html" title="Default attribute value">
+ <link rel="next" href="css3-modsel-14.html" title="More than one class selector">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<ul>
+ <li class="t1">This list item should have green background because its class is &quot;t1&quot;</li>
+ <li class="t2">This list item should have green background because its class is &quot;t2&quot;</li>
+ <li class="t2">
+<span class="t33">This list item should have green background because
+ the inner SPAN does not match SPAN.t3</span>
+</li>
+</ul>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/014-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/014-expected.txt
new file mode 100644
index 0000000..69fa5d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/014-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x100
+ RenderBlock {HTML} at (0,0) size 800x100
+ RenderBody {BODY} at (8,14) size 784x72
+ RenderBlock {P} at (0,0) size 784x72 [bgcolor=#FFFFFF]
+ RenderText {TEXT} at (19,19) size 739x34
+ text run at (19,19) width 480: "This paragraph should have white background and a green thick solid "
+ text run at (499,19) width 259: "border because it carries both classes"
+ text run at (19,36) width 64: "t1 and t2"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/014.html b/third_party/WebKit/LayoutTests/fast/selectors/014.html
new file mode 100644
index 0000000..a2b083f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/014.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>More than one class selector</title>
+ <style type="text/css">p { background-color : red ; border : thick solid red ; padding : 1em }
+p.t1 { background-color : white }
+p.t2 { border : thick solid lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-13.html" title="Class selectors">
+ <link rel="next" href="css3-modsel-15.html" title="ID selectors">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p class="t1 t2">This paragraph should have white background and a green thick solid
+ border because it carries both classes t1 and t2</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/015-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/015-expected.txt
new file mode 100644
index 0000000..8beb65a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/015-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x79
+ RenderBlock {HTML} at (0,0) size 800x79
+ RenderBody {BODY} at (8,14) size 784x51
+ RenderBlock {UL} at (0,0) size 784x51
+ RenderListItem {LI} at (40,0) size 744x17 [bgcolor=#00FF00]
+ RenderListMarker at (0,0) size 0x14 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 466x17
+ text run at (0,0) width 466: "This list item should have a green background. because its ID is \"t1\""
+ RenderListItem {LI} at (40,17) size 744x17 [bgcolor=#00FF00]
+ RenderListMarker at (0,0) size 0x14 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 466x17
+ text run at (0,0) width 466: "This list item should have a green background. because its ID is \"t2\""
+ RenderListItem {LI} at (40,34) size 744x17 [bgcolor=#00FF00]
+ RenderListMarker at (0,0) size 0x14 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 634x17 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 634x17
+ text run at (0,0) width 634: "This list item should have a green background. because the inner SPAN does not match \"#t4\""
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/015.html b/third_party/WebKit/LayoutTests/fast/selectors/015.html
new file mode 100644
index 0000000..c261cc1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/015.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>ID selectors</title>
+ <style type="text/css">li { background-color : red }
+#t1 { background-color : lime }
+li#t2 { background-color : lime }
+li#t3 { background-color : lime }
+#t4 { background-color : red }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-14.html" title="More than one class selector">
+ <link rel="next" href="css3-modsel-16.html" title=":link pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<ul>
+ <li id="t1">This list item should have a green background. because its ID is &quot;t1&quot;</li>
+ <li id="t2">This list item should have a green background. because its ID is &quot;t2&quot;</li>
+ <li id="t3"><span id="t44">This list item should have a green background. because the inner SPAN does not match &quot;#t4&quot;</span></li>
+</ul>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/016-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/016-expected.txt
new file mode 100644
index 0000000..6d5bc81
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/016-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderInline {A} at (0,0) size 278x17 [color=#0000EE] [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 278x17
+ text run at (0,0) width 278: "This link should have green background."
+ RenderText {TEXT} at (278,0) size 160x17
+ text run at (278,0) width 160: " (Don't follow this link.)"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/016.html b/third_party/WebKit/LayoutTests/fast/selectors/016.html
new file mode 100644
index 0000000..babf622
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/016.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:link pseudo-class</title>
+ <style type="text/css">p.test a { background-color : red }
+p.test *:link { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-15.html" title="ID selectors">
+ <link rel="next" href="css3-modsel-17.html" title=":visited pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p class="test">
+<a href="http://unvisited.example.org/css3-modsel-16/">This link should have green background.</a>
+(Don&#39;t follow this link.)
+</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/017-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/017-expected.txt
new file mode 100644
index 0000000..202a4fc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/017-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x62
+ RenderBlock {HTML} at (0,0) size 800x62
+ RenderBody {BODY} at (8,14) size 784x34
+ RenderBlock {P} at (0,0) size 784x34
+ RenderInline {A} at (0,0) size 413x17 [color=#0000EE] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 413x17
+ text run at (0,0) width 413: "You should see a green background assigned by the anchor."
+ RenderText {TEXT} at (413,0) size 783x34
+ text run at (413,0) width 370: " (Note: You must have visited http://www.w3.org/ for"
+ text run at (0,17) width 141: "this test to be valid.)"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/017.html b/third_party/WebKit/LayoutTests/fast/selectors/017.html
new file mode 100644
index 0000000..c4177a0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/017.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:visited pseudo-class</title>
+ <style type="text/css">p.test a { background-color : red }
+p.test *:visited { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-16.html" title=":link pseudo-class">
+ <link rel="next" href="css3-modsel-18.html" title=":hover pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p class="test">
+<a href="http://www.w3.org/">You should see a green background assigned by the anchor.</a>
+(Note: You must have visited http://www.w3.org/ for this test to be valid.)
+</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/018-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/018-expected.txt
new file mode 100644
index 0000000..7fc76f6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/018-expected.txt
@@ -0,0 +1,119 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x283
+ RenderBlock {HTML} at (0,0) size 800x283
+ RenderBody {BODY} at (8,14) size 784x261
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 741x17
+ text run at (0,0) width 461: "The background color of this paragraph should turn to green when "
+ text run at (461,0) width 280: "the mouse pointer hovers either its text ("
+ RenderInline {STRONG} at (0,0) size 32x17
+ RenderText {TEXT} at (741,0) size 32x17
+ text run at (741,0) width 32: "here"
+ RenderText {TEXT} at (773,0) size 778x34
+ text run at (773,0) width 5: ")"
+ text run at (0,17) width 211: "or its whitespace background, "
+ RenderInline {STRONG} at (0,0) size 32x17
+ RenderText {TEXT} at (211,17) size 32x17
+ text run at (211,17) width 32: "here"
+ RenderText {TEXT} at (243,17) size 5x17
+ text run at (243,17) width 5: ":"
+ RenderBlock {ADDRESS} at (0,48) size 784x16
+ RenderText {TEXT} at (0,0) size 159x16
+ text run at (0,0) width 159: "The background color of "
+ RenderInline {A} at (0,0) size 114x16 [color=#0000EE]
+ RenderText {TEXT} at (159,0) size 79x16
+ text run at (159,0) width 79: "this anchor ("
+ RenderInline {STRONG} at (0,0) size 30x16
+ RenderText {TEXT} at (238,0) size 30x16
+ text run at (238,0) width 30: "here"
+ RenderText {TEXT} at (268,0) size 5x16
+ text run at (268,0) width 5: ")"
+ RenderText {TEXT} at (273,0) size 387x16
+ text run at (273,0) width 387: " should turn to green when the pointing device hovers over it."
+ RenderTable {TABLE} at (0,64) size 330x197
+ RenderTableSection {TBODY} at (0,0) size 0x197
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (5,5) size 106x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 78x17
+ text run at (1,1) width 78: "The cells in"
+ RenderTableCell {TD} at (116,5) size 98x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 64x17
+ text run at (1,1) width 64: "this table"
+ RenderTableCell {TD} at (219,5) size 106x19 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 68x17
+ text run at (1,1) width 68: "should go"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (5,29) size 106x19 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 79x17
+ text run at (1,1) width 79: "green when"
+ RenderTableCell {TD} at (116,29) size 98x19 [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 68x17
+ text run at (1,1) width 68: "you hover"
+ RenderTableCell {TD} at (219,29) size 106x19 [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 83x17
+ text run at (1,1) width 83: "the pointing"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (5,53) size 106x19 [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 77x17
+ text run at (1,1) width 77: "device over"
+ RenderTableCell {TD} at (116,53) size 98x19 [r=2 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 44x17
+ text run at (1,1) width 44: "them ("
+ RenderInline {STRONG} at (0,0) size 32x17
+ RenderText {TEXT} at (45,1) size 32x17
+ text run at (45,1) width 32: "here"
+ RenderText {TEXT} at (77,1) size 10x17
+ text run at (77,1) width 10: ")."
+ RenderTableCell {TD} at (219,61) size 106x2 [r=2 c=2 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (5,77) size 106x19 [r=3 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 80x17
+ text run at (1,1) width 80: "The rows in"
+ RenderTableCell {TD} at (116,77) size 98x19 [r=3 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 64x17
+ text run at (1,1) width 64: "this table"
+ RenderTableCell {TD} at (219,77) size 106x19 [r=3 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 68x17
+ text run at (1,1) width 68: "should go"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (5,101) size 106x19 [r=4 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 74x17
+ text run at (1,1) width 74: "dark green"
+ RenderTableCell {TD} at (116,101) size 98x19 [r=4 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 62x17
+ text run at (1,1) width 62: "when the"
+ RenderTableCell {TD} at (219,101) size 106x19 [r=4 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 104x17
+ text run at (1,1) width 104: "pointing device"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (5,125) size 106x19 [r=5 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 72x17
+ text run at (1,1) width 72: "is over the"
+ RenderTableCell {TD} at (116,125) size 98x19 [r=5 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 63x17
+ text run at (1,1) width 63: "five pixel"
+ RenderTableCell {TD} at (219,125) size 106x19 [r=5 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 103x17
+ text run at (1,1) width 103: "border spacing"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (5,149) size 106x19 [r=6 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 96x17
+ text run at (1,1) width 96: "and when it is"
+ RenderTableCell {TD} at (116,149) size 98x19 [r=6 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 96x17
+ text run at (1,1) width 96: "over the cells."
+ RenderTableCell {TD} at (219,157) size 106x2 [r=6 c=2 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (5,173) size 106x19 [r=7 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 67x17
+ text run at (1,1) width 67: "Including "
+ RenderInline {STRONG} at (0,0) size 32x17
+ RenderText {TEXT} at (68,1) size 32x17
+ text run at (68,1) width 32: "here"
+ RenderText {TEXT} at (100,1) size 5x17
+ text run at (100,1) width 5: ","
+ RenderTableCell {TD} at (116,181) size 98x2 [r=7 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (219,173) size 106x19 [r=7 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 78x17
+ text run at (1,1) width 78: "blank cells."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/018.html b/third_party/WebKit/LayoutTests/fast/selectors/018.html
new file mode 100644
index 0000000..9bf835a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/018.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:hover pseudo-class</title>
+ <style type="text/css">p:hover { background-color : lime }
+a:hover { background-color : lime }
+
+tr:hover { background-color : green }
+td:hover { background-color : lime }
+
+table { border-spacing: 5px; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-17.html" title=":visited pseudo-class">
+ <link rel="next" href="css3-modsel-18b.html" title=":hover pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>The background color of this paragraph should turn to green when
+ the mouse pointer hovers either its text (<strong>here</strong>) or its whitespace background, <strong>here</strong>:</p>
+<address>The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</address>
+<table>
+ <tbody>
+ <tr>
+ <td>The cells in</td>
+ <td>this table</td>
+ <td>should go</td>
+ </tr>
+ <tr>
+ <td>green when</td>
+ <td>you hover</td>
+ <td>the pointing</td>
+ </tr>
+ <tr>
+ <td>device over</td>
+ <td>them (<strong>here</strong>).</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>The rows in</td>
+ <td>this table</td>
+ <td>should go</td>
+ </tr>
+ <tr>
+ <td>dark green</td>
+ <td>when the</td>
+ <td>pointing device</td>
+ </tr>
+ <tr>
+ <td>is over the</td>
+ <td>five pixel</td>
+ <td>border spacing</td>
+ </tr>
+ <tr>
+ <td>and when it is</td>
+ <td>over the cells.</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>Including <strong>here</strong>,</td>
+ <td></td>
+ <td>blank cells.</td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/018b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/018b-expected.txt
new file mode 100644
index 0000000..c7ddb9d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/018b-expected.txt
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x284
+ RenderBlock {HTML} at (0,0) size 800x284
+ RenderBody {BODY} at (8,14) size 784x256
+ RenderBlock {DIV} at (0,0) size 784x256
+ RenderBlock {P} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 742x34
+ text run at (0,0) width 742: "The background color of this paragraph should turn to green when the mouse pointer hovers over any of the"
+ text run at (0,17) width 68: "following:"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderInline {STRONG} at (0,0) size 69x17
+ RenderText {TEXT} at (0,34) size 69x17
+ text run at (0,34) width 69: "This text."
+ RenderBlock {P} at (0,65) size 784x17
+ RenderText {TEXT} at (0,0) size 65x17
+ text run at (0,0) width 65: "This text."
+ RenderTable {TABLE} at (0,96) size 117x95
+ RenderTableSection {TBODY} at (0,0) size 0x95
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 113x70 [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (1,1) size 111x68
+ RenderTableSection {TBODY} at (0,0) size 0x68
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 107x64 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DL} at (1,15) size 105x34
+ RenderBlock {DT} at (0,0) size 105x17
+ RenderText {TEXT} at (0,0) size 65x17
+ text run at (0,0) width 65: "This text."
+ RenderBlock {DD} at (40,17) size 65x17
+ RenderText {TEXT} at (0,0) size 65x17
+ text run at (0,0) width 65: "This text."
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,74) size 113x19 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 65x17
+ text run at (1,1) width 65: "This text."
+ RenderBlock {P} at (0,205) size 784x20
+ RenderInline {SUB} at (0,0) size 57x15
+ RenderText {TEXT} at (0,5) size 57x15
+ text run at (0,5) width 57: "This text."
+ RenderBlock {P} at (0,239) size 784x17
+ RenderText {TEXT} at (0,0) size 637x17
+ text run at (0,0) width 637: "...and anything else between the top of the first paragraph and the bottom of this paragraph."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/018b.html b/third_party/WebKit/LayoutTests/fast/selectors/018b.html
new file mode 100644
index 0000000..3ba8a91
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/018b.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:hover pseudo-class</title>
+ <style type="text/css">div:hover > p:first-child { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-18.html" title=":hover pseudo-class">
+ <link rel="next" href="css3-modsel-19.html" title=":active pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div>
+ <p>The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:<br><strong>This text.</strong></p>
+ <p>This text.</p>
+ <table><tr><td><table><tr><td><dl><dt>This text.</dt><dd>This text.</dd></dl></td></tr></table></td></tr><tr><td>This text.</td></tr></table>
+ <p><sub>This text.</sub></p>
+ <p>...and anything else between the top of the first paragraph and the bottom of this paragraph.</p>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/019-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/019-expected.txt
new file mode 100644
index 0000000..e5f2a74
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/019-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x62
+ RenderBlock {HTML} at (0,0) size 800x62
+ RenderBody {BODY} at (8,14) size 784x34
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 173x17
+ text run at (0,0) width 173: "The background color of "
+ RenderInline {A} at (0,0) size 73x17 [color=#0000EE]
+ RenderText {TEXT} at (173,0) size 73x17
+ text run at (173,0) width 73: "the anchor"
+ RenderText {TEXT} at (246,0) size 773x34
+ text run at (246,0) width 4: " "
+ text run at (250,0) width 405: "should turn to green when it is activated and come back to "
+ text run at (655,0) width 118: "normal when it is"
+ text run at (0,17) width 62: "released."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/019.html b/third_party/WebKit/LayoutTests/fast/selectors/019.html
new file mode 100644
index 0000000..9550723
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/019.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:active pseudo-class</title>
+ <style type="text/css">a:active { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-18b.html" title=":hover pseudo-class">
+ <link rel="next" href="css3-modsel-20.html" title=":focus pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>The background color of <a href="#foo">the anchor</a>
+ should turn to green when it is activated and come back to
+ normal when it is released.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/020-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/020-expected.txt
new file mode 100644
index 0000000..7c7d35f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/020-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 173x17
+ text run at (0,0) width 173: "The background color of "
+ RenderInline {A} at (0,0) size 54x17 [color=#0000EE]
+ RenderText {TEXT} at (173,0) size 54x17
+ text run at (173,0) width 54: "anchors"
+ RenderText {TEXT} at (227,0) size 172x17
+ text run at (227,0) width 4: " "
+ text run at (231,0) width 168: "in this page should turn "
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (399,0) size 57x17
+ text run at (399,0) width 57: "to green"
+ RenderText {TEXT} at (456,0) size 140x17
+ text run at (456,0) width 140: " when they have the "
+ RenderInline {A} at (0,0) size 37x17 [color=#0000EE]
+ RenderText {TEXT} at (596,0) size 37x17
+ text run at (596,0) width 37: "focus"
+ RenderText {TEXT} at (633,0) size 5x17
+ text run at (633,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/020.html b/third_party/WebKit/LayoutTests/fast/selectors/020.html
new file mode 100644
index 0000000..5d85ea1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/020.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:focus pseudo-class</title>
+ <style type="text/css">a:focus { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-19.html" title=":active pseudo-class">
+ <link rel="next" href="css3-modsel-21.html" title=":target pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>The background color of <a href="#foo">anchors</a>
+ in this page should turn <a href="#foo">to green</a> when they have the
+ <a href="#foo">focus</a>.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/021-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/021-expected.txt
new file mode 100644
index 0000000..709d36a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/021-expected.txt
@@ -0,0 +1,39 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x175
+ RenderBlock {HTML} at (0,0) size 800x175
+ RenderBody {BODY} at (8,14) size 784x147
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 762x34
+ text run at (0,0) width 245: "This paragraph should be unstyled. "
+ text run at (245,0) width 492: "The background of the following paragraph should become green when "
+ text run at (737,0) width 25: "you"
+ text run at (0,17) width 46: "follow "
+ RenderInline {A} at (0,0) size 55x17 [color=#0000EE]
+ RenderText {TEXT} at (46,17) size 55x17
+ text run at (46,17) width 55: "this link"
+ RenderText {TEXT} at (101,17) size 5x17
+ text run at (101,17) width 5: "."
+ RenderBlock {P} at (0,48) size 784x51
+ RenderText {TEXT} at (0,0) size 749x34
+ text run at (0,0) width 299: "This paragraph should initially be unstyled. "
+ text run at (299,0) width 450: "It should become green when you select the link above. When you"
+ text run at (0,17) width 44: "select "
+ RenderInline {A} at (0,0) size 55x17 [color=#0000EE]
+ RenderText {TEXT} at (44,17) size 55x17
+ text run at (44,17) width 55: "this link"
+ RenderText {TEXT} at (99,17) size 750x34
+ text run at (99,17) width 298: ", it should return to being unstyled and the "
+ text run at (397,17) width 353: "background of the paragraph below should become"
+ text run at (0,34) width 44: "green."
+ RenderBlock {P} at (0,113) size 784x34
+ RenderText {TEXT} at (0,0) size 749x34
+ text run at (0,0) width 299: "This paragraph should initially be unstyled. "
+ text run at (299,0) width 450: "It should become green when you select the link above. When you"
+ text run at (0,17) width 46: "follow "
+ RenderInline {A} at (0,0) size 55x17 [color=#0000EE]
+ RenderText {TEXT} at (46,17) size 55x17
+ text run at (46,17) width 55: "this link"
+ RenderText {TEXT} at (101,17) size 396x17
+ text run at (101,17) width 156: ", the three paragraphs "
+ text run at (257,17) width 240: "should all return to being unstyled."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/021.html b/third_party/WebKit/LayoutTests/fast/selectors/021.html
new file mode 100644
index 0000000..181cc9e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/021.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:target pseudo-class</title>
+ <style type="text/css">p:target { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-20.html" title=":focus pseudo-class">
+ <link rel="next" href="css3-modsel-21b.html" title=":target pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p id="first">This paragraph should be unstyled.
+ The background of the following paragraph should become green when
+ you follow <a href="#second">this link</a>.</p>
+<p id="second">This paragraph should initially be unstyled.
+ It should become green when you select the link above. When you select
+ <a href="#third">this link</a>, it should return to being unstyled and the
+ background of the paragraph below should become green.</p>
+<p id="third">This paragraph should initially be unstyled.
+ It should become green when you select the link above. When you follow
+ <a href="#missing">this link</a>, the three paragraphs
+ should all return to being unstyled.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/021b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/021b-expected.txt
new file mode 100644
index 0000000..22bef27
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/021b-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 222x17
+ text run at (0,0) width 222: "This paragraph should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/021b.html b/third_party/WebKit/LayoutTests/fast/selectors/021b.html
new file mode 100644
index 0000000..8c11d78
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/021b.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:target pseudo-class</title>
+ <style type="text/css">p { background-color: lime; }
+p:target { background-color: red; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-21.html" title=":target pseudo-class">
+ <link rel="next" href="css3-modsel-21c.html" title=":target pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This paragraph should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/027-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/027-expected.txt
new file mode 100644
index 0000000..88cc257
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/027-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45 [bgcolor=#00FF00]
+ RenderBody {BODY} at (8,14) size 784x17 [bgcolor=#000000]
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 343x17
+ text run at (0,0) width 343: "The background of the document should be green"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/027.html b/third_party/WebKit/LayoutTests/fast/selectors/027.html
new file mode 100644
index 0000000..ea67e93
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/027.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:root pseudo-class</title>
+ <style type="text/css">html { background-color : red }
+*:root { background-color: lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-25.html" title=":checked pseudo-class">
+ <link rel="next" href="css3-modsel-28.html" title=":nth-child() pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>The background of the document should be green</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/032-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/032-expected.txt
new file mode 100644
index 0000000..ec97355
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/032-expected.txt
@@ -0,0 +1,45 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x126
+ RenderBlock {HTML} at (0,0) size 800x126
+ RenderBody {BODY} at (8,8) size 784x104
+ RenderBlock {DIV} at (0,0) size 784x73
+ RenderTable {TABLE} at (324,0) size 135x73
+ RenderTableSection {TBODY} at (1,1) size 0x71
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 71x21 [bgcolor=#00FF00] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (75,2) size 27x21 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "1.2"
+ RenderTableCell {TD} at (104,2) size 27x21 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "1.3"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,25) size 71x21 [bgcolor=#00FF00] [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (75,25) size 27x21 [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "2.2"
+ RenderTableCell {TD} at (104,25) size 27x21 [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "2.3"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,48) size 71x21 [bgcolor=#00FF00] [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (75,48) size 27x21 [r=2 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "3.2"
+ RenderTableCell {TD} at (104,48) size 27x21 [r=2 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "3.3"
+ RenderBlock {P} at (0,87) size 784x17
+ RenderText {TEXT} at (0,0) size 241x17
+ text run at (0,0) width 241: "This paragraph contains some text "
+ RenderInline {SPAN} at (0,0) size 333x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (241,0) size 333x17
+ text run at (241,0) width 333: "and a span that should have a green background"
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/032.html b/third_party/WebKit/LayoutTests/fast/selectors/032.html
new file mode 100644
index 0000000..0eb374c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/032.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:first-child pseudo-class</title>
+ <style type="text/css">.red { background-color : red }
+.t1 td:first-child { background-color : lime }
+p > *:first-child { background-color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-31.html" title=":nth-last-of-type() pseudo-class">
+ <link rel="next" href="css3-modsel-33.html" title=":last-child pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<div align="center">
+<table class="t1" border="1">
+ <tr>
+ <td class="red">green cell</td>
+ <td>1.2</td>
+ <td>1.3</td>
+ </tr>
+ <tr>
+ <td class="red">green cell</td>
+ <td>2.2</td>
+ <td>2.3</td>
+ </tr>
+ <tr>
+ <td class="red">green cell</td>
+ <td>3.2</td>
+ <td>3.3</td>
+ </tr>
+</table>
+</div>
+<p>This paragraph contains some text
+ <span>and a span that should have a green background</span>
+</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/033-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/033-expected.txt
new file mode 100644
index 0000000..fd1352f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/033-expected.txt
@@ -0,0 +1,45 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x126
+ RenderBlock {HTML} at (0,0) size 800x126
+ RenderBody {BODY} at (8,8) size 784x104
+ RenderBlock {DIV} at (0,0) size 784x73
+ RenderTable {TABLE} at (324,0) size 135x73
+ RenderTableSection {TBODY} at (1,1) size 0x71
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 27x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "1.1"
+ RenderTableCell {TD} at (31,2) size 27x21 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "1.2"
+ RenderTableCell {TD} at (60,2) size 71x21 [bgcolor=#00FF00] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,25) size 27x21 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "2.1"
+ RenderTableCell {TD} at (31,25) size 27x21 [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "2.2"
+ RenderTableCell {TD} at (60,25) size 71x21 [bgcolor=#00FF00] [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,48) size 27x21 [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "3.1"
+ RenderTableCell {TD} at (31,48) size 27x21 [r=2 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "3.2"
+ RenderTableCell {TD} at (60,48) size 71x21 [bgcolor=#00FF00] [r=2 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderBlock {P} at (0,87) size 784x17
+ RenderInline {SPAN} at (0,0) size 472x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 472x17
+ text run at (0,0) width 299: "This paragraph contains a span that should "
+ text run at (299,0) width 173: "have a green background"
+ RenderText {TEXT} at (472,0) size 157x17
+ text run at (472,0) width 157: " and some text after it."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/033.html b/third_party/WebKit/LayoutTests/fast/selectors/033.html
new file mode 100644
index 0000000..bf68e1c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/033.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:last-child pseudo-class</title>
+ <style type="text/css">.red { background-color : red }
+.t1 td:last-child { background-color : lime }
+p > *:last-child { background-color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-32.html" title=":first-child pseudo-class">
+ <link rel="next" href="css3-modsel-34.html" title=":first-of-type pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<div align="center">
+<table class="t1" border="1">
+ <tr>
+ <td>1.1</td>
+ <td>1.2</td>
+ <td class="red">green cell</td>
+ </tr>
+ <tr>
+ <td>2.1</td>
+ <td>2.2</td>
+ <td class="red">green cell</td>
+ </tr>
+ <tr>
+ <td>3.1</td>
+ <td>3.2</td>
+ <td class="red">green cell</td>
+ </tr>
+</table>
+</div>
+<p>
+<span>This paragraph contains a span that should
+ have a green background</span> and some text after it.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/038-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/038-expected.txt
new file mode 100644
index 0000000..58b6e58
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/038-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x113
+ RenderBlock {HTML} at (0,0) size 800x113
+ RenderBody {BODY} at (8,14) size 784x85
+ RenderBlock {P} at (0,0) size 784x85
+ RenderText {TEXT} at (0,0) size 770x85
+ text run at (0,0) width 273: "This very long paragraph should have a "
+ text run at (273,0) width 497: "first line with green background. This very long paragraph should have a"
+ text run at (0,17) width 32: "first "
+ text run at (32,17) width 196: "line with green background. "
+ text run at (228,17) width 334: "This very long paragraph should have a first line "
+ text run at (562,17) width 196: "with green background. This"
+ text run at (0,34) width 334: "very long paragraph should have a first line with "
+ text run at (334,34) width 435: "green background. This very long paragraph should have a first"
+ text run at (0,51) width 105: "line with green "
+ text run at (105,51) width 592: "background. This very long paragraph should have a first line with green background. "
+ text run at (697,51) width 62: "This very"
+ text run at (0,68) width 431: "long paragraph should have a first line with green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/038.html b/third_party/WebKit/LayoutTests/fast/selectors/038.html
new file mode 100644
index 0000000..9d6ca5d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/038.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>::first-line pseudo-element</title>
+ <style type="text/css">p:first-line { background-color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-37.html" title=":only-of-type pseudo-class">
+ <link rel="next" href="css3-modsel-39.html" title="::first-letter pseudo-element">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>This very long paragraph should have a
+ first line with green background. This very long paragraph should have a first
+ line with green background. This very long paragraph should have a first line
+ with green background. This very long paragraph should have a first line with
+ green background. This very long paragraph should have a first line with green
+ background. This very long paragraph should have a first line with green background.
+ This very long paragraph should have a first line with green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/039-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/039-expected.txt
new file mode 100644
index 0000000..eba42c3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/039-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x56
+ RenderBlock {HTML} at (0,0) size 800x56
+ RenderBody {BODY} at (8,14) size 784x28
+ RenderBlock {P} at (0,0) size 784x28
+ RenderInline at (0,0) size 16x28 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 16x28 [bgcolor=#000000]
+ text run at (0,0) width 16: "T"
+ RenderText {TEXT} at (16,9) size 525x17
+ text run at (16,9) width 362: "his very long paragraph should have a big first letter "
+ text run at (378,9) width 163: "with green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/039.html b/third_party/WebKit/LayoutTests/fast/selectors/039.html
new file mode 100644
index 0000000..9810a7f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/039.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>::first-letter pseudo-element</title>
+ <style type="text/css">p:first-letter { font-size : xx-large ; background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-38.html" title="::first-line pseudo-element">
+ <link rel="next" href="css3-modsel-39a.html" title="::first-letter pseudo-element with ::before pseudo-element">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>This very long paragraph should have a big first letter
+ with green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/039b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/039b-expected.txt
new file mode 100644
index 0000000..eba42c3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/039b-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x56
+ RenderBlock {HTML} at (0,0) size 800x56
+ RenderBody {BODY} at (8,14) size 784x28
+ RenderBlock {P} at (0,0) size 784x28
+ RenderInline at (0,0) size 16x28 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 16x28 [bgcolor=#000000]
+ text run at (0,0) width 16: "T"
+ RenderText {TEXT} at (16,9) size 525x17
+ text run at (16,9) width 362: "his very long paragraph should have a big first letter "
+ text run at (378,9) width 163: "with green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/039b.html b/third_party/WebKit/LayoutTests/fast/selectors/039b.html
new file mode 100644
index 0000000..53de0a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/039b.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>::first-letter pseudo-element</title>
+ <style type="text/css">p::first-letter { font-size : xx-large ; background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-39c.html" title="::first-letter pseudo-element with ::before pseudo-element">
+ <link rel="next" href="css3-modsel-40.html" title="::selection pseudo-element">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>This very long paragraph should have a big first letter
+ with green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/040-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/040-expected.txt
new file mode 100644
index 0000000..4ba57e1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/040-expected.txt
@@ -0,0 +1,10 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x79
+ RenderBlock {HTML} at (0,0) size 800x79
+ RenderBody {BODY} at (8,14) size 784x51
+ RenderBlock {P} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 748x51
+ text run at (0,0) width 748: "Any textual selection in this long paragraph should have green background. Any textual selection in this long"
+ text run at (0,17) width 722: "paragraph should have green background. Any textual selection in this long paragraph should have green"
+ text run at (0,34) width 87: "background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/040.html b/third_party/WebKit/LayoutTests/fast/selectors/040.html
new file mode 100644
index 0000000..bb5ff4a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/040.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>::selection pseudo-element</title>
+ <style type="text/css">p::selection { background-color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-39b.html" title="::first-letter pseudo-element">
+ <link rel="next" href="css3-modsel-41.html" title="::before pseudo-element">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/041-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/041-expected.txt
new file mode 100644
index 0000000..f21f822
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/041-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x62
+ RenderBlock {HTML} at (0,0) size 800x62
+ RenderBody {BODY} at (8,14) size 784x34
+ RenderBlock {P} at (0,0) size 784x34
+ RenderInline at (0,0) size 157x17 [bgcolor=#00FF00]
+ RenderText at (0,0) size 157x17
+ text run at (0,0) width 157: "GENERATED CONTENT "
+ RenderText {TEXT} at (157,0) size 719x34
+ text run at (157,0) width 562: "You should see before this paragraph the words GENERATED CONTENT over green"
+ text run at (0,17) width 82: "background"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/041.html b/third_party/WebKit/LayoutTests/fast/selectors/041.html
new file mode 100644
index 0000000..2507d74
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/041.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>::before pseudo-element</title>
+ <style type="text/css">p::before { background-color : lime ; content : "GENERATED CONTENT "}
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-40.html" title="::selection pseudo-element">
+ <link rel="next" href="css3-modsel-42.html" title="::after pseudo-element">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>You should see before this paragraph the words GENERATED CONTENT over green background</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/042-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/042-expected.txt
new file mode 100644
index 0000000..dfcd5da
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/042-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x62
+ RenderBlock {HTML} at (0,0) size 800x62
+ RenderBody {BODY} at (8,14) size 784x34
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 636x17
+ text run at (0,0) width 636: "You should see after this paragraph the words GENERATED CONTENT over green background"
+ RenderInline at (0,0) size 718x34 [bgcolor=#00FF00]
+ RenderText at (636,0) size 718x34
+ text run at (636,0) width 82: "GENERATED"
+ text run at (0,17) width 67: "CONTENT"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/042.html b/third_party/WebKit/LayoutTests/fast/selectors/042.html
new file mode 100644
index 0000000..6aee0f3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/042.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>::after pseudo-element</title>
+ <style type="text/css">p::after { background-color : lime ; content : "GENERATED CONTENT "}
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-41.html" title="::before pseudo-element">
+ <link rel="next" href="css3-modsel-43.html" title="Descendant combinator">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>You should see after this paragraph the words GENERATED CONTENT over green background</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/043-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/043-expected.txt
new file mode 100644
index 0000000..7d08132
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/043-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x155
+ RenderBlock {HTML} at (0,0) size 800x155
+ RenderBody {BODY} at (8,14) size 784x133
+ RenderBlock {DIV} at (0,0) size 784x82
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 330x17
+ text run at (0,0) width 330: "This paragraph should have a green background"
+ RenderTable {TABLE} at (0,31) size 336x51
+ RenderTableSection {TBODY} at (0,0) size 0x51
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 332x47 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {P} at (1,15) size 330x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 330x17
+ text run at (0,0) width 330: "This paragraph should have a green background"
+ RenderTable {TABLE} at (0,82) size 247x51
+ RenderTableSection {TBODY} at (0,0) size 0x51
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 243x47 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {P} at (1,15) size 241x17
+ RenderText {TEXT} at (0,0) size 241x17
+ text run at (0,0) width 241: "This paragraph should be unstyled."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/043.html b/third_party/WebKit/LayoutTests/fast/selectors/043.html
new file mode 100644
index 0000000..ec5abcb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/043.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Descendant combinator</title>
+ <style type="text/css">.white { background-color: transparent ! important; }
+.red { background-color: red; }
+div.t1 p { background-color: lime; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-42.html" title="::after pseudo-element">
+ <link rel="next" href="css3-modsel-43b.html" title="Descendant combinator">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div class="t1">
+ <p class="red">This paragraph should have a green background</p>
+ <table>
+ <tbody>
+ <tr>
+ <td>
+ <p class="red">This paragraph should have a green background</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <table>
+ <tbody>
+ <tr>
+ <td>
+ <p class="white">This paragraph should be unstyled.</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/043b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/043b-expected.txt
new file mode 100644
index 0000000..9fce07c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/043b-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x155
+ RenderBlock {HTML} at (0,0) size 800x155
+ RenderBody {BODY} at (8,14) size 784x133
+ RenderBlock {DIV} at (0,0) size 784x82
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 236x17
+ text run at (0,0) width 236: "This paragraph should be unstyled"
+ RenderTable {TABLE} at (0,31) size 242x51
+ RenderTableSection {TBODY} at (0,0) size 0x51
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 238x47 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {P} at (1,15) size 236x17
+ RenderText {TEXT} at (0,0) size 236x17
+ text run at (0,0) width 236: "This paragraph should be unstyled"
+ RenderTable {TABLE} at (0,82) size 336x51
+ RenderTableSection {TBODY} at (0,0) size 0x51
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 332x47 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {P} at (1,15) size 330x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 330x17
+ text run at (0,0) width 330: "This paragraph should have a green background"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/043b.html b/third_party/WebKit/LayoutTests/fast/selectors/043b.html
new file mode 100644
index 0000000..f20e9e6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/043b.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Descendant combinator</title>
+ <style type="text/css">.white { background-color: transparent ! important; }
+.green { background-color: lime; }
+div.t1 p { background-color: red; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-43.html" title="Descendant combinator">
+ <link rel="next" href="css3-modsel-44.html" title="Child combinator">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div class="t1">
+ <p class="white">This paragraph should be unstyled</p>
+ <table>
+ <tbody>
+ <tr>
+ <td>
+ <p class="white">This paragraph should be unstyled</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <table>
+ <tbody>
+ <tr>
+ <td>
+ <p class="green">This paragraph should have a green background</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/044-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/044-expected.txt
new file mode 100644
index 0000000..0cec56a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/044-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x135
+ RenderBlock {HTML} at (0,0) size 800x135
+ RenderBody {BODY} at (8,14) size 784x113
+ RenderBlock {DIV} at (0,0) size 784x48
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 330x17
+ text run at (0,0) width 330: "This paragraph should have a green background"
+ RenderBlock {DIV} at (0,31) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 330x17
+ text run at (0,0) width 330: "This paragraph should have a green background"
+ RenderTable {TABLE} at (0,62) size 247x51
+ RenderTableSection {TBODY} at (0,0) size 0x51
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 243x47 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {P} at (1,15) size 241x17
+ RenderText {TEXT} at (0,0) size 241x17
+ text run at (0,0) width 241: "This paragraph should be unstyled."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/044.html b/third_party/WebKit/LayoutTests/fast/selectors/044.html
new file mode 100644
index 0000000..81592bd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/044.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Child combinator</title>
+ <style type="text/css">.white { backround-image: transparent ! important; }
+.red { background-color: red; }
+div > p.test { background-color: lime; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-43b.html" title="Descendant combinator">
+ <link rel="next" href="css3-modsel-44b.html" title="Child combinator">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div>
+ <p class="red test">This paragraph should have a green background</p>
+ <div>
+ <p class="red test">This paragraph should have a green background</p>
+ </div>
+ </div>
+ <table>
+ <tbody>
+ <tr>
+ <td>
+ <p class="white test">This paragraph should be unstyled.</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/044b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/044b-expected.txt
new file mode 100644
index 0000000..5b218fe0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/044b-expected.txt
@@ -0,0 +1,20 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x135
+ RenderBlock {HTML} at (0,0) size 800x135
+ RenderBody {BODY} at (8,14) size 784x113
+ RenderBlock {DIV} at (0,0) size 784x48
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 241x17
+ text run at (0,0) width 241: "This paragraph should be unstyled."
+ RenderBlock {DIV} at (0,31) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 241x17
+ text run at (0,0) width 241: "This paragraph should be unstyled."
+ RenderTable {TABLE} at (0,62) size 341x51
+ RenderTableSection {TBODY} at (0,0) size 0x51
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 337x47 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {P} at (1,15) size 335x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 335x17
+ text run at (0,0) width 335: "This paragraph should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/044b.html b/third_party/WebKit/LayoutTests/fast/selectors/044b.html
new file mode 100644
index 0000000..2a7b676
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/044b.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Child combinator</title>
+ <style type="text/css">.white { background-color: transparent ! important; }
+.green { background-color: lime; }
+div > p.test { background-color: red; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-44.html" title="Child combinator">
+ <link rel="next" href="css3-modsel-44c.html" title="Child combinator and classes">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div>
+ <p class="white test">This paragraph should be unstyled.</p>
+ <div>
+ <p class="white test">This paragraph should be unstyled.</p>
+ </div>
+ </div>
+ <table>
+ <tbody>
+ <tr>
+ <td>
+ <p class="green test">This paragraph should have a green background.</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/044c-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/044c-expected.txt
new file mode 100644
index 0000000..632e81b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/044c-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x50
+ RenderBlock {HTML} at (0,0) size 800x50
+ RenderBody {BODY} at (8,8) size 784x34
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 167x17
+ text run at (0,0) width 167: "This should be unstyled."
+ RenderBlock {DIV} at (0,17) size 784x17 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 261x17
+ text run at (0,0) width 261: "This should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/044c.html b/third_party/WebKit/LayoutTests/fast/selectors/044c.html
new file mode 100644
index 0000000..e959d35
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/044c.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Child combinator and classes</title>
+ <style type="text/css">
+ .fail > div { background: red; }
+ .control { background: green; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-44b.html" title="Child combinator">
+ <link rel="next" href="css3-modsel-44d.html" title="Child combinatior and IDs">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div> This should be unstyled. </div>
+ <div class="control"> This should have a green background. </div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/044d-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/044d-expected.txt
new file mode 100644
index 0000000..4af6cbd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/044d-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x70
+ RenderBlock {HTML} at (0,0) size 800x70
+ RenderBody {BODY} at (8,8) size 784x48
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 167x17
+ text run at (0,0) width 167: "This should be unstyled."
+ RenderBlock {P} at (0,31) size 784x17 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 261x17
+ text run at (0,0) width 261: "This should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/044d.html b/third_party/WebKit/LayoutTests/fast/selectors/044d.html
new file mode 100644
index 0000000..85f1bad
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/044d.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Child combinatior and IDs</title>
+ <style type="text/css">
+ #fail > div { background: red; }
+ p { background: green; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-44c.html" title="Child combinator and classes">
+ <link rel="next" href="css3-modsel-45.html" title="Direct adjacent combinator">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div> This should be unstyled. </div>
+ <p> This should have a green background. </p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/045-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/045-expected.txt
new file mode 100644
index 0000000..7633575
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/045-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x168
+ RenderBlock {HTML} at (0,0) size 800x168
+ RenderBody {BODY} at (8,14) size 784x140
+ RenderBlock {DIV} at (0,0) size 784x140
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 241x17
+ text run at (0,0) width 241: "This paragraph should be unstyled."
+ RenderBlock {P} at (0,31) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "But this one should have a green background."
+ RenderBlock {P} at (0,62) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 352x17
+ text run at (0,0) width 352: "And this one should also have a green background."
+ RenderBlock {ADDRESS} at (0,93) size 784x16
+ RenderText {TEXT} at (0,0) size 438x16
+ text run at (0,0) width 438: "This address is only here to fill some space between two paragraphs."
+ RenderBlock {P} at (0,123) size 784x17
+ RenderText {TEXT} at (0,0) size 241x17
+ text run at (0,0) width 241: "This paragraph should be unstyled."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/045.html b/third_party/WebKit/LayoutTests/fast/selectors/045.html
new file mode 100644
index 0000000..a6f554d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/045.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Direct adjacent combinator</title>
+ <style type="text/css">.red { background-color : red }
+div.stub > p + p { background-color : lime }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-44d.html" title="Child combinatior and IDs">
+ <link rel="next" href="css3-modsel-45b.html" title="Direct adjacent combinator">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div class="stub">
+ <p>This paragraph should be unstyled.</p>
+ <p class="red">But this one should have a green background.</p>
+ <p class="red">And this one should also have a green background.</p>
+ <address>This address is only here to fill some space between two paragraphs.</address>
+ <p>This paragraph should be unstyled.</p>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/045b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/045b-expected.txt
new file mode 100644
index 0000000..d09ddde
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/045b-expected.txt
@@ -0,0 +1,21 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x168
+ RenderBlock {HTML} at (0,0) size 800x168
+ RenderBody {BODY} at (8,14) size 784x140
+ RenderBlock {DIV} at (0,0) size 784x140
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 335x17
+ text run at (0,0) width 335: "This paragraph should have a green background."
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 220x17
+ text run at (0,0) width 220: "But this one should be unstyled."
+ RenderBlock {P} at (0,62) size 784x17
+ RenderText {TEXT} at (0,0) size 258x17
+ text run at (0,0) width 258: "And this one should also be unstyled."
+ RenderBlock {ADDRESS} at (0,93) size 784x16 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 679x16
+ text run at (0,0) width 679: "This address is only here to fill some space between two paragraphs and should have a green background."
+ RenderBlock {P} at (0,123) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 362x17
+ text run at (0,0) width 362: "This paragraph should have a green background too."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/045b.html b/third_party/WebKit/LayoutTests/fast/selectors/045b.html
new file mode 100644
index 0000000..619eef5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/045b.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Direct adjacent combinator</title>
+ <style type="text/css">.green { background-color: lime; }
+.white { background-color: transparent ! important; }
+div.stub > p + p { background-color: red; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-45.html" title="Direct adjacent combinator">
+ <link rel="next" href="css3-modsel-45c.html" title="Direct adjacent combinator and classes">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div class="stub">
+ <p class="green">This paragraph should have a green background.</p>
+ <p class="white">But this one should be unstyled.</p>
+ <p class="white">And this one should also be unstyled.</p>
+ <address class="green">This address is only here to fill some space between two paragraphs and should have a green background.</address>
+ <p class="green">This paragraph should have a green background too.</p>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/045c-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/045c-expected.txt
new file mode 100644
index 0000000..632e81b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/045c-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x50
+ RenderBlock {HTML} at (0,0) size 800x50
+ RenderBody {BODY} at (8,8) size 784x34
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 167x17
+ text run at (0,0) width 167: "This should be unstyled."
+ RenderBlock {DIV} at (0,17) size 784x17 [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 261x17
+ text run at (0,0) width 261: "This should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/045c.html b/third_party/WebKit/LayoutTests/fast/selectors/045c.html
new file mode 100644
index 0000000..7b5ec90
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/045c.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Direct adjacent combinator and classes</title>
+ <style type="text/css">
+ .fail + div { background: red; }
+ .control { background: green; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-45b.html" title="Direct adjacent combinator">
+ <link rel="next" href="css3-modsel-46.html" title="Indirect adjacent combinator">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div> This should be unstyled. </div>
+ <div class="control"> This should have a green background. </div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/054-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/054-expected.txt
new file mode 100644
index 0000000..e69cdc35
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/054-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x107
+ RenderBlock {HTML} at (0,0) size 800x107
+ RenderBody {BODY} at (8,14) size 784x79
+ RenderBlock {DIV} at (0,0) size 784x79
+ RenderBlock {P} at (0,0) size 784x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderBlock {P} at (0,31) size 784x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderBlock {P} at (0,62) size 784x17 [color=#FF0000]
+ RenderInline {SPAN} at (0,0) size 314x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/054.html b/third_party/WebKit/LayoutTests/fast/selectors/054.html
new file mode 100644
index 0000000..8cfd431
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/054.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED substring matching attribute selector on beginning</title>
+ <style type="text/css">div.stub > * { color : red }
+div.stub *:not([title^="si on"]) { color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-46b.html" title="Indirect adjacent combinator">
+ <link rel="next" href="css3-modsel-55.html" title="NEGATED substring matching attribute selector on end">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<div class="stub">
+<p>This paragraph should be in green characters.</p>
+<p title="on chante?">This paragraph should be in green characters.</p>
+<p title="si on chantait">
+ <span title="si il chantait">This paragraph should be in green characters.</span>
+</p>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/056-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/056-expected.txt
new file mode 100644
index 0000000..e69cdc35
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/056-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x107
+ RenderBlock {HTML} at (0,0) size 800x107
+ RenderBody {BODY} at (8,14) size 784x79
+ RenderBlock {DIV} at (0,0) size 784x79
+ RenderBlock {P} at (0,0) size 784x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderBlock {P} at (0,31) size 784x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderBlock {P} at (0,62) size 784x17 [color=#FF0000]
+ RenderInline {SPAN} at (0,0) size 314x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/056.html b/third_party/WebKit/LayoutTests/fast/selectors/056.html
new file mode 100644
index 0000000..d656bee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/056.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED substring matching attribute selector on middle</title>
+ <style type="text/css">div.stub > * { color : red }
+div.stub *:not([title*=" on"]) { color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-55.html" title="NEGATED substring matching attribute selector on end">
+ <link rel="next" href="css3-modsel-58.html" title="Default attribute value and negation pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<div class="stub">
+<p>This paragraph should be in green characters.</p>
+<p title="on chante?">This paragraph should be in green characters.</p>
+<p title="si on chantait">
+ <span title="si il chante">This paragraph should be in green characters.</span>
+</p>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/058-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/058-expected.txt
new file mode 100644
index 0000000..e58fa43
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/058-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {FORM} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 332x17
+ text run at (0,0) width 332: "The paragraph should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/058.html b/third_party/WebKit/LayoutTests/fast/selectors/058.html
new file mode 100644
index 0000000..f585523
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/058.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Default attribute value and negation pseudo-class</title>
+ <style type="text/css">form { background-color : red }
+form:not([method]) { background-color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-56.html" title="NEGATED substring matching attribute selector on middle">
+ <link rel="next" href="css3-modsel-59.html" title="NEGATED class selector">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body> <!-- 'method' is an attribute with a default value in the XHTML DTD -->
+ <form action="http://www.example.org/foo.cgi">
+ <p>The paragraph should have a green background.</p>
+ </form>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/059-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/059-expected.txt
new file mode 100644
index 0000000..e69cdc35
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/059-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x107
+ RenderBlock {HTML} at (0,0) size 800x107
+ RenderBody {BODY} at (8,14) size 784x79
+ RenderBlock {DIV} at (0,0) size 784x79
+ RenderBlock {P} at (0,0) size 784x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderBlock {P} at (0,31) size 784x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderBlock {P} at (0,62) size 784x17 [color=#FF0000]
+ RenderInline {SPAN} at (0,0) size 314x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/059.html b/third_party/WebKit/LayoutTests/fast/selectors/059.html
new file mode 100644
index 0000000..1502198
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/059.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED class selector</title>
+ <style type="text/css">div.stub > * { color : red }
+div.stub *:not(.foo) { color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-58.html" title="Default attribute value and negation pseudo-class">
+ <link rel="next" href="css3-modsel-60.html" title="NEGATED ID selector">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<div class="stub">
+<p>This paragraph should be in green characters.</p>
+<p class="bar foofoo tut">This paragraph should be in green characters.</p>
+<p class="bar foo tut">
+ <span class="tut foo2">This paragraph should be in green characters.</span>
+</p>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/060-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/060-expected.txt
new file mode 100644
index 0000000..e69cdc35
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/060-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x107
+ RenderBlock {HTML} at (0,0) size 800x107
+ RenderBody {BODY} at (8,14) size 784x79
+ RenderBlock {DIV} at (0,0) size 784x79
+ RenderBlock {P} at (0,0) size 784x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderBlock {P} at (0,31) size 784x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderBlock {P} at (0,62) size 784x17 [color=#FF0000]
+ RenderInline {SPAN} at (0,0) size 314x17 [color=#00FF00]
+ RenderText {TEXT} at (0,0) size 314x17
+ text run at (0,0) width 314: "This paragraph should be in green characters."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/060.html b/third_party/WebKit/LayoutTests/fast/selectors/060.html
new file mode 100644
index 0000000..fdd0cf3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/060.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED ID selector</title>
+ <style type="text/css">div.stub > * { color : red }
+div.stub *:not(#foo) { color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-59.html" title="NEGATED class selector">
+ <link rel="next" href="css3-modsel-61.html" title="NEGATED :link pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<div class="stub">
+<p>This paragraph should be in green characters.</p>
+<p id="foo2">This paragraph should be in green characters.</p>
+<p id="foo">
+ <span>This paragraph should be in green characters.</span>
+</p>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/061-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/061-expected.txt
new file mode 100644
index 0000000..ade02a5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/061-expected.txt
@@ -0,0 +1,12 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x50
+ RenderBlock {HTML} at (0,0) size 800x50
+ RenderBody {BODY} at (8,8) size 784x34
+ RenderBlock {DIV} at (0,0) size 784x34
+ RenderInline {A} at (0,0) size 307x17 [color=#0000EE] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 307x17
+ text run at (0,0) width 307: "This anchor should have a green background"
+ RenderText {TEXT} at (307,0) size 776x34
+ text run at (307,0) width 469: " (Note: You must have visited http://www.w3.org/ for this test to be"
+ text run at (0,17) width 42: "valid.)"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/061.html b/third_party/WebKit/LayoutTests/fast/selectors/061.html
new file mode 100644
index 0000000..470d70b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/061.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :link pseudo-class</title>
+ <style type="text/css">div.stub > * { background-color : red }
+div.stub *:not(:link) { background-color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-60.html" title="NEGATED ID selector">
+ <link rel="next" href="css3-modsel-62.html" title="NEGATED :visited pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<div class="stub">
+<a href="http://www.w3.org/">This anchor should have a green background</a>
+(Note: You must have visited http://www.w3.org/ for this test to be valid.)
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/062-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/062-expected.txt
new file mode 100644
index 0000000..141bd93
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/062-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderInline {A} at (0,0) size 307x17 [color=#0000EE] [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 307x17
+ text run at (0,0) width 307: "This anchor should have a green background"
+ RenderText {TEXT} at (307,0) size 160x17
+ text run at (307,0) width 160: " (Don't follow this link.)"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/062.html b/third_party/WebKit/LayoutTests/fast/selectors/062.html
new file mode 100644
index 0000000..da4752a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/062.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :visited pseudo-class</title>
+ <style type="text/css">div.stub > * { background-color : red }
+div.stub *:not(:visited) { background-color : lime }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-61.html" title="NEGATED :link pseudo-class">
+ <link rel="next" href="css3-modsel-63.html" title="NEGATED :hover pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<div class="stub">
+<a href="http://unvisited.example.org/css3-modsel-62/">This anchor should have a green background</a>
+(Don&#39;t follow this link.)
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/063-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/063-expected.txt
new file mode 100644
index 0000000..c275caf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/063-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x76
+ RenderBlock {HTML} at (0,0) size 800x76
+ RenderBody {BODY} at (8,14) size 784x48
+ RenderBlock {DIV} at (0,0) size 784x48
+ RenderBlock {P} at (0,0) size 784x17 [color=#00FF00]
+ RenderInline {SPAN} at (0,0) size 535x17 [color=#000000]
+ RenderText {TEXT} at (0,0) size 535x17
+ text run at (0,0) width 535: "The color of this text should be green when the pointing device hovers over it."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17 [color=#00FF00]
+ RenderInline {A} at (0,0) size 535x17 [color=#000000]
+ RenderText {TEXT} at (0,0) size 535x17
+ text run at (0,0) width 535: "The color of this text should be green when the pointing device hovers over it."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/063.html b/third_party/WebKit/LayoutTests/fast/selectors/063.html
new file mode 100644
index 0000000..130ddab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/063.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :hover pseudo-class</title>
+ <style type="text/css">div.stub * { color: lime; text-decoration: none; }
+div.stub > * > *:not(:hover) { color: black }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-62.html" title="NEGATED :visited pseudo-class">
+ <link rel="next" href="css3-modsel-64.html" title="NEGATED :active pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div class="stub">
+ <p> <span>The color of this text should be green when the pointing device hovers over it.</span> </p>
+ <p> <a href="http://dummy.example.org/dummy">The color of this text should be green when the pointing device hovers over it.</a> </p>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/064-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/064-expected.txt
new file mode 100644
index 0000000..75b2031
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/064-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x84
+ RenderBlock {HTML} at (0,0) size 800x84
+ RenderBody {BODY} at (8,14) size 784x56
+ RenderBlock {DIV} at (0,0) size 784x56
+ RenderBlock {P} at (0,0) size 784x17 [color=#00FF00]
+ RenderInline {A} at (0,0) size 305x17 [color=#000000]
+ RenderText {TEXT} at (0,0) size 305x17
+ text run at (0,0) width 305: "This text should turn green while it is active."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x25 [color=#00FF00]
+ RenderBlock {BUTTON} at (0,0) size 313x25 [color=#000000] [bgcolor=#C0C0C0]
+ RenderText {TEXT} at (4,4) size 305x17
+ text run at (4,4) width 305: "This text should turn green while it is active."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/064.html b/third_party/WebKit/LayoutTests/fast/selectors/064.html
new file mode 100644
index 0000000..131ce25
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/064.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :active pseudo-class</title>
+ <style type="text/css">div.stub * { color : lime }
+div.stub > * > *:not(:active) { color : black }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-63.html" title="NEGATED :hover pseudo-class">
+ <link rel="next" href="css3-modsel-65.html" title="NEGATED :focus pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div class="stub">
+ <p> <a href="http://dummy.example.org/dummy">This text should turn green while it is active.</a> </p>
+ <p> <button>This text should turn green while it is active.</button> </p>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/065-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/065-expected.txt
new file mode 100644
index 0000000..b457b6c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/065-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 193x17
+ text run at (0,0) width 193: "The background color of all "
+ RenderInline {A} at (0,0) size 54x17 [color=#0000EE]
+ RenderText {TEXT} at (193,0) size 54x17
+ text run at (193,0) width 54: "anchors"
+ RenderText {TEXT} at (247,0) size 112x17
+ text run at (247,0) width 4: " "
+ text run at (251,0) width 108: "should become "
+ RenderInline {A} at (0,0) size 39x17 [color=#0000EE]
+ RenderText {TEXT} at (359,0) size 39x17
+ text run at (359,0) width 39: "green"
+ RenderText {TEXT} at (398,0) size 140x17
+ text run at (398,0) width 140: " when they have the "
+ RenderInline {A} at (0,0) size 37x17 [color=#0000EE]
+ RenderText {TEXT} at (538,0) size 37x17
+ text run at (538,0) width 37: "focus"
+ RenderText {TEXT} at (575,0) size 5x17
+ text run at (575,0) width 5: "."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/065.html b/third_party/WebKit/LayoutTests/fast/selectors/065.html
new file mode 100644
index 0000000..9b3feaf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/065.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :focus pseudo-class</title>
+ <style type="text/css">a:not(:focus) { background-color: transparent; }
+a { background-color: lime; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-64.html" title="NEGATED :active pseudo-class">
+ <link rel="next" href="css3-modsel-66.html" title="NEGATED :target pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>The background color of all <a href="#foo">anchors</a>
+ should become <a href="#foo"> green</a> when they have the
+ <a href="#foo">focus</a>.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/066-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/066-expected.txt
new file mode 100644
index 0000000..709d36a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/066-expected.txt
@@ -0,0 +1,39 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x175
+ RenderBlock {HTML} at (0,0) size 800x175
+ RenderBody {BODY} at (8,14) size 784x147
+ RenderBlock {P} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 762x34
+ text run at (0,0) width 245: "This paragraph should be unstyled. "
+ text run at (245,0) width 492: "The background of the following paragraph should become green when "
+ text run at (737,0) width 25: "you"
+ text run at (0,17) width 46: "follow "
+ RenderInline {A} at (0,0) size 55x17 [color=#0000EE]
+ RenderText {TEXT} at (46,17) size 55x17
+ text run at (46,17) width 55: "this link"
+ RenderText {TEXT} at (101,17) size 5x17
+ text run at (101,17) width 5: "."
+ RenderBlock {P} at (0,48) size 784x51
+ RenderText {TEXT} at (0,0) size 749x34
+ text run at (0,0) width 299: "This paragraph should initially be unstyled. "
+ text run at (299,0) width 450: "It should become green when you select the link above. When you"
+ text run at (0,17) width 44: "select "
+ RenderInline {A} at (0,0) size 55x17 [color=#0000EE]
+ RenderText {TEXT} at (44,17) size 55x17
+ text run at (44,17) width 55: "this link"
+ RenderText {TEXT} at (99,17) size 750x34
+ text run at (99,17) width 298: ", it should return to being unstyled and the "
+ text run at (397,17) width 353: "background of the paragraph below should become"
+ text run at (0,34) width 44: "green."
+ RenderBlock {P} at (0,113) size 784x34
+ RenderText {TEXT} at (0,0) size 749x34
+ text run at (0,0) width 299: "This paragraph should initially be unstyled. "
+ text run at (299,0) width 450: "It should become green when you select the link above. When you"
+ text run at (0,17) width 46: "follow "
+ RenderInline {A} at (0,0) size 55x17 [color=#0000EE]
+ RenderText {TEXT} at (46,17) size 55x17
+ text run at (46,17) width 55: "this link"
+ RenderText {TEXT} at (101,17) size 396x17
+ text run at (101,17) width 156: ", the three paragraphs "
+ text run at (257,17) width 240: "should all return to being unstyled."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/066.html b/third_party/WebKit/LayoutTests/fast/selectors/066.html
new file mode 100644
index 0000000..a0d70fd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/066.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :target pseudo-class</title>
+ <style type="text/css">p { background-color: lime; }
+p:not(:target) { background-color: transparent; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-65.html" title="NEGATED :focus pseudo-class">
+ <link rel="next" href="css3-modsel-66b.html" title="NEGATED :target pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p id="first">This paragraph should be unstyled.
+ The background of the following paragraph should become green when
+ you follow <a href="#second">this link</a>.</p>
+<p id="second">This paragraph should initially be unstyled.
+ It should become green when you select the link above. When you select
+ <a href="#third">this link</a>, it should return to being unstyled and the
+ background of the paragraph below should become green.</p>
+<p id="third">This paragraph should initially be unstyled.
+ It should become green when you select the link above. When you follow
+ <a href="#missing">this link</a>, the three paragraphs
+ should all return to being unstyled.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/066b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/066b-expected.txt
new file mode 100644
index 0000000..22bef27
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/066b-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 222x17
+ text run at (0,0) width 222: "This paragraph should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/066b.html b/third_party/WebKit/LayoutTests/fast/selectors/066b.html
new file mode 100644
index 0000000..9c8a6ef
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/066b.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :target pseudo-class</title>
+ <style type="text/css">p { background-color: red; }
+p:not(:target) { background-color: lime; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-66.html" title="NEGATED :target pseudo-class">
+ <link rel="next" href="css3-modsel-67.html" title="NEGATED :lang() pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>This paragraph should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/072-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/072-expected.txt
new file mode 100644
index 0000000..9b6cc51
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/072-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 594x17
+ text run at (0,0) width 594: "This paragraph should have a green background and there should be no red anywhere."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/072.html b/third_party/WebKit/LayoutTests/fast/selectors/072.html
new file mode 100644
index 0000000..74d681b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/072.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :root pseudo-class</title>
+ <style type="text/css">p:not(:root) { background-color: lime; }
+div * { background-color: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-70.html" title="NEGATED :checked pseudo-class">
+ <link rel="next" href="css3-modsel-72b.html" title="NEGATED :root pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div>
+ <p>This paragraph should have a green background and there should be no red anywhere.</p>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/072b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/072b-expected.txt
new file mode 100644
index 0000000..9b6cc51
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/072b-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 594x17
+ text run at (0,0) width 594: "This paragraph should have a green background and there should be no red anywhere."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/072b.html b/third_party/WebKit/LayoutTests/fast/selectors/072b.html
new file mode 100644
index 0000000..0fdd492
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/072b.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :root pseudo-class</title>
+ <style type="text/css">html:not(:root), test:not(:root) { background-color: red; }
+p { background-color: lime; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-72.html" title="NEGATED :root pseudo-class">
+ <link rel="next" href="css3-modsel-73.html" title="NEGATED :nth-child() pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div>
+ <p>This paragraph should have a green background and there should be no red anywhere.</p>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/077-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/077-expected.txt
new file mode 100644
index 0000000..410d0cd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/077-expected.txt
@@ -0,0 +1,46 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x126
+ RenderBlock {HTML} at (0,0) size 800x126
+ RenderBody {BODY} at (8,8) size 784x104
+ RenderBlock {DIV} at (0,0) size 784x73
+ RenderTable {TABLE} at (302,0) size 179x73
+ RenderTableSection {TBODY} at (1,1) size 0x71
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 27x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "1.1"
+ RenderTableCell {TD} at (31,2) size 71x21 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (104,2) size 71x21 [bgcolor=#00FF00] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,25) size 27x21 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "2.1"
+ RenderTableCell {TD} at (31,25) size 71x21 [bgcolor=#00FF00] [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (104,25) size 71x21 [bgcolor=#00FF00] [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,48) size 27x21 [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "3.1"
+ RenderTableCell {TD} at (31,48) size 71x21 [bgcolor=#00FF00] [r=2 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (104,48) size 71x21 [bgcolor=#00FF00] [r=2 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderBlock {P} at (0,87) size 784x17
+ RenderText {TEXT} at (0,0) size 107x17
+ text run at (0,0) width 107: "This paragraph "
+ RenderInline {SPAN} at (0,0) size 67x17
+ RenderText {TEXT} at (107,0) size 67x17
+ text run at (107,0) width 67: "should be"
+ RenderText {TEXT} at (174,0) size 67x17
+ text run at (174,0) width 67: " unstyled."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/077.html b/third_party/WebKit/LayoutTests/fast/selectors/077.html
new file mode 100644
index 0000000..02edfa9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/077.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :first-child pseudo-class</title>
+ <style type="text/css">.red { background-color : red }
+.t1 td:not(:first-child) { background-color : lime }
+p > *:not(:first-child) { background-color : lime }
+table.t1 td { border : thin black solid }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-76b.html" title="NEGATED :nth-last-of-type() pseudo-class">
+ <link rel="next" href="css3-modsel-77b.html" title="NEGATED :first-child pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div align="center">
+ <table class="t1" border="1">
+ <tr>
+ <td>1.1</td>
+ <td class="red">green cell</td>
+ <td class="red">green cell</td>
+ </tr>
+ <tr>
+ <td>2.1</td>
+ <td class="red">green cell</td>
+ <td class="red">green cell</td>
+ </tr>
+ <tr>
+ <td>3.1</td>
+ <td class="red">green cell</td>
+ <td class="red">green cell</td>
+ </tr>
+ </table>
+ </div>
+ <p>This paragraph <span>should be</span> unstyled.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/077b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/077b-expected.txt
new file mode 100644
index 0000000..410d0cd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/077b-expected.txt
@@ -0,0 +1,46 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x126
+ RenderBlock {HTML} at (0,0) size 800x126
+ RenderBody {BODY} at (8,8) size 784x104
+ RenderBlock {DIV} at (0,0) size 784x73
+ RenderTable {TABLE} at (302,0) size 179x73
+ RenderTableSection {TBODY} at (1,1) size 0x71
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 27x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "1.1"
+ RenderTableCell {TD} at (31,2) size 71x21 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (104,2) size 71x21 [bgcolor=#00FF00] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,25) size 27x21 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "2.1"
+ RenderTableCell {TD} at (31,25) size 71x21 [bgcolor=#00FF00] [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (104,25) size 71x21 [bgcolor=#00FF00] [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,48) size 27x21 [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "3.1"
+ RenderTableCell {TD} at (31,48) size 71x21 [bgcolor=#00FF00] [r=2 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (104,48) size 71x21 [bgcolor=#00FF00] [r=2 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderBlock {P} at (0,87) size 784x17
+ RenderText {TEXT} at (0,0) size 107x17
+ text run at (0,0) width 107: "This paragraph "
+ RenderInline {SPAN} at (0,0) size 67x17
+ RenderText {TEXT} at (107,0) size 67x17
+ text run at (107,0) width 67: "should be"
+ RenderText {TEXT} at (174,0) size 67x17
+ text run at (174,0) width 67: " unstyled."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/077b.html b/third_party/WebKit/LayoutTests/fast/selectors/077b.html
new file mode 100644
index 0000000..3711f2a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/077b.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :first-child pseudo-class</title>
+ <style type="text/css">.green { background-color : lime ! important }
+.t1 td:not(:first-child) { background-color : red }
+p > *:not(:first-child) { background-color : red }
+table.t1 td { border : thin black solid }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-77.html" title="NEGATED :first-child pseudo-class">
+ <link rel="next" href="css3-modsel-78.html" title="NEGATED :last-child pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div align="center">
+ <table class="t1" border="1">
+ <tr>
+ <td>1.1</td>
+ <td class="green">green cell</td>
+ <td class="green">green cell</td>
+ </tr>
+ <tr>
+ <td>2.1</td>
+ <td class="green">green cell</td>
+ <td class="green">green cell</td>
+ </tr>
+ <tr>
+ <td>3.1</td>
+ <td class="green">green cell</td>
+ <td class="green">green cell</td>
+ </tr>
+ </table>
+ </div>
+ <p>This paragraph <span>should be</span> unstyled.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/078-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/078-expected.txt
new file mode 100644
index 0000000..6c83796
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/078-expected.txt
@@ -0,0 +1,46 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x126
+ RenderBlock {HTML} at (0,0) size 800x126
+ RenderBody {BODY} at (8,8) size 784x104
+ RenderBlock {DIV} at (0,0) size 784x73
+ RenderTable {TABLE} at (302,0) size 179x73
+ RenderTableSection {TBODY} at (1,1) size 0x71
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 71x21 [bgcolor=#00FF00] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (75,2) size 71x21 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (148,2) size 27x21 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "1.3"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,25) size 71x21 [bgcolor=#00FF00] [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (75,25) size 71x21 [bgcolor=#00FF00] [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (148,25) size 27x21 [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "2.3"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,48) size 71x21 [bgcolor=#00FF00] [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (75,48) size 71x21 [bgcolor=#00FF00] [r=2 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (148,48) size 27x21 [r=2 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "3.3"
+ RenderBlock {P} at (0,87) size 784x17
+ RenderText {TEXT} at (0,0) size 33x17
+ text run at (0,0) width 33: "This "
+ RenderInline {SPAN} at (0,0) size 120x17
+ RenderText {TEXT} at (33,0) size 120x17
+ text run at (33,0) width 120: "paragraph should"
+ RenderText {TEXT} at (153,0) size 88x17
+ text run at (153,0) width 88: " be unstyled."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/078.html b/third_party/WebKit/LayoutTests/fast/selectors/078.html
new file mode 100644
index 0000000..308662b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/078.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :last-child pseudo-class</title>
+ <style type="text/css">.red { background-color : red }
+.t1 td:not(:last-child) { background-color : lime }
+p > *:not(:last-child) { background-color : lime }
+table.t1 td { border : thin black solid }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-77b.html" title="NEGATED :first-child pseudo-class">
+ <link rel="next" href="css3-modsel-78b.html" title="NEGATED :last-child pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div align="center">
+ <table class="t1" border="1">
+ <tr>
+ <td class="red">green cell</td>
+ <td class="red">green cell</td>
+ <td>1.3</td>
+ </tr>
+ <tr>
+ <td class="red">green cell</td>
+ <td class="red">green cell</td>
+ <td>2.3</td>
+ </tr>
+ <tr>
+ <td class="red">green cell</td>
+ <td class="red">green cell</td>
+ <td>3.3</td>
+ </tr>
+ </table>
+ </div>
+ <p>This <span>paragraph should</span> be unstyled.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/078b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/078b-expected.txt
new file mode 100644
index 0000000..6c83796
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/078b-expected.txt
@@ -0,0 +1,46 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x126
+ RenderBlock {HTML} at (0,0) size 800x126
+ RenderBody {BODY} at (8,8) size 784x104
+ RenderBlock {DIV} at (0,0) size 784x73
+ RenderTable {TABLE} at (302,0) size 179x73
+ RenderTableSection {TBODY} at (1,1) size 0x71
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 71x21 [bgcolor=#00FF00] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (75,2) size 71x21 [bgcolor=#00FF00] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (148,2) size 27x21 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "1.3"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,25) size 71x21 [bgcolor=#00FF00] [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (75,25) size 71x21 [bgcolor=#00FF00] [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (148,25) size 27x21 [r=1 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "2.3"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,48) size 71x21 [bgcolor=#00FF00] [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (75,48) size 71x21 [bgcolor=#00FF00] [r=2 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x17
+ text run at (2,2) width 67: "green cell"
+ RenderTableCell {TD} at (148,48) size 27x21 [r=2 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 23x17
+ text run at (2,2) width 23: "3.3"
+ RenderBlock {P} at (0,87) size 784x17
+ RenderText {TEXT} at (0,0) size 33x17
+ text run at (0,0) width 33: "This "
+ RenderInline {SPAN} at (0,0) size 120x17
+ RenderText {TEXT} at (33,0) size 120x17
+ text run at (33,0) width 120: "paragraph should"
+ RenderText {TEXT} at (153,0) size 88x17
+ text run at (153,0) width 88: " be unstyled."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/078b.html b/third_party/WebKit/LayoutTests/fast/selectors/078b.html
new file mode 100644
index 0000000..cadb07f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/078b.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>NEGATED :last-child pseudo-class</title>
+ <style type="text/css">.green { background-color : lime ! important }
+.t1 td:not(:last-child) { background-color : red }
+p > *:not(:last-child) { background-color : red }
+table.t1 td { border : thin black solid }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-78.html" title="NEGATED :last-child pseudo-class">
+ <link rel="next" href="css3-modsel-79.html" title="NEGATED :first-of-type pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <div align="center">
+ <table class="t1" border="1">
+ <tr>
+ <td class="green">green cell</td>
+ <td class="green">green cell</td>
+ <td>1.3</td>
+ </tr>
+ <tr>
+ <td class="green">green cell</td>
+ <td class="green">green cell</td>
+ <td>2.3</td>
+ </tr>
+ <tr>
+ <td class="green">green cell</td>
+ <td class="green">green cell</td>
+ <td>3.3</td>
+ </tr>
+ </table>
+ </div>
+ <p>This <span>paragraph should</span> be unstyled.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/083-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/083-expected.txt
new file mode 100644
index 0000000..938a61c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/083-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 330x17
+ text run at (0,0) width 330: "This paragraph should have a green background"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/083.html b/third_party/WebKit/LayoutTests/fast/selectors/083.html
new file mode 100644
index 0000000..5ee6d52
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/083.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Negation pseudo-class cannot be an argument of itself</title>
+ <style type="text/css">p { background-color : lime }
+p:not(:not(p)) { background-color : red }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-82b.html" title="NEGATED :only-of-type pseudo-class">
+ <link rel="next" href="css3-modsel-84.html" title=":contains() pseudo-class">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<p>This paragraph should have a green background</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/087b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/087b-expected.txt
new file mode 100644
index 0000000..ec91349
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/087b-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x124
+ RenderBlock {HTML} at (0,0) size 800x124
+ RenderBody {BODY} at (8,14) size 784x96
+ RenderBlock {BLOCKQUOTE} at (40,0) size 704x17
+ RenderText {TEXT} at (0,0) size 198x17
+ text run at (0,0) width 198: "This text should be unstyled."
+ RenderBlock {DIV} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 198x17
+ text run at (0,0) width 198: "This text should be unstyled."
+ RenderBlock {DIV} at (0,48) size 784x17
+ RenderText {TEXT} at (0,0) size 198x17
+ text run at (0,0) width 198: "This text should be unstyled."
+ RenderBlock {P} at (0,79) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 179x17
+ text run at (0,0) width 179: "This text should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/087b.html b/third_party/WebKit/LayoutTests/fast/selectors/087b.html
new file mode 100644
index 0000000..0a72c48
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/087b.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Nondeterministic matching of direct and indirect adjacent combinators</title>
+ <style type="text/css">p { color: green ! important; }
+blockquote + div ~ p { color: red; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-87.html" title="Nondeterministic matching of direct and indirect adjacent combinators">
+ <link rel="next" href="css3-modsel-88.html" title="Nondeterministic matching of descendant and direct adjacent combinators">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<blockquote>This text should be unstyled.</blockquote>
+<div>This text should be unstyled.</div>
+<div>This text should be unstyled.</div>
+<p>This text should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/088b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/088b-expected.txt
new file mode 100644
index 0000000..a611725
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/088b-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x76
+ RenderBlock {HTML} at (0,0) size 800x76
+ RenderBody {BODY} at (8,14) size 784x48
+ RenderBlock {BLOCKQUOTE} at (40,0) size 704x17
+ RenderText {TEXT} at (0,0) size 198x17
+ text run at (0,0) width 198: "This text should be unstyled."
+ RenderBlock {DIV} at (0,31) size 784x17
+ RenderBlock {DIV} at (0,0) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 179x17
+ text run at (0,0) width 179: "This text should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/088b.html b/third_party/WebKit/LayoutTests/fast/selectors/088b.html
new file mode 100644
index 0000000..d7f56c8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/088b.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Nondeterministic matching of descendant and direct adjacent combinators</title>
+ <style type="text/css">p { color: green ! important; }
+blockquote + div p { color: red; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-88.html" title="Nondeterministic matching of descendant and direct adjacent combinators">
+ <link rel="next" href="css3-modsel-89.html" title="Simple combination of descendant and child combinators">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<blockquote>This text should be unstyled.</blockquote>
+<div>
+<div>
+<p>This text should be green.</p>
+</div>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/089-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/089-expected.txt
new file mode 100644
index 0000000..136bedf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/089-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {BLOCKQUOTE} at (40,0) size 704x17
+ RenderBlock {DIV} at (0,0) size 704x17
+ RenderBlock {DIV} at (0,0) size 704x17
+ RenderBlock {P} at (0,0) size 704x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 179x17
+ text run at (0,0) width 179: "This text should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/089.html b/third_party/WebKit/LayoutTests/fast/selectors/089.html
new file mode 100644
index 0000000..7af2dfb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/089.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Simple combination of descendant and child combinators</title>
+ <style type="text/css">p { color: red; }
+blockquote div > p { color: green; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-88b.html" title="Nondeterministic matching of descendant and direct adjacent combinators">
+ <link rel="next" href="css3-modsel-90.html" title="Simple combination of direct and indirect adjacent combinators">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<blockquote>
+<div>
+<div>
+<p>This text should be green.</p>
+</div>
+</div>
+</blockquote>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/090b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/090b-expected.txt
new file mode 100644
index 0000000..ec91349
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/090b-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x124
+ RenderBlock {HTML} at (0,0) size 800x124
+ RenderBody {BODY} at (8,14) size 784x96
+ RenderBlock {BLOCKQUOTE} at (40,0) size 704x17
+ RenderText {TEXT} at (0,0) size 198x17
+ text run at (0,0) width 198: "This text should be unstyled."
+ RenderBlock {DIV} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 198x17
+ text run at (0,0) width 198: "This text should be unstyled."
+ RenderBlock {DIV} at (0,48) size 784x17
+ RenderText {TEXT} at (0,0) size 198x17
+ text run at (0,0) width 198: "This text should be unstyled."
+ RenderBlock {P} at (0,79) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 179x17
+ text run at (0,0) width 179: "This text should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/090b.html b/third_party/WebKit/LayoutTests/fast/selectors/090b.html
new file mode 100644
index 0000000..5b469a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/090b.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Simple combination of direct and indirect adjacent combinators</title>
+ <style type="text/css">p { color: green ! important; }
+blockquote ~ div + p { color: red; }</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-90.html" title="Simple combination of direct and indirect adjacent combinators">
+ <link rel="next" href="css3-modsel-144.html" title="NEGATED :enabled:disabled pseudo-classes">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+<blockquote>This text should be unstyled.</blockquote>
+<div>This text should be unstyled.</div>
+<div>This text should be unstyled.</div>
+<p>This text should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/154-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/154-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/154-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/154.html b/third_party/WebKit/LayoutTests/fast/selectors/154.html
new file mode 100644
index 0000000..81da8cf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/154.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing</title>
+ <style type="text/css">
+ p { background: lime; }
+ p, { background: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-152.html" title=":empty pseudo-class and elements">
+ <link rel="next" href="css3-modsel-155.html" title="Syntax and parsing">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/155-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155.html b/third_party/WebKit/LayoutTests/fast/selectors/155.html
new file mode 100644
index 0000000..372e6e3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing</title>
+ <style type="text/css">
+ p { background: lime; }
+ .5cm { background: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-154.html" title="Syntax and parsing">
+ <link rel="next" href="css3-modsel-155a.html" title="Syntax and parsing">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="5cm">This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155a-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/155a-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155a-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155a.html b/third_party/WebKit/LayoutTests/fast/selectors/155a.html
new file mode 100644
index 0000000..442fc10
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155a.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing</title>
+ <style type="text/css">
+ p { background: lime; }
+ .\5cm { background: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-155.html" title="Syntax and parsing">
+ <link rel="next" href="css3-modsel-155b.html" title="Syntax and parsing">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="5cm">This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/155b-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155b-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155b.html b/third_party/WebKit/LayoutTests/fast/selectors/155b.html
new file mode 100644
index 0000000..417aeb8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155b.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing</title>
+ <style type="text/css">
+ p { background: lime; }
+ .two\ words { background: red; }
+
+ /* the "." and "~=" forms match on a space separated list of words.
+ In such a list, a word containing a space can never match, since it
+ would by definition be two words. */
+
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-155a.html" title="Syntax and parsing">
+ <link rel="next" href="css3-modsel-155c.html" title="Syntax and parsing">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="two words">This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155c-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/155c-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155c-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155c.html b/third_party/WebKit/LayoutTests/fast/selectors/155c.html
new file mode 100644
index 0000000..4b7f4d8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155c.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing</title>
+ <style type="text/css">
+ p { background: lime; }
+ .one.word { background: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-155b.html" title="Syntax and parsing">
+ <link rel="next" href="css3-modsel-155d.html" title="Syntax and parsing">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="one.word">This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155d-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/155d-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155d-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/155d.html b/third_party/WebKit/LayoutTests/fast/selectors/155d.html
new file mode 100644
index 0000000..4ac3bc9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/155d.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing</title>
+ <style type="text/css">
+ .one\.word { background: lime; }
+ p { background: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-155c.html" title="Syntax and parsing">
+ <link rel="next" href="css3-modsel-156.html" title="Syntax and parsing">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="one.word">This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/156b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/156b-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/156b-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/156b.html b/third_party/WebKit/LayoutTests/fast/selectors/156b.html
new file mode 100644
index 0000000..5a5c0c5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/156b.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing</title>
+ <style type="text/css">
+ foo & address, p { background: red; }
+ p { background: lime; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-156.html" title="Syntax and parsing">
+ <link rel="next" href="css3-modsel-156c.html" title="Syntax and parsing">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/157-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/157-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/157-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/157.html b/third_party/WebKit/LayoutTests/fast/selectors/157.html
new file mode 100644
index 0000000..575dd71
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/157.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing</title>
+ <style type="text/css">
+ p { background: lime; }
+ [*=test] { background: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-156c.html" title="Syntax and parsing">
+ <link rel="next" href="css3-modsel-158.html" title="Syntax and parsing">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="test">This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/158-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/158-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/158-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/158.html b/third_party/WebKit/LayoutTests/fast/selectors/158.html
new file mode 100644
index 0000000..978e18f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/158.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing</title>
+ <style type="text/css">
+ p { background: lime; }
+ [*|*=test] { background: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-157.html" title="Syntax and parsing">
+ <link rel="next" href="css3-modsel-159.html" title="Syntax and parsing of new pseudo-elements">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="test">This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/160-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/160-expected.txt
new file mode 100644
index 0000000..0a72a3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/160-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 290x17
+ text run at (0,0) width 290: "This line should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/160.html b/third_party/WebKit/LayoutTests/fast/selectors/160.html
new file mode 100644
index 0000000..64661b1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/160.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Syntax and parsing of unknown psuedo-classes</title>
+ <style type="text/css">
+ p { background: lime; }
+ p:subject { background: red; } /* this is not valid CSS, and if UAs
+ implemented the experimental :subject pseudo-class they should have
+ used the :-vnd-ident syntax. */
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-159.html" title="Syntax and parsing of new pseudo-elements">
+ <link rel="next" href="css3-modsel-161.html" title="Syntax and parsing of unknown psuedo-classes and pseudo-elements">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This line should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/166-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/166-expected.txt
new file mode 100644
index 0000000..774b070
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/166-expected.txt
@@ -0,0 +1,1434 @@
+layer at (0,0) size 800x3134
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x3134
+ RenderBlock {HTML} at (0,0) size 800x3134
+ RenderBody {BODY} at (8,18) size 784x3102
+ RenderBlock {H1} at (0,0) size 784x33
+ RenderText {TEXT} at (0,0) size 244x33
+ text run at (0,0) width 244: "HTML Test Index"
+ RenderBlock {P} at (0,51) size 784x17
+ RenderText {TEXT} at (0,0) size 328x17
+ text run at (0,0) width 328: "The HTML tests are available in several variants."
+ RenderBlock {H2} at (0,85) size 784x24
+ RenderText {TEXT} at (0,0) size 296x24
+ text run at (0,0) width 296: "Tests With Navigation Aids"
+ RenderBlock {P} at (0,126) size 784x51
+ RenderText {TEXT} at (0,0) size 758x51
+ text run at (0,0) width 758: "Each category of test is available using several different harnesses. The name of the harness describes how the"
+ text run at (0,17) width 742: "test markup is contained within it, for example the Xlink embed case uses an XLink with the show axis set to"
+ text run at (0,34) width 52: "embed."
+ RenderBlock {UL} at (0,191) size 784x170
+ RenderListItem {LI} at (40,0) size 744x34
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 22x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 22x17
+ text run at (0,0) width 22: "full"
+ RenderText {TEXT} at (22,0) size 9x17
+ text run at (22,0) width 9: ": "
+ RenderInline {A} at (0,0) size 99x17 [color=#0000EE]
+ RenderText {TEXT} at (31,0) size 99x17
+ text run at (31,0) width 99: "Self Contained"
+ RenderText {TEXT} at (130,0) size 9x17
+ text run at (130,0) width 9: ", "
+ RenderInline {A} at (0,0) size 118x17 [color=#0000EE]
+ RenderText {TEXT} at (139,0) size 118x17
+ text run at (139,0) width 118: "XHTML <iframe>"
+ RenderText {TEXT} at (257,0) size 9x17
+ text run at (257,0) width 9: ", "
+ RenderInline {A} at (0,0) size 117x17 [color=#0000EE]
+ RenderText {TEXT} at (266,0) size 117x17
+ text run at (266,0) width 117: "XHTML <object>"
+ RenderText {TEXT} at (383,0) size 9x17
+ text run at (383,0) width 9: ", "
+ RenderInline {A} at (0,0) size 114x17 [color=#0000EE]
+ RenderText {TEXT} at (392,0) size 114x17
+ text run at (392,0) width 114: "XHTML <frame>"
+ RenderText {TEXT} at (506,0) size 9x17
+ text run at (506,0) width 9: ", "
+ RenderInline {A} at (0,0) size 109x17 [color=#0000EE]
+ RenderText {TEXT} at (515,0) size 109x17
+ text run at (515,0) width 109: "HTML <iframe>"
+ RenderText {TEXT} at (624,0) size 9x17
+ text run at (624,0) width 9: ", "
+ RenderInline {A} at (0,0) size 672x34 [color=#0000EE]
+ RenderText {TEXT} at (633,0) size 672x34
+ text run at (633,0) width 39: "HTML"
+ text run at (0,17) width 65: "<object>"
+ RenderText {TEXT} at (65,17) size 9x17
+ text run at (65,17) width 9: ", "
+ RenderInline {A} at (0,0) size 105x17 [color=#0000EE]
+ RenderText {TEXT} at (74,17) size 105x17
+ text run at (74,17) width 105: "HTML <frame>"
+ RenderText {TEXT} at (179,17) size 9x17
+ text run at (179,17) width 9: ", "
+ RenderInline {A} at (0,0) size 89x17 [color=#0000EE]
+ RenderText {TEXT} at (188,17) size 89x17
+ text run at (188,17) width 89: "XLink embed"
+ RenderText {TEXT} at (277,17) size 9x17
+ text run at (277,17) width 9: ", "
+ RenderInline {A} at (0,0) size 82x17 [color=#0000EE]
+ RenderText {TEXT} at (286,17) size 82x17
+ text run at (286,17) width 82: "TNG Format"
+ RenderListItem {LI} at (40,34) size 744x34
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 37x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 37x17
+ text run at (0,0) width 37: "static"
+ RenderText {TEXT} at (37,0) size 9x17
+ text run at (37,0) width 9: ": "
+ RenderInline {A} at (0,0) size 99x17 [color=#0000EE]
+ RenderText {TEXT} at (46,0) size 99x17
+ text run at (46,0) width 99: "Self Contained"
+ RenderText {TEXT} at (145,0) size 9x17
+ text run at (145,0) width 9: ", "
+ RenderInline {A} at (0,0) size 118x17 [color=#0000EE]
+ RenderText {TEXT} at (154,0) size 118x17
+ text run at (154,0) width 118: "XHTML <iframe>"
+ RenderText {TEXT} at (272,0) size 9x17
+ text run at (272,0) width 9: ", "
+ RenderInline {A} at (0,0) size 117x17 [color=#0000EE]
+ RenderText {TEXT} at (281,0) size 117x17
+ text run at (281,0) width 117: "XHTML <object>"
+ RenderText {TEXT} at (398,0) size 9x17
+ text run at (398,0) width 9: ", "
+ RenderInline {A} at (0,0) size 114x17 [color=#0000EE]
+ RenderText {TEXT} at (407,0) size 114x17
+ text run at (407,0) width 114: "XHTML <frame>"
+ RenderText {TEXT} at (521,0) size 9x17
+ text run at (521,0) width 9: ", "
+ RenderInline {A} at (0,0) size 109x17 [color=#0000EE]
+ RenderText {TEXT} at (530,0) size 109x17
+ text run at (530,0) width 109: "HTML <iframe>"
+ RenderText {TEXT} at (639,0) size 9x17
+ text run at (639,0) width 9: ", "
+ RenderInline {A} at (0,0) size 687x34 [color=#0000EE]
+ RenderText {TEXT} at (648,0) size 687x34
+ text run at (648,0) width 39: "HTML"
+ text run at (0,17) width 65: "<object>"
+ RenderText {TEXT} at (65,17) size 9x17
+ text run at (65,17) width 9: ", "
+ RenderInline {A} at (0,0) size 105x17 [color=#0000EE]
+ RenderText {TEXT} at (74,17) size 105x17
+ text run at (74,17) width 105: "HTML <frame>"
+ RenderText {TEXT} at (179,17) size 9x17
+ text run at (179,17) width 9: ", "
+ RenderInline {A} at (0,0) size 89x17 [color=#0000EE]
+ RenderText {TEXT} at (188,17) size 89x17
+ text run at (188,17) width 89: "XLink embed"
+ RenderText {TEXT} at (277,17) size 9x17
+ text run at (277,17) width 9: ", "
+ RenderInline {A} at (0,0) size 82x17 [color=#0000EE]
+ RenderText {TEXT} at (286,17) size 82x17
+ text run at (286,17) width 82: "TNG Format"
+ RenderListItem {LI} at (40,68) size 744x34
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 103x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 103x17
+ text run at (0,0) width 103: "history-related"
+ RenderText {TEXT} at (103,0) size 9x17
+ text run at (103,0) width 9: ": "
+ RenderInline {A} at (0,0) size 99x17 [color=#0000EE]
+ RenderText {TEXT} at (112,0) size 99x17
+ text run at (112,0) width 99: "Self Contained"
+ RenderText {TEXT} at (211,0) size 9x17
+ text run at (211,0) width 9: ", "
+ RenderInline {A} at (0,0) size 118x17 [color=#0000EE]
+ RenderText {TEXT} at (220,0) size 118x17
+ text run at (220,0) width 118: "XHTML <iframe>"
+ RenderText {TEXT} at (338,0) size 9x17
+ text run at (338,0) width 9: ", "
+ RenderInline {A} at (0,0) size 117x17 [color=#0000EE]
+ RenderText {TEXT} at (347,0) size 117x17
+ text run at (347,0) width 117: "XHTML <object>"
+ RenderText {TEXT} at (464,0) size 9x17
+ text run at (464,0) width 9: ", "
+ RenderInline {A} at (0,0) size 114x17 [color=#0000EE]
+ RenderText {TEXT} at (473,0) size 114x17
+ text run at (473,0) width 114: "XHTML <frame>"
+ RenderText {TEXT} at (587,0) size 9x17
+ text run at (587,0) width 9: ", "
+ RenderInline {A} at (0,0) size 109x17 [color=#0000EE]
+ RenderText {TEXT} at (596,0) size 109x17
+ text run at (596,0) width 109: "HTML <iframe>"
+ RenderText {TEXT} at (705,0) size 5x17
+ text run at (705,0) width 5: ","
+ RenderInline {A} at (0,0) size 108x17 [color=#0000EE]
+ RenderText {TEXT} at (0,17) size 108x17
+ text run at (0,17) width 108: "HTML <object>"
+ RenderText {TEXT} at (108,17) size 9x17
+ text run at (108,17) width 9: ", "
+ RenderInline {A} at (0,0) size 105x17 [color=#0000EE]
+ RenderText {TEXT} at (117,17) size 105x17
+ text run at (117,17) width 105: "HTML <frame>"
+ RenderText {TEXT} at (222,17) size 9x17
+ text run at (222,17) width 9: ", "
+ RenderInline {A} at (0,0) size 89x17 [color=#0000EE]
+ RenderText {TEXT} at (231,17) size 89x17
+ text run at (231,17) width 89: "XLink embed"
+ RenderText {TEXT} at (320,17) size 9x17
+ text run at (320,17) width 9: ", "
+ RenderInline {A} at (0,0) size 82x17 [color=#0000EE]
+ RenderText {TEXT} at (329,17) size 82x17
+ text run at (329,17) width 82: "TNG Format"
+ RenderListItem {LI} at (40,102) size 744x34
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 71x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 71x17
+ text run at (0,0) width 71: "interactive"
+ RenderText {TEXT} at (71,0) size 9x17
+ text run at (71,0) width 9: ": "
+ RenderInline {A} at (0,0) size 99x17 [color=#0000EE]
+ RenderText {TEXT} at (80,0) size 99x17
+ text run at (80,0) width 99: "Self Contained"
+ RenderText {TEXT} at (179,0) size 9x17
+ text run at (179,0) width 9: ", "
+ RenderInline {A} at (0,0) size 118x17 [color=#0000EE]
+ RenderText {TEXT} at (188,0) size 118x17
+ text run at (188,0) width 118: "XHTML <iframe>"
+ RenderText {TEXT} at (306,0) size 9x17
+ text run at (306,0) width 9: ", "
+ RenderInline {A} at (0,0) size 117x17 [color=#0000EE]
+ RenderText {TEXT} at (315,0) size 117x17
+ text run at (315,0) width 117: "XHTML <object>"
+ RenderText {TEXT} at (432,0) size 9x17
+ text run at (432,0) width 9: ", "
+ RenderInline {A} at (0,0) size 114x17 [color=#0000EE]
+ RenderText {TEXT} at (441,0) size 114x17
+ text run at (441,0) width 114: "XHTML <frame>"
+ RenderText {TEXT} at (555,0) size 9x17
+ text run at (555,0) width 9: ", "
+ RenderInline {A} at (0,0) size 109x17 [color=#0000EE]
+ RenderText {TEXT} at (564,0) size 109x17
+ text run at (564,0) width 109: "HTML <iframe>"
+ RenderText {TEXT} at (673,0) size 9x17
+ text run at (673,0) width 9: ", "
+ RenderInline {A} at (0,0) size 721x34 [color=#0000EE]
+ RenderText {TEXT} at (682,0) size 721x34
+ text run at (682,0) width 39: "HTML"
+ text run at (0,17) width 65: "<object>"
+ RenderText {TEXT} at (65,17) size 9x17
+ text run at (65,17) width 9: ", "
+ RenderInline {A} at (0,0) size 105x17 [color=#0000EE]
+ RenderText {TEXT} at (74,17) size 105x17
+ text run at (74,17) width 105: "HTML <frame>"
+ RenderText {TEXT} at (179,17) size 9x17
+ text run at (179,17) width 9: ", "
+ RenderInline {A} at (0,0) size 89x17 [color=#0000EE]
+ RenderText {TEXT} at (188,17) size 89x17
+ text run at (188,17) width 89: "XLink embed"
+ RenderText {TEXT} at (277,17) size 9x17
+ text run at (277,17) width 9: ", "
+ RenderInline {A} at (0,0) size 82x17 [color=#0000EE]
+ RenderText {TEXT} at (286,17) size 82x17
+ text run at (286,17) width 82: "TNG Format"
+ RenderListItem {LI} at (40,136) size 744x34
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 57x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 57x17
+ text run at (0,0) width 57: "dynamic"
+ RenderText {TEXT} at (57,0) size 9x17
+ text run at (57,0) width 9: ": "
+ RenderInline {A} at (0,0) size 99x17 [color=#0000EE]
+ RenderText {TEXT} at (66,0) size 99x17
+ text run at (66,0) width 99: "Self Contained"
+ RenderText {TEXT} at (165,0) size 9x17
+ text run at (165,0) width 9: ", "
+ RenderInline {A} at (0,0) size 118x17 [color=#0000EE]
+ RenderText {TEXT} at (174,0) size 118x17
+ text run at (174,0) width 118: "XHTML <iframe>"
+ RenderText {TEXT} at (292,0) size 9x17
+ text run at (292,0) width 9: ", "
+ RenderInline {A} at (0,0) size 117x17 [color=#0000EE]
+ RenderText {TEXT} at (301,0) size 117x17
+ text run at (301,0) width 117: "XHTML <object>"
+ RenderText {TEXT} at (418,0) size 9x17
+ text run at (418,0) width 9: ", "
+ RenderInline {A} at (0,0) size 114x17 [color=#0000EE]
+ RenderText {TEXT} at (427,0) size 114x17
+ text run at (427,0) width 114: "XHTML <frame>"
+ RenderText {TEXT} at (541,0) size 9x17
+ text run at (541,0) width 9: ", "
+ RenderInline {A} at (0,0) size 109x17 [color=#0000EE]
+ RenderText {TEXT} at (550,0) size 109x17
+ text run at (550,0) width 109: "HTML <iframe>"
+ RenderText {TEXT} at (659,0) size 9x17
+ text run at (659,0) width 9: ", "
+ RenderInline {A} at (0,0) size 707x34 [color=#0000EE]
+ RenderText {TEXT} at (668,0) size 707x34
+ text run at (668,0) width 39: "HTML"
+ text run at (0,17) width 65: "<object>"
+ RenderText {TEXT} at (65,17) size 9x17
+ text run at (65,17) width 9: ", "
+ RenderInline {A} at (0,0) size 105x17 [color=#0000EE]
+ RenderText {TEXT} at (74,17) size 105x17
+ text run at (74,17) width 105: "HTML <frame>"
+ RenderText {TEXT} at (179,17) size 9x17
+ text run at (179,17) width 9: ", "
+ RenderInline {A} at (0,0) size 89x17 [color=#0000EE]
+ RenderText {TEXT} at (188,17) size 89x17
+ text run at (188,17) width 89: "XLink embed"
+ RenderText {TEXT} at (277,17) size 9x17
+ text run at (277,17) width 9: ", "
+ RenderInline {A} at (0,0) size 82x17 [color=#0000EE]
+ RenderText {TEXT} at (286,17) size 82x17
+ text run at (286,17) width 82: "TNG Format"
+ RenderBlock {H2} at (0,378) size 784x24
+ RenderText {TEXT} at (0,0) size 186x24
+ text run at (0,0) width 186: "Unadorned Tests"
+ RenderBlock {UL} at (0,419) size 784x2652
+ RenderListItem {LI} at (40,0) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 133x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 133x17
+ text run at (0,0) width 133: "Groups of selectors"
+ RenderText {TEXT} at (133,0) size 31x17
+ text run at (133,0) width 31: " (#1)"
+ RenderListItem {LI} at (40,17) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 157x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 157x17
+ text run at (0,0) width 157: "Type element selectors"
+ RenderText {TEXT} at (157,0) size 31x17
+ text run at (157,0) width 31: " (#2)"
+ RenderListItem {LI} at (40,34) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 180x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 180x17
+ text run at (0,0) width 180: "Omitted universal selector"
+ RenderText {TEXT} at (180,0) size 31x17
+ text run at (180,0) width 31: " (#4)"
+ RenderListItem {LI} at (40,51) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 188x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 188x17
+ text run at (0,0) width 188: "Attribute existence selector"
+ RenderText {TEXT} at (188,0) size 31x17
+ text run at (188,0) width 31: " (#5)"
+ RenderListItem {LI} at (40,68) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 159x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 159x17
+ text run at (0,0) width 159: "Attribute value selector"
+ RenderText {TEXT} at (159,0) size 31x17
+ text run at (159,0) width 31: " (#6)"
+ RenderListItem {LI} at (40,85) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 194x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 194x17
+ text run at (0,0) width 194: "Attribute multivalue selector"
+ RenderText {TEXT} at (194,0) size 31x17
+ text run at (194,0) width 31: " (#7)"
+ RenderListItem {LI} at (40,102) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 194x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 194x17
+ text run at (0,0) width 194: "Attribute multivalue selector"
+ RenderText {TEXT} at (194,0) size 41x17
+ text run at (194,0) width 27: " (#7"
+ text run at (221,0) width 14: "b)"
+ RenderListItem {LI} at (40,119) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 375x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 375x17
+ text run at (0,0) width 375: "Attribute value selectors (hyphen-separated attributes)"
+ RenderText {TEXT} at (375,0) size 31x17
+ text run at (375,0) width 31: " (#8)"
+ RenderListItem {LI} at (40,136) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 336x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 336x17
+ text run at (0,0) width 336: "Substring matching attribute selector (beginning)"
+ RenderText {TEXT} at (336,0) size 31x17
+ text run at (336,0) width 31: " (#9)"
+ RenderListItem {LI} at (40,153) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 293x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 293x17
+ text run at (0,0) width 293: "Substring matching attribute selector (end)"
+ RenderText {TEXT} at (293,0) size 40x17
+ text run at (293,0) width 40: " (#10)"
+ RenderListItem {LI} at (40,170) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 325x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 325x17
+ text run at (0,0) width 325: "Substring matching attribute selector (contains)"
+ RenderText {TEXT} at (325,0) size 40x17
+ text run at (325,0) width 40: " (#11)"
+ RenderListItem {LI} at (40,187) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 153x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 153x17
+ text run at (0,0) width 153: "Default attribute value"
+ RenderText {TEXT} at (153,0) size 40x17
+ text run at (153,0) width 40: " (#12)"
+ RenderListItem {LI} at (40,204) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 101x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 101x17
+ text run at (0,0) width 101: "Class selectors"
+ RenderText {TEXT} at (101,0) size 40x17
+ text run at (101,0) width 40: " (#13)"
+ RenderListItem {LI} at (40,221) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 196x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 196x17
+ text run at (0,0) width 196: "More than one class selector"
+ RenderText {TEXT} at (196,0) size 40x17
+ text run at (196,0) width 40: " (#14)"
+ RenderListItem {LI} at (40,238) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 80x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 80x17
+ text run at (0,0) width 80: "ID selectors"
+ RenderText {TEXT} at (80,0) size 40x17
+ text run at (80,0) width 40: " (#15)"
+ RenderListItem {LI} at (40,255) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 126x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 126x17
+ text run at (0,0) width 126: ":link pseudo-class"
+ RenderText {TEXT} at (126,0) size 40x17
+ text run at (126,0) width 40: " (#16)"
+ RenderListItem {LI} at (40,272) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 146x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 146x17
+ text run at (0,0) width 146: ":visited pseudo-class"
+ RenderText {TEXT} at (146,0) size 40x17
+ text run at (146,0) width 40: " (#17)"
+ RenderListItem {LI} at (40,289) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 140x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 140x17
+ text run at (0,0) width 140: ":hover pseudo-class"
+ RenderText {TEXT} at (140,0) size 40x17
+ text run at (140,0) width 40: " (#18)"
+ RenderListItem {LI} at (40,306) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 140x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 140x17
+ text run at (0,0) width 140: ":hover pseudo-class"
+ RenderText {TEXT} at (140,0) size 50x17
+ text run at (140,0) width 36: " (#18"
+ text run at (176,0) width 14: "b)"
+ RenderListItem {LI} at (40,323) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 141x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 141x17
+ text run at (0,0) width 141: ":active pseudo-class"
+ RenderText {TEXT} at (141,0) size 40x17
+ text run at (141,0) width 40: " (#19)"
+ RenderListItem {LI} at (40,340) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 138x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 138x17
+ text run at (0,0) width 138: ":focus pseudo-class"
+ RenderText {TEXT} at (138,0) size 40x17
+ text run at (138,0) width 40: " (#20)"
+ RenderListItem {LI} at (40,357) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 142x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 142x17
+ text run at (0,0) width 142: ":target pseudo-class"
+ RenderText {TEXT} at (142,0) size 40x17
+ text run at (142,0) width 40: " (#21)"
+ RenderListItem {LI} at (40,374) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 142x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 142x17
+ text run at (0,0) width 142: ":target pseudo-class"
+ RenderText {TEXT} at (142,0) size 50x17
+ text run at (142,0) width 36: " (#21"
+ text run at (178,0) width 14: "b)"
+ RenderListItem {LI} at (40,391) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 142x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 142x17
+ text run at (0,0) width 142: ":target pseudo-class"
+ RenderText {TEXT} at (142,0) size 48x17
+ text run at (142,0) width 36: " (#21"
+ text run at (178,0) width 12: "c)"
+ RenderListItem {LI} at (40,408) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 140x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 140x17
+ text run at (0,0) width 140: ":lang() pseudo-class"
+ RenderText {TEXT} at (140,0) size 40x17
+ text run at (140,0) width 40: " (#22)"
+ RenderListItem {LI} at (40,425) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 155x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 155x17
+ text run at (0,0) width 155: ":enabled pseudo-class"
+ RenderText {TEXT} at (155,0) size 40x17
+ text run at (155,0) width 40: " (#23)"
+ RenderListItem {LI} at (40,442) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 159x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 159x17
+ text run at (0,0) width 159: ":disabled pseudo-class"
+ RenderText {TEXT} at (159,0) size 40x17
+ text run at (159,0) width 40: " (#24)"
+ RenderListItem {LI} at (40,459) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 157x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 157x17
+ text run at (0,0) width 157: ":checked pseudo-class"
+ RenderText {TEXT} at (157,0) size 40x17
+ text run at (157,0) width 40: " (#25)"
+ RenderListItem {LI} at (40,476) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 130x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 130x17
+ text run at (0,0) width 130: ":root pseudo-class"
+ RenderText {TEXT} at (130,0) size 40x17
+ text run at (130,0) width 40: " (#27)"
+ RenderListItem {LI} at (40,493) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 174x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 174x17
+ text run at (0,0) width 174: ":nth-child() pseudo-class"
+ RenderText {TEXT} at (174,0) size 40x17
+ text run at (174,0) width 40: " (#28)"
+ RenderListItem {LI} at (40,510) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 174x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 174x17
+ text run at (0,0) width 174: ":nth-child() pseudo-class"
+ RenderText {TEXT} at (174,0) size 50x17
+ text run at (174,0) width 36: " (#28"
+ text run at (210,0) width 14: "b)"
+ RenderListItem {LI} at (40,527) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 206x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 206x17
+ text run at (0,0) width 206: ":nth-last-child() pseudo-class"
+ RenderText {TEXT} at (206,0) size 40x17
+ text run at (206,0) width 40: " (#29)"
+ RenderListItem {LI} at (40,544) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 206x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 206x17
+ text run at (0,0) width 206: ":nth-last-child() pseudo-class"
+ RenderText {TEXT} at (206,0) size 50x17
+ text run at (206,0) width 36: " (#29"
+ text run at (242,0) width 14: "b)"
+ RenderListItem {LI} at (40,561) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 192x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 192x17
+ text run at (0,0) width 192: ":nth-of-type() pseudo-class"
+ RenderText {TEXT} at (192,0) size 40x17
+ text run at (192,0) width 40: " (#30)"
+ RenderListItem {LI} at (40,578) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 225x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 225x17
+ text run at (0,0) width 225: ":nth-last-of-type() pseudo-class"
+ RenderText {TEXT} at (225,0) size 40x17
+ text run at (225,0) width 40: " (#31)"
+ RenderListItem {LI} at (40,595) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 170x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 170x17
+ text run at (0,0) width 170: ":first-child pseudo-class"
+ RenderText {TEXT} at (170,0) size 40x17
+ text run at (170,0) width 40: " (#32)"
+ RenderListItem {LI} at (40,612) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 167x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 167x17
+ text run at (0,0) width 167: ":last-child pseudo-class"
+ RenderText {TEXT} at (167,0) size 40x17
+ text run at (167,0) width 40: " (#33)"
+ RenderListItem {LI} at (40,629) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 188x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 188x17
+ text run at (0,0) width 188: ":first-of-type pseudo-class"
+ RenderText {TEXT} at (188,0) size 40x17
+ text run at (188,0) width 40: " (#34)"
+ RenderListItem {LI} at (40,646) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 185x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 185x17
+ text run at (0,0) width 185: ":last-of-type pseudo-class"
+ RenderText {TEXT} at (185,0) size 40x17
+ text run at (185,0) width 40: " (#35)"
+ RenderListItem {LI} at (40,663) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 171x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 171x17
+ text run at (0,0) width 171: ":only-child pseudo-class"
+ RenderText {TEXT} at (171,0) size 40x17
+ text run at (171,0) width 40: " (#36)"
+ RenderListItem {LI} at (40,680) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 189x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 189x17
+ text run at (0,0) width 189: ":only-of-type pseudo-class"
+ RenderText {TEXT} at (189,0) size 40x17
+ text run at (189,0) width 40: " (#37)"
+ RenderListItem {LI} at (40,697) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 187x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 187x17
+ text run at (0,0) width 187: "::first-line pseudo-element"
+ RenderText {TEXT} at (187,0) size 40x17
+ text run at (187,0) width 40: " (#38)"
+ RenderListItem {LI} at (40,714) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 199x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 199x17
+ text run at (0,0) width 199: "::first-letter pseudo-element"
+ RenderText {TEXT} at (199,0) size 40x17
+ text run at (199,0) width 40: " (#39)"
+ RenderListItem {LI} at (40,731) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 407x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 407x17
+ text run at (0,0) width 407: "::first-letter pseudo-element with ::before pseudo-element"
+ RenderText {TEXT} at (407,0) size 49x17
+ text run at (407,0) width 36: " (#39"
+ text run at (443,0) width 13: "a)"
+ RenderListItem {LI} at (40,748) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 407x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 407x17
+ text run at (0,0) width 407: "::first-letter pseudo-element with ::before pseudo-element"
+ RenderText {TEXT} at (407,0) size 49x17
+ text run at (407,0) width 36: " (#39"
+ text run at (443,0) width 13: "a)"
+ RenderListItem {LI} at (40,765) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 199x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 199x17
+ text run at (0,0) width 199: "::first-letter pseudo-element"
+ RenderText {TEXT} at (199,0) size 50x17
+ text run at (199,0) width 36: " (#39"
+ text run at (235,0) width 14: "b)"
+ RenderListItem {LI} at (40,782) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 188x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 188x17
+ text run at (0,0) width 188: "::selection pseudo-element"
+ RenderText {TEXT} at (188,0) size 40x17
+ text run at (188,0) width 40: " (#40)"
+ RenderListItem {LI} at (40,799) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 171x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 171x17
+ text run at (0,0) width 171: "::before pseudo-element"
+ RenderText {TEXT} at (171,0) size 40x17
+ text run at (171,0) width 40: " (#41)"
+ RenderListItem {LI} at (40,816) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 159x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 159x17
+ text run at (0,0) width 159: "::after pseudo-element"
+ RenderText {TEXT} at (159,0) size 40x17
+ text run at (159,0) width 40: " (#42)"
+ RenderListItem {LI} at (40,833) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 162x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 162x17
+ text run at (0,0) width 162: "Descendant combinator"
+ RenderText {TEXT} at (162,0) size 40x17
+ text run at (162,0) width 40: " (#43)"
+ RenderListItem {LI} at (40,850) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 162x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 162x17
+ text run at (0,0) width 162: "Descendant combinator"
+ RenderText {TEXT} at (162,0) size 50x17
+ text run at (162,0) width 36: " (#43"
+ text run at (198,0) width 14: "b)"
+ RenderListItem {LI} at (40,867) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 118x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 118x17
+ text run at (0,0) width 118: "Child combinator"
+ RenderText {TEXT} at (118,0) size 40x17
+ text run at (118,0) width 40: " (#44)"
+ RenderListItem {LI} at (40,884) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 118x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 118x17
+ text run at (0,0) width 118: "Child combinator"
+ RenderText {TEXT} at (118,0) size 50x17
+ text run at (118,0) width 36: " (#44"
+ text run at (154,0) width 14: "b)"
+ RenderListItem {LI} at (40,901) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 201x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 201x17
+ text run at (0,0) width 201: "Child combinator and classes"
+ RenderText {TEXT} at (201,0) size 48x17
+ text run at (201,0) width 36: " (#44"
+ text run at (237,0) width 12: "c)"
+ RenderListItem {LI} at (40,918) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 178x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 178x17
+ text run at (0,0) width 178: "Child combinatior and IDs"
+ RenderText {TEXT} at (178,0) size 50x17
+ text run at (178,0) width 36: " (#44"
+ text run at (214,0) width 14: "d)"
+ RenderListItem {LI} at (40,935) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 185x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 185x17
+ text run at (0,0) width 185: "Direct adjacent combinator"
+ RenderText {TEXT} at (185,0) size 40x17
+ text run at (185,0) width 40: " (#45)"
+ RenderListItem {LI} at (40,952) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 185x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 185x17
+ text run at (0,0) width 185: "Direct adjacent combinator"
+ RenderText {TEXT} at (185,0) size 50x17
+ text run at (185,0) width 36: " (#45"
+ text run at (221,0) width 14: "b)"
+ RenderListItem {LI} at (40,969) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 268x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 268x17
+ text run at (0,0) width 268: "Direct adjacent combinator and classes"
+ RenderText {TEXT} at (268,0) size 48x17
+ text run at (268,0) width 36: " (#45"
+ text run at (304,0) width 12: "c)"
+ RenderListItem {LI} at (40,986) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 196x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 196x17
+ text run at (0,0) width 196: "Indirect adjacent combinator"
+ RenderText {TEXT} at (196,0) size 40x17
+ text run at (196,0) width 40: " (#46)"
+ RenderListItem {LI} at (40,1003) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 196x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 196x17
+ text run at (0,0) width 196: "Indirect adjacent combinator"
+ RenderText {TEXT} at (196,0) size 50x17
+ text run at (196,0) width 36: " (#46"
+ text run at (232,0) width 14: "b)"
+ RenderListItem {LI} at (40,1020) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 418x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 418x17
+ text run at (0,0) width 418: "NEGATED substring matching attribute selector on beginning"
+ RenderText {TEXT} at (418,0) size 40x17
+ text run at (418,0) width 40: " (#54)"
+ RenderListItem {LI} at (40,1037) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 375x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 375x17
+ text run at (0,0) width 375: "NEGATED substring matching attribute selector on end"
+ RenderText {TEXT} at (375,0) size 40x17
+ text run at (375,0) width 40: " (#55)"
+ RenderListItem {LI} at (40,1054) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 396x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 396x17
+ text run at (0,0) width 396: "NEGATED substring matching attribute selector on middle"
+ RenderText {TEXT} at (396,0) size 40x17
+ text run at (396,0) width 40: " (#56)"
+ RenderListItem {LI} at (40,1071) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 343x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 343x17
+ text run at (0,0) width 343: "Default attribute value and negation pseudo-class"
+ RenderText {TEXT} at (343,0) size 40x17
+ text run at (343,0) width 40: " (#58)"
+ RenderListItem {LI} at (40,1088) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 161x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 161x17
+ text run at (0,0) width 161: "NEGATED class selector"
+ RenderText {TEXT} at (161,0) size 40x17
+ text run at (161,0) width 40: " (#59)"
+ RenderListItem {LI} at (40,1105) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 142x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 142x17
+ text run at (0,0) width 142: "NEGATED ID selector"
+ RenderText {TEXT} at (142,0) size 40x17
+ text run at (142,0) width 40: " (#60)"
+ RenderListItem {LI} at (40,1122) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 195x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 195x17
+ text run at (0,0) width 195: "NEGATED :link pseudo-class"
+ RenderText {TEXT} at (195,0) size 40x17
+ text run at (195,0) width 40: " (#61)"
+ RenderListItem {LI} at (40,1139) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 215x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 215x17
+ text run at (0,0) width 215: "NEGATED :visited pseudo-class"
+ RenderText {TEXT} at (215,0) size 40x17
+ text run at (215,0) width 40: " (#62)"
+ RenderListItem {LI} at (40,1156) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 209x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "NEGATED :hover pseudo-class"
+ RenderText {TEXT} at (209,0) size 40x17
+ text run at (209,0) width 40: " (#63)"
+ RenderListItem {LI} at (40,1173) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 210x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 210x17
+ text run at (0,0) width 210: "NEGATED :active pseudo-class"
+ RenderText {TEXT} at (210,0) size 40x17
+ text run at (210,0) width 40: " (#64)"
+ RenderListItem {LI} at (40,1190) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 207x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 207x17
+ text run at (0,0) width 207: "NEGATED :focus pseudo-class"
+ RenderText {TEXT} at (207,0) size 40x17
+ text run at (207,0) width 40: " (#65)"
+ RenderListItem {LI} at (40,1207) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 211x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 211x17
+ text run at (0,0) width 211: "NEGATED :target pseudo-class"
+ RenderText {TEXT} at (211,0) size 40x17
+ text run at (211,0) width 40: " (#66)"
+ RenderListItem {LI} at (40,1224) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 211x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 211x17
+ text run at (0,0) width 211: "NEGATED :target pseudo-class"
+ RenderText {TEXT} at (211,0) size 50x17
+ text run at (211,0) width 36: " (#66"
+ text run at (247,0) width 14: "b)"
+ RenderListItem {LI} at (40,1241) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 209x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 209x17
+ text run at (0,0) width 209: "NEGATED :lang() pseudo-class"
+ RenderText {TEXT} at (209,0) size 40x17
+ text run at (209,0) width 40: " (#67)"
+ RenderListItem {LI} at (40,1258) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 226x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 226x17
+ text run at (0,0) width 226: "NEGATED :checked pseudo-class"
+ RenderText {TEXT} at (226,0) size 40x17
+ text run at (226,0) width 40: " (#70)"
+ RenderListItem {LI} at (40,1275) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 199x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 199x17
+ text run at (0,0) width 199: "NEGATED :root pseudo-class"
+ RenderText {TEXT} at (199,0) size 40x17
+ text run at (199,0) width 40: " (#72)"
+ RenderListItem {LI} at (40,1292) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 199x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 199x17
+ text run at (0,0) width 199: "NEGATED :root pseudo-class"
+ RenderText {TEXT} at (199,0) size 50x17
+ text run at (199,0) width 36: " (#72"
+ text run at (235,0) width 14: "b)"
+ RenderListItem {LI} at (40,1309) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 243x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 243x17
+ text run at (0,0) width 243: "NEGATED :nth-child() pseudo-class"
+ RenderText {TEXT} at (243,0) size 40x17
+ text run at (243,0) width 40: " (#73)"
+ RenderListItem {LI} at (40,1326) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 243x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 243x17
+ text run at (0,0) width 243: "NEGATED :nth-child() pseudo-class"
+ RenderText {TEXT} at (243,0) size 50x17
+ text run at (243,0) width 36: " (#73"
+ text run at (279,0) width 14: "b)"
+ RenderListItem {LI} at (40,1343) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 275x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 275x17
+ text run at (0,0) width 275: "NEGATED :nth-last-child() pseudo-class"
+ RenderText {TEXT} at (275,0) size 40x17
+ text run at (275,0) width 40: " (#74)"
+ RenderListItem {LI} at (40,1360) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 275x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 275x17
+ text run at (0,0) width 275: "NEGATED :nth-last-child() pseudo-class"
+ RenderText {TEXT} at (275,0) size 50x17
+ text run at (275,0) width 36: " (#74"
+ text run at (311,0) width 14: "b)"
+ RenderListItem {LI} at (40,1377) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 261x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 261x17
+ text run at (0,0) width 261: "NEGATED :nth-of-type() pseudo-class"
+ RenderText {TEXT} at (261,0) size 40x17
+ text run at (261,0) width 40: " (#75)"
+ RenderListItem {LI} at (40,1394) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 261x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 261x17
+ text run at (0,0) width 261: "NEGATED :nth-of-type() pseudo-class"
+ RenderText {TEXT} at (261,0) size 50x17
+ text run at (261,0) width 36: " (#75"
+ text run at (297,0) width 14: "b)"
+ RenderListItem {LI} at (40,1411) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 294x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 294x17
+ text run at (0,0) width 294: "NEGATED :nth-last-of-type() pseudo-class"
+ RenderText {TEXT} at (294,0) size 40x17
+ text run at (294,0) width 40: " (#76)"
+ RenderListItem {LI} at (40,1428) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 294x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 294x17
+ text run at (0,0) width 294: "NEGATED :nth-last-of-type() pseudo-class"
+ RenderText {TEXT} at (294,0) size 50x17
+ text run at (294,0) width 36: " (#76"
+ text run at (330,0) width 14: "b)"
+ RenderListItem {LI} at (40,1445) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 239x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 239x17
+ text run at (0,0) width 239: "NEGATED :first-child pseudo-class"
+ RenderText {TEXT} at (239,0) size 40x17
+ text run at (239,0) width 40: " (#77)"
+ RenderListItem {LI} at (40,1462) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 239x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 239x17
+ text run at (0,0) width 239: "NEGATED :first-child pseudo-class"
+ RenderText {TEXT} at (239,0) size 50x17
+ text run at (239,0) width 36: " (#77"
+ text run at (275,0) width 14: "b)"
+ RenderListItem {LI} at (40,1479) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 236x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 236x17
+ text run at (0,0) width 236: "NEGATED :last-child pseudo-class"
+ RenderText {TEXT} at (236,0) size 40x17
+ text run at (236,0) width 40: " (#78)"
+ RenderListItem {LI} at (40,1496) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 236x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 236x17
+ text run at (0,0) width 236: "NEGATED :last-child pseudo-class"
+ RenderText {TEXT} at (236,0) size 50x17
+ text run at (236,0) width 36: " (#78"
+ text run at (272,0) width 14: "b)"
+ RenderListItem {LI} at (40,1513) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 257x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 257x17
+ text run at (0,0) width 257: "NEGATED :first-of-type pseudo-class"
+ RenderText {TEXT} at (257,0) size 40x17
+ text run at (257,0) width 40: " (#79)"
+ RenderListItem {LI} at (40,1530) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 254x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 254x17
+ text run at (0,0) width 254: "NEGATED :last-of-type pseudo-class"
+ RenderText {TEXT} at (254,0) size 40x17
+ text run at (254,0) width 40: " (#80)"
+ RenderListItem {LI} at (40,1547) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 240x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 240x17
+ text run at (0,0) width 240: "NEGATED :only-child pseudo-class"
+ RenderText {TEXT} at (240,0) size 40x17
+ text run at (240,0) width 40: " (#81)"
+ RenderListItem {LI} at (40,1564) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 240x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 240x17
+ text run at (0,0) width 240: "NEGATED :only-child pseudo-class"
+ RenderText {TEXT} at (240,0) size 50x17
+ text run at (240,0) width 36: " (#81"
+ text run at (276,0) width 14: "b)"
+ RenderListItem {LI} at (40,1581) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 258x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 258x17
+ text run at (0,0) width 258: "NEGATED :only-of-type pseudo-class"
+ RenderText {TEXT} at (258,0) size 40x17
+ text run at (258,0) width 40: " (#82)"
+ RenderListItem {LI} at (40,1598) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 258x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 258x17
+ text run at (0,0) width 258: "NEGATED :only-of-type pseudo-class"
+ RenderText {TEXT} at (258,0) size 50x17
+ text run at (258,0) width 36: " (#82"
+ text run at (294,0) width 14: "b)"
+ RenderListItem {LI} at (40,1615) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 377x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 377x17
+ text run at (0,0) width 377: "Negation pseudo-class cannot be an argument of itself"
+ RenderText {TEXT} at (377,0) size 40x17
+ text run at (377,0) width 40: " (#83)"
+ RenderListItem {LI} at (40,1632) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 168x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 168x17
+ text run at (0,0) width 168: ":contains() pseudo-class"
+ RenderText {TEXT} at (168,0) size 40x17
+ text run at (168,0) width 40: " (#84)"
+ RenderListItem {LI} at (40,1649) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 168x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 168x17
+ text run at (0,0) width 168: ":contains() pseudo-class"
+ RenderText {TEXT} at (168,0) size 50x17
+ text run at (168,0) width 36: " (#84"
+ text run at (204,0) width 14: "b)"
+ RenderListItem {LI} at (40,1666) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 237x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 237x17
+ text run at (0,0) width 237: "NEGATED :contains() pseudo-class"
+ RenderText {TEXT} at (237,0) size 40x17
+ text run at (237,0) width 40: " (#85)"
+ RenderListItem {LI} at (40,1683) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 483x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 483x17
+ text run at (0,0) width 483: "Nondeterministic matching of direct and indirect adjacent combinators"
+ RenderText {TEXT} at (483,0) size 40x17
+ text run at (483,0) width 40: " (#87)"
+ RenderListItem {LI} at (40,1700) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 483x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 483x17
+ text run at (0,0) width 483: "Nondeterministic matching of direct and indirect adjacent combinators"
+ RenderText {TEXT} at (483,0) size 50x17
+ text run at (483,0) width 36: " (#87"
+ text run at (519,0) width 14: "b)"
+ RenderListItem {LI} at (40,1717) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 509x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 509x17
+ text run at (0,0) width 509: "Nondeterministic matching of descendant and direct adjacent combinators"
+ RenderText {TEXT} at (509,0) size 40x17
+ text run at (509,0) width 40: " (#88)"
+ RenderListItem {LI} at (40,1734) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 509x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 509x17
+ text run at (0,0) width 509: "Nondeterministic matching of descendant and direct adjacent combinators"
+ RenderText {TEXT} at (509,0) size 50x17
+ text run at (509,0) width 36: " (#88"
+ text run at (545,0) width 14: "b)"
+ RenderListItem {LI} at (40,1751) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 391x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 391x17
+ text run at (0,0) width 391: "Simple combination of descendant and child combinators"
+ RenderText {TEXT} at (391,0) size 40x17
+ text run at (391,0) width 40: " (#89)"
+ RenderListItem {LI} at (40,1768) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 433x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 433x17
+ text run at (0,0) width 433: "Simple combination of direct and indirect adjacent combinators"
+ RenderText {TEXT} at (433,0) size 40x17
+ text run at (433,0) width 40: " (#90)"
+ RenderListItem {LI} at (40,1785) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 433x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 433x17
+ text run at (0,0) width 433: "Simple combination of direct and indirect adjacent combinators"
+ RenderText {TEXT} at (433,0) size 50x17
+ text run at (433,0) width 36: " (#90"
+ text run at (469,0) width 14: "b)"
+ RenderListItem {LI} at (40,1802) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 301x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 301x17
+ text run at (0,0) width 301: "NEGATED :enabled:disabled pseudo-classes"
+ RenderText {TEXT} at (301,0) size 49x17
+ text run at (301,0) width 49: " (#144)"
+ RenderListItem {LI} at (40,1819) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 205x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 205x17
+ text run at (0,0) width 205: ":empty pseudo-class and text"
+ RenderText {TEXT} at (205,0) size 49x17
+ text run at (205,0) width 49: " (#148)"
+ RenderListItem {LI} at (40,1836) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 287x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 287x17
+ text run at (0,0) width 287: ":empty pseudo-class and empty elements"
+ RenderText {TEXT} at (287,0) size 49x17
+ text run at (287,0) width 49: " (#149)"
+ RenderListItem {LI} at (40,1853) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 287x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 287x17
+ text run at (0,0) width 287: ":empty pseudo-class and empty elements"
+ RenderText {TEXT} at (287,0) size 58x17
+ text run at (287,0) width 44: " (#149"
+ text run at (331,0) width 14: "b)"
+ RenderListItem {LI} at (40,1870) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 254x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 254x17
+ text run at (0,0) width 254: ":empty pseudo-class and whitespace"
+ RenderText {TEXT} at (254,0) size 49x17
+ text run at (254,0) width 49: " (#151)"
+ RenderListItem {LI} at (40,1887) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 240x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 240x17
+ text run at (0,0) width 240: ":empty pseudo-class and elements"
+ RenderText {TEXT} at (240,0) size 49x17
+ text run at (240,0) width 49: " (#152)"
+ RenderListItem {LI} at (40,1904) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 49x17
+ text run at (131,0) width 49: " (#154)"
+ RenderListItem {LI} at (40,1921) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 49x17
+ text run at (131,0) width 49: " (#155)"
+ RenderListItem {LI} at (40,1938) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 57x17
+ text run at (131,0) width 44: " (#155"
+ text run at (175,0) width 13: "a)"
+ RenderListItem {LI} at (40,1955) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 58x17
+ text run at (131,0) width 44: " (#155"
+ text run at (175,0) width 14: "b)"
+ RenderListItem {LI} at (40,1972) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 56x17
+ text run at (131,0) width 44: " (#155"
+ text run at (175,0) width 12: "c)"
+ RenderListItem {LI} at (40,1989) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 58x17
+ text run at (131,0) width 44: " (#155"
+ text run at (175,0) width 14: "d)"
+ RenderListItem {LI} at (40,2006) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 49x17
+ text run at (131,0) width 49: " (#156)"
+ RenderListItem {LI} at (40,2023) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 58x17
+ text run at (131,0) width 44: " (#156"
+ text run at (175,0) width 14: "b)"
+ RenderListItem {LI} at (40,2040) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 56x17
+ text run at (131,0) width 44: " (#156"
+ text run at (175,0) width 12: "c)"
+ RenderListItem {LI} at (40,2057) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 49x17
+ text run at (131,0) width 49: " (#157)"
+ RenderListItem {LI} at (40,2074) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 131x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 131x17
+ text run at (0,0) width 131: "Syntax and parsing"
+ RenderText {TEXT} at (131,0) size 49x17
+ text run at (131,0) width 49: " (#158)"
+ RenderListItem {LI} at (40,2091) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 305x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 305x17
+ text run at (0,0) width 305: "Syntax and parsing of new pseudo-elements"
+ RenderText {TEXT} at (305,0) size 49x17
+ text run at (305,0) width 49: " (#159)"
+ RenderListItem {LI} at (40,2108) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 327x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 327x17
+ text run at (0,0) width 327: "Syntax and parsing of unknown psuedo-classes"
+ RenderText {TEXT} at (327,0) size 49x17
+ text run at (327,0) width 49: " (#160)"
+ RenderListItem {LI} at (40,2125) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 481x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 481x17
+ text run at (0,0) width 481: "Syntax and parsing of unknown psuedo-classes and pseudo-elements"
+ RenderText {TEXT} at (481,0) size 49x17
+ text run at (481,0) width 49: " (#161)"
+ RenderListItem {LI} at (40,2142) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 150x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 150x17
+ text run at (0,0) width 150: "Contextual ::selection"
+ RenderText {TEXT} at (150,0) size 49x17
+ text run at (150,0) width 49: " (#162)"
+ RenderListItem {LI} at (40,2159) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 142x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 142x17
+ text run at (0,0) width 142: "Contextual :contains"
+ RenderText {TEXT} at (142,0) size 49x17
+ text run at (142,0) width 49: " (#163)"
+ RenderListItem {LI} at (40,2176) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 150x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 150x17
+ text run at (0,0) width 150: ":focus with ::selection"
+ RenderText {TEXT} at (150,0) size 49x17
+ text run at (150,0) width 49: " (#164)"
+ RenderListItem {LI} at (40,2193) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 152x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 152x17
+ text run at (0,0) width 152: ":hover with ::selection"
+ RenderText {TEXT} at (152,0) size 49x17
+ text run at (152,0) width 49: " (#165)"
+ RenderListItem {LI} at (40,2210) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 196x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 196x17
+ text run at (0,0) width 196: ":first-letter with ::first-letter"
+ RenderText {TEXT} at (196,0) size 49x17
+ text run at (196,0) width 49: " (#166)"
+ RenderListItem {LI} at (40,2227) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 196x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 196x17
+ text run at (0,0) width 196: ":first-letter with ::first-letter"
+ RenderText {TEXT} at (196,0) size 57x17
+ text run at (196,0) width 44: " (#166"
+ text run at (240,0) width 13: "a)"
+ RenderListItem {LI} at (40,2244) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 172x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 172x17
+ text run at (0,0) width 172: ":first-line with ::first-line"
+ RenderText {TEXT} at (172,0) size 49x17
+ text run at (172,0) width 49: " (#167)"
+ RenderListItem {LI} at (40,2261) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 172x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 172x17
+ text run at (0,0) width 172: ":first-line with ::first-line"
+ RenderText {TEXT} at (172,0) size 57x17
+ text run at (172,0) width 44: " (#167"
+ text run at (216,0) width 13: "a)"
+ RenderListItem {LI} at (40,2278) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 140x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 140x17
+ text run at (0,0) width 140: ":before with ::before"
+ RenderText {TEXT} at (140,0) size 49x17
+ text run at (140,0) width 49: " (#168)"
+ RenderListItem {LI} at (40,2295) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 140x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 140x17
+ text run at (0,0) width 140: ":before with ::before"
+ RenderText {TEXT} at (140,0) size 57x17
+ text run at (140,0) width 44: " (#168"
+ text run at (184,0) width 13: "a)"
+ RenderListItem {LI} at (40,2312) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 116x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 116x17
+ text run at (0,0) width 116: ":after with ::after"
+ RenderText {TEXT} at (116,0) size 49x17
+ text run at (116,0) width 49: " (#169)"
+ RenderListItem {LI} at (40,2329) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 116x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 116x17
+ text run at (0,0) width 116: ":after with ::after"
+ RenderText {TEXT} at (116,0) size 57x17
+ text run at (116,0) width 44: " (#169"
+ text run at (160,0) width 13: "a)"
+ RenderListItem {LI} at (40,2346) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 165x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 165x17
+ text run at (0,0) width 165: "Long chains of selectors"
+ RenderText {TEXT} at (165,0) size 49x17
+ text run at (165,0) width 49: " (#170)"
+ RenderListItem {LI} at (40,2363) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 165x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 165x17
+ text run at (0,0) width 165: "Long chains of selectors"
+ RenderText {TEXT} at (165,0) size 57x17
+ text run at (165,0) width 44: " (#170"
+ text run at (209,0) width 13: "a)"
+ RenderListItem {LI} at (40,2380) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 165x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 165x17
+ text run at (0,0) width 165: "Long chains of selectors"
+ RenderText {TEXT} at (165,0) size 58x17
+ text run at (165,0) width 44: " (#170"
+ text run at (209,0) width 14: "b)"
+ RenderListItem {LI} at (40,2397) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 165x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 165x17
+ text run at (0,0) width 165: "Long chains of selectors"
+ RenderText {TEXT} at (165,0) size 56x17
+ text run at (165,0) width 44: " (#170"
+ text run at (209,0) width 12: "c)"
+ RenderListItem {LI} at (40,2414) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 165x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 165x17
+ text run at (0,0) width 165: "Long chains of selectors"
+ RenderText {TEXT} at (165,0) size 58x17
+ text run at (165,0) width 44: " (#170"
+ text run at (209,0) width 14: "d)"
+ RenderListItem {LI} at (40,2431) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 191x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 191x17
+ text run at (0,0) width 191: "Parsing: Numbers in classes"
+ RenderText {TEXT} at (191,0) size 57x17
+ text run at (191,0) width 44: " (#175"
+ text run at (235,0) width 13: "a)"
+ RenderListItem {LI} at (40,2448) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 191x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 191x17
+ text run at (0,0) width 191: "Parsing: Numbers in classes"
+ RenderText {TEXT} at (191,0) size 58x17
+ text run at (191,0) width 44: " (#175"
+ text run at (235,0) width 14: "b)"
+ RenderListItem {LI} at (40,2465) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 191x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 191x17
+ text run at (0,0) width 191: "Parsing: Numbers in classes"
+ RenderText {TEXT} at (191,0) size 56x17
+ text run at (191,0) width 44: " (#175"
+ text run at (235,0) width 12: "c)"
+ RenderListItem {LI} at (40,2482) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 262x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 262x17
+ text run at (0,0) width 262: "NEGATED Dynamic handling of :empty"
+ RenderText {TEXT} at (262,0) size 40x17
+ text run at (262,0) width 40: " (#d1)"
+ RenderListItem {LI} at (40,2499) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 262x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 262x17
+ text run at (0,0) width 262: "NEGATED Dynamic handling of :empty"
+ RenderText {TEXT} at (262,0) size 49x17
+ text run at (262,0) width 49: " (#d1b)"
+ RenderListItem {LI} at (40,2516) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 230x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 230x17
+ text run at (0,0) width 230: "Dynamic handling of combinators"
+ RenderText {TEXT} at (230,0) size 40x17
+ text run at (230,0) width 40: " (#d2)"
+ RenderListItem {LI} at (40,2533) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 325x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 325x17
+ text run at (0,0) width 325: "Dynamic updating of :first-child and :last-child"
+ RenderText {TEXT} at (325,0) size 40x17
+ text run at (325,0) width 40: " (#d4)"
+ RenderListItem {LI} at (40,2550) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 100x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 100x17
+ text run at (0,0) width 100: ":indeterminate"
+ RenderText {TEXT} at (100,0) size 40x17
+ text run at (100,0) width 40: " (#d5)"
+ RenderListItem {LI} at (40,2567) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 195x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 195x17
+ text run at (0,0) width 195: ":indeterminate and :checked"
+ RenderText {TEXT} at (195,0) size 48x17
+ text run at (195,0) width 48: " (#d5a)"
+ RenderListItem {LI} at (40,2584) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 264x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 264x17
+ text run at (0,0) width 264: "NEGATED :indeterminate and :checked"
+ RenderText {TEXT} at (264,0) size 49x17
+ text run at (264,0) width 49: " (#d5b)"
+ RenderListItem {LI} at (40,2601) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 195x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 195x17
+ text run at (0,0) width 195: ":indeterminate and :checked"
+ RenderText {TEXT} at (195,0) size 47x17
+ text run at (195,0) width 47: " (#d5c)"
+ RenderListItem {LI} at (40,2618) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 198x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 198x17
+ text run at (0,0) width 198: ":indeterminate with :checked"
+ RenderText {TEXT} at (198,0) size 49x17
+ text run at (198,0) width 49: " (#d5d)"
+ RenderListItem {LI} at (40,2635) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderInline {A} at (0,0) size 267x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 267x17
+ text run at (0,0) width 267: "NEGATED :indeterminate with :checked"
+ RenderText {TEXT} at (267,0) size 48x17
+ text run at (267,0) width 48: " (#d5e)"
+ RenderBlock {P} at (0,3085) size 784x17
+ RenderText {TEXT} at (0,0) size 65x17
+ text run at (0,0) width 65: "See also: "
+ RenderInline {A} at (0,0) size 38x17 [color=#0000EE]
+ RenderText {TEXT} at (65,0) size 38x17
+ text run at (65,0) width 38: "Index"
+ RenderText {TEXT} at (103,0) size 9x17
+ text run at (103,0) width 9: ", "
+ RenderInline {A} at (0,0) size 48x17 [color=#0000EE]
+ RenderText {TEXT} at (112,0) size 48x17
+ text run at (112,0) width 48: "XHTML"
+ RenderText {TEXT} at (160,0) size 9x17
+ text run at (160,0) width 9: ", "
+ RenderInline {A} at (0,0) size 29x17 [color=#0000EE]
+ RenderText {TEXT} at (169,0) size 29x17
+ text run at (169,0) width 29: "XML"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/166.html b/third_party/WebKit/LayoutTests/fast/selectors/166.html
new file mode 100644
index 0000000..9d0bbae
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/166.html
@@ -0,0 +1,180 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>HTML Test Index</title>
+ <link rel="top" href="../index.html">
+ </head>
+ <body>
+ <h1>HTML Test Index</h1>
+ <p>The HTML tests are available in several variants.</p>
+ <h2>Tests With Navigation Aids</h2>
+ <p>Each category of test is available using several different harnesses. The name of the harness describes how the test markup is contained within it, for example the Xlink embed case uses an XLink with the show axis set to embed.</p>
+ <ul>
+ <li><a href="full/index.html" title="The complete set of tests.">full</a>: <a href="full/flat/index.html">Self Contained</a>, <a href="full/xhtml_iframe/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">XHTML &lt;iframe&gt;</a>, <a href="full/xhtml_object/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">XHTML &lt;object&gt;</a>, <a href="full/xhtml_frames/index.html" title="Tests consist of a two frame XHTML frameset, the top frame being an XHTML wrapper page summarising the test and the bottom frame being the actual test content.">XHTML &lt;frame&gt;</a>, <a href="full/html_iframe/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">HTML &lt;iframe&gt;</a>, <a href="full/html_object/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">HTML &lt;object&gt;</a>, <a href="full/html_frames/index.html" title="Tests consist of a two frame HTML frameset, the top frame being an HTML wrapper page summarising the test and the bottom frame being the actual test content.">HTML &lt;frame&gt;</a>, <a href="full/xlink_embed/index.html" title="Tests consist of an XML page summarising the test and linking to the actual test content using an XLink with the show axis set to embed.">XLink embed</a>, <a href="full/tng/index.html" title="Tests consist of an HTML page with a brief test summary and navigation aids and a link to the test content using an &lt;object&gt; tag. This test format is designed to be stylistically compatible with the TNG test format used for other CSS test suites.">TNG Format</a></li>
+ <li><a href="static/index.html" title="The list of static tests (those that involve in scripting and no user interaction).">static</a>: <a href="static/flat/index.html">Self Contained</a>, <a href="static/xhtml_iframe/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">XHTML &lt;iframe&gt;</a>, <a href="static/xhtml_object/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">XHTML &lt;object&gt;</a>, <a href="static/xhtml_frames/index.html" title="Tests consist of a two frame XHTML frameset, the top frame being an XHTML wrapper page summarising the test and the bottom frame being the actual test content.">XHTML &lt;frame&gt;</a>, <a href="static/html_iframe/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">HTML &lt;iframe&gt;</a>, <a href="static/html_object/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">HTML &lt;object&gt;</a>, <a href="static/html_frames/index.html" title="Tests consist of a two frame HTML frameset, the top frame being an HTML wrapper page summarising the test and the bottom frame being the actual test content.">HTML &lt;frame&gt;</a>, <a href="static/xlink_embed/index.html" title="Tests consist of an XML page summarising the test and linking to the actual test content using an XLink with the show axis set to embed.">XLink embed</a>, <a href="static/tng/index.html" title="Tests consist of an HTML page with a brief test summary and navigation aids and a link to the test content using an &lt;object&gt; tag. This test format is designed to be stylistically compatible with the TNG test format used for other CSS test suites.">TNG Format</a></li>
+ <li><a href="history/index.html" title="Tests requiring that the UA have some sort of session history.">history-related</a>: <a href="history/flat/index.html">Self Contained</a>, <a href="history/xhtml_iframe/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">XHTML &lt;iframe&gt;</a>, <a href="history/xhtml_object/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">XHTML &lt;object&gt;</a>, <a href="history/xhtml_frames/index.html" title="Tests consist of a two frame XHTML frameset, the top frame being an XHTML wrapper page summarising the test and the bottom frame being the actual test content.">XHTML &lt;frame&gt;</a>, <a href="history/html_iframe/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">HTML &lt;iframe&gt;</a>, <a href="history/html_object/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">HTML &lt;object&gt;</a>, <a href="history/html_frames/index.html" title="Tests consist of a two frame HTML frameset, the top frame being an HTML wrapper page summarising the test and the bottom frame being the actual test content.">HTML &lt;frame&gt;</a>, <a href="history/xlink_embed/index.html" title="Tests consist of an XML page summarising the test and linking to the actual test content using an XLink with the show axis set to embed.">XLink embed</a>, <a href="history/tng/index.html" title="Tests consist of an HTML page with a brief test summary and navigation aids and a link to the test content using an &lt;object&gt; tag. This test format is designed to be stylistically compatible with the TNG test format used for other CSS test suites.">TNG Format</a></li>
+ <li><a href="interactive/index.html" title="The tests that require user interaction.">interactive</a>: <a href="interactive/flat/index.html">Self Contained</a>, <a href="interactive/xhtml_iframe/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">XHTML &lt;iframe&gt;</a>, <a href="interactive/xhtml_object/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">XHTML &lt;object&gt;</a>, <a href="interactive/xhtml_frames/index.html" title="Tests consist of a two frame XHTML frameset, the top frame being an XHTML wrapper page summarising the test and the bottom frame being the actual test content.">XHTML &lt;frame&gt;</a>, <a href="interactive/html_iframe/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">HTML &lt;iframe&gt;</a>, <a href="interactive/html_object/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">HTML &lt;object&gt;</a>, <a href="interactive/html_frames/index.html" title="Tests consist of a two frame HTML frameset, the top frame being an HTML wrapper page summarising the test and the bottom frame being the actual test content.">HTML &lt;frame&gt;</a>, <a href="interactive/xlink_embed/index.html" title="Tests consist of an XML page summarising the test and linking to the actual test content using an XLink with the show axis set to embed.">XLink embed</a>, <a href="interactive/tng/index.html" title="Tests consist of an HTML page with a brief test summary and navigation aids and a link to the test content using an &lt;object&gt; tag. This test format is designed to be stylistically compatible with the TNG test format used for other CSS test suites.">TNG Format</a></li>
+ <li><a href="dynamic/index.html" title="Pages consisting of a script that dynamically modifies the document in order to complete the test.">dynamic</a>: <a href="dynamic/flat/index.html">Self Contained</a>, <a href="dynamic/xhtml_iframe/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">XHTML &lt;iframe&gt;</a>, <a href="dynamic/xhtml_object/index.html" title="Tests consist of an XHTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">XHTML &lt;object&gt;</a>, <a href="dynamic/xhtml_frames/index.html" title="Tests consist of a two frame XHTML frameset, the top frame being an XHTML wrapper page summarising the test and the bottom frame being the actual test content.">XHTML &lt;frame&gt;</a>, <a href="dynamic/html_iframe/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;iframe&gt; element.">HTML &lt;iframe&gt;</a>, <a href="dynamic/html_object/index.html" title="Tests consist of an HTML wrapper page summarising the test and linking to the actual test content using an &lt;object&gt; element.">HTML &lt;object&gt;</a>, <a href="dynamic/html_frames/index.html" title="Tests consist of a two frame HTML frameset, the top frame being an HTML wrapper page summarising the test and the bottom frame being the actual test content.">HTML &lt;frame&gt;</a>, <a href="dynamic/xlink_embed/index.html" title="Tests consist of an XML page summarising the test and linking to the actual test content using an XLink with the show axis set to embed.">XLink embed</a>, <a href="dynamic/tng/index.html" title="Tests consist of an HTML page with a brief test summary and navigation aids and a link to the test content using an &lt;object&gt; tag. This test format is designed to be stylistically compatible with the TNG test format used for other CSS test suites.">TNG Format</a></li>
+ </ul>
+ <h2>Unadorned Tests</h2>
+ <ul>
+ <li><a href="tests/css3-modsel-1.html">Groups of selectors</a> (#1)</li>
+ <li><a href="tests/css3-modsel-2.html">Type element selectors</a> (#2)</li>
+ <li><a href="tests/css3-modsel-4.html">Omitted universal selector</a> (#4)</li>
+ <li><a href="tests/css3-modsel-5.html">Attribute existence selector</a> (#5)</li>
+ <li><a href="tests/css3-modsel-6.html">Attribute value selector</a> (#6)</li>
+ <li><a href="tests/css3-modsel-7.html">Attribute multivalue selector</a> (#7)</li>
+ <li><a href="tests/css3-modsel-7b.html">Attribute multivalue selector</a> (#7b)</li>
+ <li><a href="tests/css3-modsel-8.html">Attribute value selectors (hyphen-separated attributes)</a> (#8)</li>
+ <li><a href="tests/css3-modsel-9.html">Substring matching attribute selector (beginning)</a> (#9)</li>
+ <li><a href="tests/css3-modsel-10.html">Substring matching attribute selector (end)</a> (#10)</li>
+ <li><a href="tests/css3-modsel-11.html">Substring matching attribute selector (contains)</a> (#11)</li>
+ <li><a href="tests/css3-modsel-12.html">Default attribute value</a> (#12)</li>
+ <li><a href="tests/css3-modsel-13.html">Class selectors</a> (#13)</li>
+ <li><a href="tests/css3-modsel-14.html">More than one class selector</a> (#14)</li>
+ <li><a href="tests/css3-modsel-15.html">ID selectors</a> (#15)</li>
+ <li><a href="tests/css3-modsel-16.html">:link pseudo-class</a> (#16)</li>
+ <li><a href="tests/css3-modsel-17.html">:visited pseudo-class</a> (#17)</li>
+ <li><a href="tests/css3-modsel-18.html">:hover pseudo-class</a> (#18)</li>
+ <li><a href="tests/css3-modsel-18b.html">:hover pseudo-class</a> (#18b)</li>
+ <li><a href="tests/css3-modsel-19.html">:active pseudo-class</a> (#19)</li>
+ <li><a href="tests/css3-modsel-20.html">:focus pseudo-class</a> (#20)</li>
+ <li><a href="tests/css3-modsel-21.html">:target pseudo-class</a> (#21)</li>
+ <li><a href="tests/css3-modsel-21b.html">:target pseudo-class</a> (#21b)</li>
+ <li><a href="tests/css3-modsel-21c.html">:target pseudo-class</a> (#21c)</li>
+ <li><a href="tests/css3-modsel-22.html">:lang() pseudo-class</a> (#22)</li>
+ <li><a href="tests/css3-modsel-23.html">:enabled pseudo-class</a> (#23)</li>
+ <li><a href="tests/css3-modsel-24.html">:disabled pseudo-class</a> (#24)</li>
+ <li><a href="tests/css3-modsel-25.html">:checked pseudo-class</a> (#25)</li>
+ <li><a href="tests/css3-modsel-27.html">:root pseudo-class</a> (#27)</li>
+ <li><a href="tests/css3-modsel-28.html">:nth-child() pseudo-class</a> (#28)</li>
+ <li><a href="tests/css3-modsel-28b.html">:nth-child() pseudo-class</a> (#28b)</li>
+ <li><a href="tests/css3-modsel-29.html">:nth-last-child() pseudo-class</a> (#29)</li>
+ <li><a href="tests/css3-modsel-29b.html">:nth-last-child() pseudo-class</a> (#29b)</li>
+ <li><a href="tests/css3-modsel-30.html">:nth-of-type() pseudo-class</a> (#30)</li>
+ <li><a href="tests/css3-modsel-31.html">:nth-last-of-type() pseudo-class</a> (#31)</li>
+ <li><a href="tests/css3-modsel-32.html">:first-child pseudo-class</a> (#32)</li>
+ <li><a href="tests/css3-modsel-33.html">:last-child pseudo-class</a> (#33)</li>
+ <li><a href="tests/css3-modsel-34.html">:first-of-type pseudo-class</a> (#34)</li>
+ <li><a href="tests/css3-modsel-35.html">:last-of-type pseudo-class</a> (#35)</li>
+ <li><a href="tests/css3-modsel-36.html">:only-child pseudo-class</a> (#36)</li>
+ <li><a href="tests/css3-modsel-37.html">:only-of-type pseudo-class</a> (#37)</li>
+ <li><a href="tests/css3-modsel-38.html">::first-line pseudo-element</a> (#38)</li>
+ <li><a href="tests/css3-modsel-39.html">::first-letter pseudo-element</a> (#39)</li>
+ <li><a href="tests/css3-modsel-39a.html">::first-letter pseudo-element with ::before pseudo-element</a> (#39a)</li>
+ <li><a href="tests/css3-modsel-39c.html">::first-letter pseudo-element with ::before pseudo-element</a> (#39a)</li>
+ <li><a href="tests/css3-modsel-39b.html">::first-letter pseudo-element</a> (#39b)</li>
+ <li><a href="tests/css3-modsel-40.html">::selection pseudo-element</a> (#40)</li>
+ <li><a href="tests/css3-modsel-41.html">::before pseudo-element</a> (#41)</li>
+ <li><a href="tests/css3-modsel-42.html">::after pseudo-element</a> (#42)</li>
+ <li><a href="tests/css3-modsel-43.html">Descendant combinator</a> (#43)</li>
+ <li><a href="tests/css3-modsel-43b.html">Descendant combinator</a> (#43b)</li>
+ <li><a href="tests/css3-modsel-44.html">Child combinator</a> (#44)</li>
+ <li><a href="tests/css3-modsel-44b.html">Child combinator</a> (#44b)</li>
+ <li><a href="tests/css3-modsel-44c.html">Child combinator and classes</a> (#44c)</li>
+ <li><a href="tests/css3-modsel-44d.html">Child combinatior and IDs</a> (#44d)</li>
+ <li><a href="tests/css3-modsel-45.html">Direct adjacent combinator</a> (#45)</li>
+ <li><a href="tests/css3-modsel-45b.html">Direct adjacent combinator</a> (#45b)</li>
+ <li><a href="tests/css3-modsel-45c.html">Direct adjacent combinator and classes</a> (#45c)</li>
+ <li><a href="tests/css3-modsel-46.html">Indirect adjacent combinator</a> (#46)</li>
+ <li><a href="tests/css3-modsel-46b.html">Indirect adjacent combinator</a> (#46b)</li>
+ <li><a href="tests/css3-modsel-54.html">NEGATED substring matching attribute selector on beginning</a> (#54)</li>
+ <li><a href="tests/css3-modsel-55.html">NEGATED substring matching attribute selector on end</a> (#55)</li>
+ <li><a href="tests/css3-modsel-56.html">NEGATED substring matching attribute selector on middle</a> (#56)</li>
+ <li><a href="tests/css3-modsel-58.html">Default attribute value and negation pseudo-class</a> (#58)</li>
+ <li><a href="tests/css3-modsel-59.html">NEGATED class selector</a> (#59)</li>
+ <li><a href="tests/css3-modsel-60.html">NEGATED ID selector</a> (#60)</li>
+ <li><a href="tests/css3-modsel-61.html">NEGATED :link pseudo-class</a> (#61)</li>
+ <li><a href="tests/css3-modsel-62.html">NEGATED :visited pseudo-class</a> (#62)</li>
+ <li><a href="tests/css3-modsel-63.html">NEGATED :hover pseudo-class</a> (#63)</li>
+ <li><a href="tests/css3-modsel-64.html">NEGATED :active pseudo-class</a> (#64)</li>
+ <li><a href="tests/css3-modsel-65.html">NEGATED :focus pseudo-class</a> (#65)</li>
+ <li><a href="tests/css3-modsel-66.html">NEGATED :target pseudo-class</a> (#66)</li>
+ <li><a href="tests/css3-modsel-66b.html">NEGATED :target pseudo-class</a> (#66b)</li>
+ <li><a href="tests/css3-modsel-67.html">NEGATED :lang() pseudo-class</a> (#67)</li>
+ <li><a href="tests/css3-modsel-70.html">NEGATED :checked pseudo-class</a> (#70)</li>
+ <li><a href="tests/css3-modsel-72.html">NEGATED :root pseudo-class</a> (#72)</li>
+ <li><a href="tests/css3-modsel-72b.html">NEGATED :root pseudo-class</a> (#72b)</li>
+ <li><a href="tests/css3-modsel-73.html">NEGATED :nth-child() pseudo-class</a> (#73)</li>
+ <li><a href="tests/css3-modsel-73b.html">NEGATED :nth-child() pseudo-class</a> (#73b)</li>
+ <li><a href="tests/css3-modsel-74.html">NEGATED :nth-last-child() pseudo-class</a> (#74)</li>
+ <li><a href="tests/css3-modsel-74b.html">NEGATED :nth-last-child() pseudo-class</a> (#74b)</li>
+ <li><a href="tests/css3-modsel-75.html">NEGATED :nth-of-type() pseudo-class</a> (#75)</li>
+ <li><a href="tests/css3-modsel-75b.html">NEGATED :nth-of-type() pseudo-class</a> (#75b)</li>
+ <li><a href="tests/css3-modsel-76.html">NEGATED :nth-last-of-type() pseudo-class</a> (#76)</li>
+ <li><a href="tests/css3-modsel-76b.html">NEGATED :nth-last-of-type() pseudo-class</a> (#76b)</li>
+ <li><a href="tests/css3-modsel-77.html">NEGATED :first-child pseudo-class</a> (#77)</li>
+ <li><a href="tests/css3-modsel-77b.html">NEGATED :first-child pseudo-class</a> (#77b)</li>
+ <li><a href="tests/css3-modsel-78.html">NEGATED :last-child pseudo-class</a> (#78)</li>
+ <li><a href="tests/css3-modsel-78b.html">NEGATED :last-child pseudo-class</a> (#78b)</li>
+ <li><a href="tests/css3-modsel-79.html">NEGATED :first-of-type pseudo-class</a> (#79)</li>
+ <li><a href="tests/css3-modsel-80.html">NEGATED :last-of-type pseudo-class</a> (#80)</li>
+ <li><a href="tests/css3-modsel-81.html">NEGATED :only-child pseudo-class</a> (#81)</li>
+ <li><a href="tests/css3-modsel-81b.html">NEGATED :only-child pseudo-class</a> (#81b)</li>
+ <li><a href="tests/css3-modsel-82.html">NEGATED :only-of-type pseudo-class</a> (#82)</li>
+ <li><a href="tests/css3-modsel-82b.html">NEGATED :only-of-type pseudo-class</a> (#82b)</li>
+ <li><a href="tests/css3-modsel-83.html">Negation pseudo-class cannot be an argument of itself</a> (#83)</li>
+ <li><a href="tests/css3-modsel-84.html">:contains() pseudo-class</a> (#84)</li>
+ <li><a href="tests/css3-modsel-84b.html">:contains() pseudo-class</a> (#84b)</li>
+ <li><a href="tests/css3-modsel-85.html">NEGATED :contains() pseudo-class</a> (#85)</li>
+ <li><a href="tests/css3-modsel-87.html">Nondeterministic matching of direct and indirect adjacent combinators</a> (#87)</li>
+ <li><a href="tests/css3-modsel-87b.html">Nondeterministic matching of direct and indirect adjacent combinators</a> (#87b)</li>
+ <li><a href="tests/css3-modsel-88.html">Nondeterministic matching of descendant and direct adjacent combinators</a> (#88)</li>
+ <li><a href="tests/css3-modsel-88b.html">Nondeterministic matching of descendant and direct adjacent combinators</a> (#88b)</li>
+ <li><a href="tests/css3-modsel-89.html">Simple combination of descendant and child combinators</a> (#89)</li>
+ <li><a href="tests/css3-modsel-90.html">Simple combination of direct and indirect adjacent combinators</a> (#90)</li>
+ <li><a href="tests/css3-modsel-90b.html">Simple combination of direct and indirect adjacent combinators</a> (#90b)</li>
+ <li><a href="tests/css3-modsel-144.html">NEGATED :enabled:disabled pseudo-classes</a> (#144)</li>
+ <li><a href="tests/css3-modsel-148.html">:empty pseudo-class and text</a> (#148)</li>
+ <li><a href="tests/css3-modsel-149.html">:empty pseudo-class and empty elements</a> (#149)</li>
+ <li><a href="tests/css3-modsel-149b.html">:empty pseudo-class and empty elements</a> (#149b)</li>
+ <li><a href="tests/css3-modsel-151.html">:empty pseudo-class and whitespace</a> (#151)</li>
+ <li><a href="tests/css3-modsel-152.html">:empty pseudo-class and elements</a> (#152)</li>
+ <li><a href="tests/css3-modsel-154.html">Syntax and parsing</a> (#154)</li>
+ <li><a href="tests/css3-modsel-155.html">Syntax and parsing</a> (#155)</li>
+ <li><a href="tests/css3-modsel-155a.html">Syntax and parsing</a> (#155a)</li>
+ <li><a href="tests/css3-modsel-155b.html">Syntax and parsing</a> (#155b)</li>
+ <li><a href="tests/css3-modsel-155c.html">Syntax and parsing</a> (#155c)</li>
+ <li><a href="tests/css3-modsel-155d.html">Syntax and parsing</a> (#155d)</li>
+ <li><a href="tests/css3-modsel-156.html">Syntax and parsing</a> (#156)</li>
+ <li><a href="tests/css3-modsel-156b.html">Syntax and parsing</a> (#156b)</li>
+ <li><a href="tests/css3-modsel-156c.html">Syntax and parsing</a> (#156c)</li>
+ <li><a href="tests/css3-modsel-157.html">Syntax and parsing</a> (#157)</li>
+ <li><a href="tests/css3-modsel-158.html">Syntax and parsing</a> (#158)</li>
+ <li><a href="tests/css3-modsel-159.html">Syntax and parsing of new pseudo-elements</a> (#159)</li>
+ <li><a href="tests/css3-modsel-160.html">Syntax and parsing of unknown psuedo-classes</a> (#160)</li>
+ <li><a href="tests/css3-modsel-161.html">Syntax and parsing of unknown psuedo-classes and pseudo-elements</a> (#161)</li>
+ <li><a href="tests/css3-modsel-162.html">Contextual ::selection</a> (#162)</li>
+ <li><a href="tests/css3-modsel-163.html">Contextual :contains</a> (#163)</li>
+ <li><a href="tests/css3-modsel-164.html">:focus with ::selection</a> (#164)</li>
+ <li><a href="tests/css3-modsel-165.html">:hover with ::selection</a> (#165)</li>
+ <li><a href="tests/css3-modsel-166.html">:first-letter with ::first-letter</a> (#166)</li>
+ <li><a href="tests/css3-modsel-166a.html">:first-letter with ::first-letter</a> (#166a)</li>
+ <li><a href="tests/css3-modsel-167.html">:first-line with ::first-line</a> (#167)</li>
+ <li><a href="tests/css3-modsel-167a.html">:first-line with ::first-line</a> (#167a)</li>
+ <li><a href="tests/css3-modsel-168.html">:before with ::before</a> (#168)</li>
+ <li><a href="tests/css3-modsel-168a.html">:before with ::before</a> (#168a)</li>
+ <li><a href="tests/css3-modsel-169.html">:after with ::after</a> (#169)</li>
+ <li><a href="tests/css3-modsel-169a.html">:after with ::after</a> (#169a)</li>
+ <li><a href="tests/css3-modsel-170.html">Long chains of selectors</a> (#170)</li>
+ <li><a href="tests/css3-modsel-170a.html">Long chains of selectors</a> (#170a)</li>
+ <li><a href="tests/css3-modsel-170b.html">Long chains of selectors</a> (#170b)</li>
+ <li><a href="tests/css3-modsel-170c.html">Long chains of selectors</a> (#170c)</li>
+ <li><a href="tests/css3-modsel-170d.html">Long chains of selectors</a> (#170d)</li>
+ <li><a href="tests/css3-modsel-175a.html">Parsing: Numbers in classes</a> (#175a)</li>
+ <li><a href="tests/css3-modsel-175b.html">Parsing: Numbers in classes</a> (#175b)</li>
+ <li><a href="tests/css3-modsel-175c.html">Parsing: Numbers in classes</a> (#175c)</li>
+ <li><a href="tests/css3-modsel-d1.html">NEGATED Dynamic handling of :empty</a> (#d1)</li>
+ <li><a href="tests/css3-modsel-d1b.html">NEGATED Dynamic handling of :empty</a> (#d1b)</li>
+ <li><a href="tests/css3-modsel-d2.html">Dynamic handling of combinators</a> (#d2)</li>
+ <li><a href="tests/css3-modsel-d4.html">Dynamic updating of :first-child and :last-child</a> (#d4)</li>
+ <li><a href="tests/css3-modsel-d5.html">:indeterminate</a> (#d5)</li>
+ <li><a href="tests/css3-modsel-d5a.html">:indeterminate and :checked</a> (#d5a)</li>
+ <li><a href="tests/css3-modsel-d5b.html">NEGATED :indeterminate and :checked</a> (#d5b)</li>
+ <li><a href="tests/css3-modsel-d5c.html">:indeterminate and :checked</a> (#d5c)</li>
+ <li><a href="tests/css3-modsel-d5d.html">:indeterminate with :checked</a> (#d5d)</li>
+ <li><a href="tests/css3-modsel-d5e.html">NEGATED :indeterminate with :checked</a> (#d5e)</li>
+ </ul>
+ <p>See also: <a href="../index.html">Index</a>, <a href="../xhtml/index.html">XHTML</a>, <a href="../xml/index.html">XML</a></p>
+ </body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/166a-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/166a-expected.txt
new file mode 100644
index 0000000..05da7b7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/166a-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderInline at (0,0) size 9x17 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 9x17 [bgcolor=#000000]
+ text run at (0,0) width 9: "T"
+ RenderText {TEXT} at (9,0) size 443x17
+ text run at (9,0) width 443: "he first letter of this paragraph should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/166a.html b/third_party/WebKit/LayoutTests/fast/selectors/166a.html
new file mode 100644
index 0000000..632ced6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/166a.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:first-letter with ::first-letter</title>
+ <style type="text/css">
+ p::first-letter { background-color: red; }
+ p:first-letter { background-color: lime; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-166.html" title=":first-letter with ::first-letter">
+ <link rel="next" href="css3-modsel-167.html" title=":first-line with ::first-line">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>The first letter of this paragraph should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/167-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/167-expected.txt
new file mode 100644
index 0000000..5b2d092
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/167-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 441x17
+ text run at (0,0) width 441: "The first line of this paragraph should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/167.html b/third_party/WebKit/LayoutTests/fast/selectors/167.html
new file mode 100644
index 0000000..15268d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/167.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:first-line with ::first-line</title>
+ <style type="text/css">
+ p:first-line { background-color: red; }
+ p::first-line { background-color: lime; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-166a.html" title=":first-letter with ::first-letter">
+ <link rel="next" href="css3-modsel-167a.html" title=":first-line with ::first-line">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>The first line of this paragraph should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/167a-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/167a-expected.txt
new file mode 100644
index 0000000..5b2d092
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/167a-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 441x17
+ text run at (0,0) width 441: "The first line of this paragraph should have a green background."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/167a.html b/third_party/WebKit/LayoutTests/fast/selectors/167a.html
new file mode 100644
index 0000000..f8ec562
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/167a.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:first-line with ::first-line</title>
+ <style type="text/css">
+ p::first-line { background-color: red; }
+ p:first-line { background-color: lime; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-167.html" title=":first-line with ::first-line">
+ <link rel="next" href="css3-modsel-168.html" title=":before with ::before">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>The first line of this paragraph should have a green background.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/168-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/168-expected.txt
new file mode 100644
index 0000000..2e63bc4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/168-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x76
+ RenderBlock {HTML} at (0,0) size 800x76
+ RenderBody {BODY} at (8,14) size 784x48
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 91x17
+ text run at (0,0) width 91: "This test has "
+ RenderInline {SPAN} at (0,0) size 51x17
+ RenderInline at (0,0) size 51x17 [bgcolor=#00FF00]
+ RenderText at (91,0) size 51x17
+ text run at (91,0) width 51: "PASSED"
+ RenderText {TEXT} at (142,0) size 5x17
+ text run at (142,0) width 5: "."
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 490x17
+ text run at (0,0) width 490: "(If the previous line just reads \"This test has .\" then this test has failed.)"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/168.html b/third_party/WebKit/LayoutTests/fast/selectors/168.html
new file mode 100644
index 0000000..64dd35f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/168.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:before with ::before</title>
+ <style type="text/css">
+ span:before { background-color: red; content: 'FAILED'; }
+ span::before { background-color: lime; content: 'PASSED'; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-167a.html" title=":first-line with ::first-line">
+ <link rel="next" href="css3-modsel-168a.html" title=":before with ::before">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This test has <span></span>.</p>
+ <p>(If the previous line just reads &quot;This test has .&quot; then this test has failed.)</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/168a-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/168a-expected.txt
new file mode 100644
index 0000000..2e63bc4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/168a-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x76
+ RenderBlock {HTML} at (0,0) size 800x76
+ RenderBody {BODY} at (8,14) size 784x48
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 91x17
+ text run at (0,0) width 91: "This test has "
+ RenderInline {SPAN} at (0,0) size 51x17
+ RenderInline at (0,0) size 51x17 [bgcolor=#00FF00]
+ RenderText at (91,0) size 51x17
+ text run at (91,0) width 51: "PASSED"
+ RenderText {TEXT} at (142,0) size 5x17
+ text run at (142,0) width 5: "."
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 490x17
+ text run at (0,0) width 490: "(If the previous line just reads \"This test has .\" then this test has failed.)"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/168a.html b/third_party/WebKit/LayoutTests/fast/selectors/168a.html
new file mode 100644
index 0000000..0815209
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/168a.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:before with ::before</title>
+ <style type="text/css">
+ span::before { background-color: red; content: 'FAILED'; }
+ span:before { background-color: lime; content: 'PASSED'; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-168.html" title=":before with ::before">
+ <link rel="next" href="css3-modsel-169.html" title=":after with ::after">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This test has <span></span>.</p>
+ <p>(If the previous line just reads &quot;This test has .&quot; then this test has failed.)</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/169-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/169-expected.txt
new file mode 100644
index 0000000..2e63bc4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/169-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x76
+ RenderBlock {HTML} at (0,0) size 800x76
+ RenderBody {BODY} at (8,14) size 784x48
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 91x17
+ text run at (0,0) width 91: "This test has "
+ RenderInline {SPAN} at (0,0) size 51x17
+ RenderInline at (0,0) size 51x17 [bgcolor=#00FF00]
+ RenderText at (91,0) size 51x17
+ text run at (91,0) width 51: "PASSED"
+ RenderText {TEXT} at (142,0) size 5x17
+ text run at (142,0) width 5: "."
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 490x17
+ text run at (0,0) width 490: "(If the previous line just reads \"This test has .\" then this test has failed.)"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/169.html b/third_party/WebKit/LayoutTests/fast/selectors/169.html
new file mode 100644
index 0000000..9886feb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/169.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:after with ::after</title>
+ <style type="text/css">
+ span:after { background-color: red; content: 'FAILED'; }
+ span::after { background-color: lime; content: 'PASSED'; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-168a.html" title=":before with ::before">
+ <link rel="next" href="css3-modsel-169a.html" title=":after with ::after">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This test has <span></span>.</p>
+ <p>(If the previous line just reads &quot;This test has .&quot; then this test has failed.)</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/169a-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/169a-expected.txt
new file mode 100644
index 0000000..2e63bc4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/169a-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x76
+ RenderBlock {HTML} at (0,0) size 800x76
+ RenderBody {BODY} at (8,14) size 784x48
+ RenderBlock {P} at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 91x17
+ text run at (0,0) width 91: "This test has "
+ RenderInline {SPAN} at (0,0) size 51x17
+ RenderInline at (0,0) size 51x17 [bgcolor=#00FF00]
+ RenderText at (91,0) size 51x17
+ text run at (91,0) width 51: "PASSED"
+ RenderText {TEXT} at (142,0) size 5x17
+ text run at (142,0) width 5: "."
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 490x17
+ text run at (0,0) width 490: "(If the previous line just reads \"This test has .\" then this test has failed.)"
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/169a.html b/third_party/WebKit/LayoutTests/fast/selectors/169a.html
new file mode 100644
index 0000000..b4dc220
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/169a.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>:after with ::after</title>
+ <style type="text/css">
+ span::after { background-color: red; content: 'FAILED'; }
+ span:after { background-color: lime; content: 'PASSED'; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-169.html" title=":after with ::after">
+ <link rel="next" href="css3-modsel-170.html" title="Long chains of selectors">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This test has <span></span>.</p>
+ <p>(If the previous line just reads &quot;This test has .&quot; then this test has failed.)</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/170-expected.txt
new file mode 100644
index 0000000..e92a342
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17
+ RenderInline {SPAN} at (0,0) size 177x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170.html b/third_party/WebKit/LayoutTests/fast/selectors/170.html
new file mode 100644
index 0000000..662d5af
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Long chains of selectors</title>
+ <style type="text/css">
+ span { color: red; }
+ span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span { color: green } /* 2049 */
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-169a.html" title=":after with ::after">
+ <link rel="next" href="css3-modsel-170a.html" title="Long chains of selectors">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p><span>This line should be green.</span></p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170a-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/170a-expected.txt
new file mode 100644
index 0000000..4a7f632
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170a-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170a.html b/third_party/WebKit/LayoutTests/fast/selectors/170a.html
new file mode 100644
index 0000000..b5a5d21
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170a.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Long chains of selectors</title>
+ <style type="text/css">
+ .span { color: red; }
+ .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span { color: green } /* 2049 */
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-170.html" title="Long chains of selectors">
+ <link rel="next" href="css3-modsel-170b.html" title="Long chains of selectors">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="span">This line should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/170b-expected.txt
new file mode 100644
index 0000000..4a7f632
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170b-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170b.html b/third_party/WebKit/LayoutTests/fast/selectors/170b.html
new file mode 100644
index 0000000..723a8fc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170b.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Long chains of selectors</title>
+ <style type="text/css">
+ .span { color: red; }
+ .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span { color: green } /* 2049 */
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-170a.html" title="Long chains of selectors">
+ <link rel="next" href="css3-modsel-170c.html" title="Long chains of selectors">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="span">This line should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170c-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/170c-expected.txt
new file mode 100644
index 0000000..4a7f632
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170c-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170c.html b/third_party/WebKit/LayoutTests/fast/selectors/170c.html
new file mode 100644
index 0000000..a2cb6ea
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170c.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Long chains of selectors</title>
+ <style type="text/css">
+ p.span { color: red; }
+ p:not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span) { color: green } /* 2049 */
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-170b.html" title="Long chains of selectors">
+ <link rel="next" href="css3-modsel-170d.html" title="Long chains of selectors">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This line should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170d-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/170d-expected.txt
new file mode 100644
index 0000000..4a7f632
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170d-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/170d.html b/third_party/WebKit/LayoutTests/fast/selectors/170d.html
new file mode 100644
index 0000000..5630628
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/170d.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Long chains of selectors</title>
+ <style type="text/css">
+ p { color: red; }
+ p:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child { color: green } /* 2049 */
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-170c.html" title="Long chains of selectors">
+ <link rel="next" href="css3-modsel-175a.html" title="Parsing: Numbers in classes">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p>This line should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/175a-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/175a-expected.txt
new file mode 100644
index 0000000..4a7f632
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/175a-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/175a.html b/third_party/WebKit/LayoutTests/fast/selectors/175a.html
new file mode 100644
index 0000000..8e2da36
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/175a.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Parsing: Numbers in classes</title>
+ <style type="text/css">
+ p { color: green; }
+ .13 { color: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-170d.html" title="Long chains of selectors">
+ <link rel="next" href="css3-modsel-175b.html" title="Parsing: Numbers in classes">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="13">This line should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/175b-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/175b-expected.txt
new file mode 100644
index 0000000..4a7f632
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/175b-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/175b.html b/third_party/WebKit/LayoutTests/fast/selectors/175b.html
new file mode 100644
index 0000000..ab4845e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/175b.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Parsing: Numbers in classes</title>
+ <style type="text/css">
+ p { color: green; }
+ .\13 { color: red; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-175a.html" title="Parsing: Numbers in classes">
+ <link rel="next" href="css3-modsel-175c.html" title="Parsing: Numbers in classes">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="13">This line should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/175c-expected.txt b/third_party/WebKit/LayoutTests/fast/selectors/175c-expected.txt
new file mode 100644
index 0000000..4a7f632
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/175c-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,14) size 784x17
+ RenderBlock {P} at (0,0) size 784x17 [color=#008000]
+ RenderText {TEXT} at (0,0) size 177x17
+ text run at (0,0) width 177: "This line should be green."
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/175c.html b/third_party/WebKit/LayoutTests/fast/selectors/175c.html
new file mode 100644
index 0000000..49efb0b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/selectors/175c.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Parsing: Numbers in classes</title>
+ <style type="text/css">
+ p { color: red; }
+ .\31 \33 { color: green; }
+</style>
+ <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
+ <link rel="prev" href="css3-modsel-175b.html" title="Parsing: Numbers in classes">
+ <link rel="next" href="css3-modsel-d1.html" title="NEGATED Dynamic handling of :empty">
+ <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
+ <link rel="up" href="./index.html">
+ <link rel="top" href="../../index.html">
+ </head>
+ <body>
+ <p class="13">This line should be green.</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/001-expected.txt b/third_party/WebKit/LayoutTests/fast/table/001-expected.txt
new file mode 100644
index 0000000..3e1dd43
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/001-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,0) size 41x23
+ RenderTable {TABLE} at (0,0) size 41x23 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x23 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 37x19 [color=#FFFFFF] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 35x17
+ text run at (1,1) width 35: "Hello"
diff --git a/third_party/WebKit/LayoutTests/fast/table/001.html b/third_party/WebKit/LayoutTests/fast/table/001.html
new file mode 100644
index 0000000..cae6fdb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/001.html
@@ -0,0 +1,5 @@
+<html>
+<table style="position:absolute;background-color:black;top:0px;bottom:10px;left:0px;right:0px">
+<tr><td style="color:white">Hello
+</table>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/table/002-expected.txt b/third_party/WebKit/LayoutTests/fast/table/002-expected.txt
new file mode 100644
index 0000000..da18dbf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/002-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x38
+ RenderBlock {HTML} at (0,0) size 800x38
+ RenderBody {BODY} at (8,8) size 784x22
+ RenderTable {TABLE} at (0,0) size 784x22
+ RenderTableSection {TBODY} at (0,0) size 0x22
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,2) size 712x17 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 230x17
+ text run at (0,0) width 230: "Post to Confessions of a Mozillian"
+ RenderTableCell {TD} at (712,2) size 72x17 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 23x17
+ text run at (0,0) width 23: "foo"
diff --git a/third_party/WebKit/LayoutTests/fast/table/002.html b/third_party/WebKit/LayoutTests/fast/table/002.html
new file mode 100644
index 0000000..55f3e3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/002.html
@@ -0,0 +1,7 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<table width="100%" cellpadding=0 cellspacing=0 border=0><tr><td height=22 nowrap class="pageTitle">
+ Post to Confessions of a Mozillian
+ </td>
+ <td>foo
+ </table> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/003-expected.txt b/third_party/WebKit/LayoutTests/fast/table/003-expected.txt
new file mode 100644
index 0000000..0e82a12
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/003-expected.txt
@@ -0,0 +1,76 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x488
+ RenderBlock {HTML} at (0,0) size 800x488
+ RenderBody {BODY} at (8,8) size 784x472
+ RenderTable {TABLE} at (0,0) size 784x50
+ RenderTableSection {TBODY} at (0,0) size 0x50
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,5) size 49x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 32x17
+ text run at (1,1) width 32: "URL:"
+ RenderTableCell {TD} at (53,2) size 729x25 [r=0 c=1 rs=1 cs=1]
+ RenderLineEdit {INPUT} at (1,3) size 727x19
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,29) size 780x19 [bgcolor=#FF0000] [r=1 c=0 rs=1 cs=2]
+ RenderText {TEXT} at (1,1) size 266x17
+ text run at (1,1) width 266: "Alongwordtogiveyouanicebigminwidth."
+ RenderTable {TABLE} at (0,50) size 100x104 [bgcolor=#FF0000]
+ RenderTableSection {TBODY} at (2,2) size 0x100 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,48) size 92x4 [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (0,154) size 154x124
+ RenderTableSection {TBODY} at (2,2) size 0x120
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 146x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 34x17
+ text run at (2,2) width 34: "hello"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,25) size 146x21 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 74x17
+ text run at (2,2) width 74: "more hello"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,48) size 146x21 [r=2 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 38x17
+ text run at (2,2) width 38: "world"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,71) size 146x47 [r=3 c=0 rs=1 cs=1]
+ RenderTextArea {TEXTAREA} at (4,2) size 138x43
+ RenderTable {TABLE} at (0,278) size 106x74
+ RenderTableSection {TBODY} at (0,0) size 0x74
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 102x70 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 93x68
+ text run at (1,1) width 93: "I should wrap"
+ text run at (1,18) width 89: "and not have"
+ text run at (1,35) width 60: "nowrap. "
+ text run at (61,35) width 5: "I"
+ text run at (1,52) width 92: "really should."
+ RenderTable {TABLE} at (0,352) size 106x74
+ RenderTableSection {TBODY} at (0,0) size 0x74
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 102x70 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (1,1) size 100x68
+ RenderText {TEXT} at (0,0) size 93x68
+ text run at (0,0) width 93: "I should wrap"
+ text run at (0,17) width 89: "and not have"
+ text run at (0,34) width 60: "nowrap. "
+ text run at (60,34) width 5: "I"
+ text run at (0,51) width 92: "really should."
+ RenderTable {TABLE} at (0,426) size 392x23
+ RenderTableSection {TBODY} at (0,0) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 388x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 386x17
+ text run at (1,1) width 155: "I should have nowrap. "
+ text run at (156,1) width 105: "I really should. "
+ text run at (261,1) width 126: "Definitely. Should."
+ RenderTable {TABLE} at (0,449) size 392x23
+ RenderTableSection {TBODY} at (0,0) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 388x19 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (1,1) size 386x17
+ RenderText {TEXT} at (0,0) size 386x17
+ text run at (0,0) width 155: "I should have nowrap. "
+ text run at (155,0) width 105: "I really should. "
+ text run at (260,0) width 126: "Definitely. Should."
diff --git a/third_party/WebKit/LayoutTests/fast/table/003.html b/third_party/WebKit/LayoutTests/fast/table/003.html
new file mode 100644
index 0000000..3f0b984
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/003.html
@@ -0,0 +1,31 @@
+<table width=100% >
+<tr><td>URL: <td width=100%><input style="width:100%"></tr>
+<tr><td colspan=2 bgcolor=red>Alongwordtogiveyouanicebigminwidth.
+</td></tr>
+</table>
+
+<table border=2 bgcolor=red height=100 width=100><tr><td></tr></table>
+
+<table height=120 border=2>
+<tr><td>hello
+<tr><td>more hello
+<tr><td>world
+<tr><td height=100%><textarea style="height:100%"></textarea>
+</table>
+
+<table>
+<tr><td width=100 nowrap>I should wrap and not have nowrap. I really should.
+</table>
+
+<table>
+<tr><td width=100 nowrap><div>I should wrap and not have nowrap. I really should.</div>
+</table>
+
+<table>
+<tr><td width=100 style="white-space:nowrap">I should have nowrap. I really should. Definitely. Should.
+</table>
+
+<table>
+<tr><td width=100 style="white-space:nowrap"><div>I should have nowrap. I really should. Definitely. Should.</div>
+</table>
+
diff --git a/third_party/WebKit/LayoutTests/fast/table/004-expected.txt b/third_party/WebKit/LayoutTests/fast/table/004-expected.txt
new file mode 100644
index 0000000..c0a5966
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/004-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x243
+ RenderBlock {HTML} at (0,0) size 800x243
+ RenderBody {BODY} at (8,8) size 784x227
+ RenderTable {TABLE} at (0,0) size 310x227
+ RenderTableSection {TBODY} at (2,2) size 0x223
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 237x219 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (101,101) size 35x17
+ text run at (101,101) width 35: "Hello"
+ RenderTableCell {TD} at (241,102) size 63x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 61x17
+ text run at (1,1) width 61: "Goodbye"
+ RenderBlock {DIV} at (0,227) size 784x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/004.html b/third_party/WebKit/LayoutTests/fast/table/004.html
new file mode 100644
index 0000000..d050f69
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/004.html
@@ -0,0 +1,7 @@
+<html>
+<table border=2 cellpadding=100>
+<tr><td>Hello<td style="padding:0px">Goodbye
+</table>
+
+<div>
+
diff --git a/third_party/WebKit/LayoutTests/fast/table/005-expected.txt b/third_party/WebKit/LayoutTests/fast/table/005-expected.txt
new file mode 100644
index 0000000..956e28c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/005-expected.txt
@@ -0,0 +1,72 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x101
+ RenderBlock {HTML} at (0,0) size 800x101
+ RenderBody {BODY} at (8,8) size 784x85
+ RenderTable {TABLE} at (0,0) size 770x85
+ RenderTableSection {TBODY} at (0,0) size 0x85
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,34) size 130x17 [bgcolor=#008000] [r=0 c=0 rs=5 cs=1]
+ RenderTable {TABLE} at (0,0) size 130x17 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x17
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 130x17 [r=0 c=0 rs=1 cs=1]
+ RenderImage {IMG} at (0,0) size 130x0
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "1"
+ RenderTableCell {TD} at (130,39) size 1x7 [bgcolor=#FF0000] [r=0 c=1 rs=5 cs=1]
+ RenderImage {IMG} at (0,0) size 1x7 [bgcolor=#000000]
+ RenderTableCell {TD} at (131,0) size 280x17 [bgcolor=#800080] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "3"
+ RenderTableCell {TD} at (411,0) size 9x17 [bgcolor=#0000FF] [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "4"
+ RenderTableCell {TD} at (420,0) size 350x17 [bgcolor=#FFA500] [r=0 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "5"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (131,25) size 280x17 [bgcolor=#800080] [r=1 c=2 rs=2 cs=1]
+ RenderImage {IMG} at (0,0) size 280x0 [bgcolor=#000000]
+ RenderBR {BR} at (0,0) size 0x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "3"
+ RenderTableCell {TD} at (411,25) size 9x17 [bgcolor=#0000FF] [r=1 c=3 rs=2 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "4"
+ RenderTableCell {TD} at (420,17) size 350x17 [bgcolor=#FFA500] [r=1 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "5"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (420,34) size 350x17 [r=2 c=4 rs=1 cs=1]
+ RenderTable {TABLE} at (0,0) size 350x17 [bgcolor=#FFA500]
+ RenderTableSection {TBODY} at (0,0) size 0x17 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 273x17 [r=0 c=0 rs=1 cs=1]
+ RenderImage {IMG} at (0,0) size 267x0
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "5"
+ RenderTableCell {TD} at (273,8) size 77x0 [r=0 c=1 rs=1 cs=1]
+ RenderImage {IMG} at (0,0) size 77x0
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (131,51) size 280x17 [bgcolor=#800080] [r=3 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "3"
+ RenderTableCell {TD} at (411,51) size 9x17 [bgcolor=#0000FF] [r=3 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "4"
+ RenderTableCell {TD} at (420,51) size 350x17 [bgcolor=#FFA500] [r=3 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "5"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (131,68) size 280x17 [bgcolor=#800080] [r=4 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "3"
+ RenderTableCell {TD} at (411,68) size 9x17 [bgcolor=#0000FF] [r=4 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "4"
+ RenderTableCell {TD} at (420,68) size 350x17 [bgcolor=#FFA500] [r=4 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "5"
diff --git a/third_party/WebKit/LayoutTests/fast/table/005.html b/third_party/WebKit/LayoutTests/fast/table/005.html
new file mode 100644
index 0000000..6f38592
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/005.html
@@ -0,0 +1,51 @@
+<table width="770" border="0" cellpadding="0" cellspacing="0">
+ <tbody><tr>
+ <td rowspan="5" width="126" style="background-color:green; white-space:nowrap">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tbody><tr>
+ <td><img width=130 height=0><br>1</td>
+ </tr>
+ </tbody></table>
+ </td>
+ <!-- THIS CELL SHOULD BE 10 PIXELS WIDE, BUT IT GETS SHRUNK TO 1 PIXEL! -->
+ <td rowspan="5" bgcolor=red width="10"><img width="1" height="7" border="0"></td>
+ <td bgcolor=purple>3</td>
+ <td bgcolor=blue>4</td>
+ <td bgcolor=orange>5</td>
+
+ </td>
+ </tr>
+ <tr >
+ <td rowspan="2" width="280" bgcolor=purple><img width=280 height=0><br>3
+ </td>
+
+ <td rowspan="2" width="10" bgcolor=blue>4</td>
+ <td width="344" bgcolor=orange>5
+ </td>
+ </tr>
+ <tr >
+ <td>
+<table width="344" border="0" cellpadding="0" cellspacing="0" bgcolor=orange>
+ <tbody><tr>
+ <td width="267" style="padding-right: 6px;"><img width=267 height=0><br>5</td>
+ <td width="77" align="right"><img width="77" height="0" border="0"></td>
+ </tr>
+</tbody></table>
+
+
+</td>
+ </tr>
+ <tr>
+ <td bgcolor=purple>3</td>
+ <td bgcolor=blue>4</td>
+ <td bgcolor=orange>5</td>
+ </tr>
+ <tr >
+ <td width="280" bgcolor="purple">3</td>
+<td width="10" bgcolor="blue">4</td>
+ <td width="344" bgcolor="orange">5</td>
+ </tr>
+
+</tbody></table>
+
+</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/006-expected.txt b/third_party/WebKit/LayoutTests/fast/table/006-expected.txt
new file mode 100644
index 0000000..63ad102
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/006-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x239
+ RenderBlock {HTML} at (0,0) size 800x239
+ RenderBody {BODY} at (8,8) size 784x223
+ RenderTable {TABLE} at (0,0) size 231x223
+ RenderTableSection {TBODY} at (2,2) size 0x219
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 227x219 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (101,101) size 25x17
+ text run at (101,101) width 25: "Foo"
diff --git a/third_party/WebKit/LayoutTests/fast/table/006.html b/third_party/WebKit/LayoutTests/fast/table/006.html
new file mode 100644
index 0000000..51c56018
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/006.html
@@ -0,0 +1,14 @@
+<html>
+<head>
+<style>
+.foo {
+ padding:100px;
+}
+</style>
+</head>
+
+<table border="2" cellpadding="5" cellspacing="0">
+<tr>
+<td class="foo">Foo
+</tr>
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/table/007-expected.txt b/third_party/WebKit/LayoutTests/fast/table/007-expected.txt
new file mode 100644
index 0000000..6453414
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/007-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x104
+ RenderBlock {HTML} at (0,0) size 800x104
+ RenderBody {BODY} at (8,8) size 784x88
+ RenderTable {TABLE} at (0,0) size 524x88
+ RenderTableSection {TBODY} at (1,1) size 0x86
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 27x3 [r=0 c=0 rs=3 cs=1]
+ RenderImage {IMG} at (1,1) size 25x1
+ RenderTableCell {TD} at (27,0) size 495x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 23x17
+ text run at (1,1) width 23: "foo"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (27,48) size 495x19 [r=1 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (1,1) size 493x17
+ RenderText {TEXT} at (12,0) size 473x17
+ text run at (12,0) width 473: "Affordable, high-quality business services with unparalleled support."
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (27,67) size 495x19 [r=2 c=1 rs=2 cs=1]
+ RenderText {TEXT} at (1,1) size 436x17
+ text run at (1,1) width 436: "Wireless Services\x{2014}Take the Net with you when you\x{2019}re on the go"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,67) size 522x19 [r=3 c=0 rs=1 cs=2]
+ RenderText {TEXT} at (1,1) size 26x17
+ text run at (1,1) width 26: "goo"
diff --git a/third_party/WebKit/LayoutTests/fast/table/007.html b/third_party/WebKit/LayoutTests/fast/table/007.html
new file mode 100644
index 0000000..58ed23e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/007.html
@@ -0,0 +1,15 @@
+<html><body>
+
+ <table border="1" cellpadding="0" cellspacing="0">
+ <tr>
+ <td valign="top" width="25" rowspan="3"><img src="/i/spacer.gif" alt=" " height="1" width="25" border="0" /></td>
+ <td valign="top" width="493" height="48" background="">foo</td></tr>
+ <tr>
+ <td valign="top" width="493" class="prodSubCat"><div style="padding-left:12px" style="padding-top:3px">Affordable, high-quality business services with unparalleled support.
+
+ </td></tr>
+
+ <tr><td valign="top" rowspan="2" width="493" class="prodSubCat">Wireless Services&#151;Take the Net with you when you’re on the go</td></tr>
+
+ <tr><td valign="bottom" colspan="2">goo</td></tr></table>
+</body></html>
diff --git a/third_party/WebKit/LayoutTests/fast/table/008-expected.txt b/third_party/WebKit/LayoutTests/fast/table/008-expected.txt
new file mode 100644
index 0000000..5204aa5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/008-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x154
+ RenderBlock {HTML} at (0,0) size 800x154
+ RenderBody {BODY} at (8,8) size 784x138
+ RenderTable {TABLE} at (0,0) size 140x138
+ RenderTableSection {TBODY} at (0,0) size 0x138
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 140x138 [r=0 c=0 rs=1 cs=1]
+ RenderImage {IMG} at (0,0) size 129x104
+ RenderImage {IMG} at (0,104) size 129x34
diff --git a/third_party/WebKit/LayoutTests/fast/table/008.html b/third_party/WebKit/LayoutTests/fast/table/008.html
new file mode 100644
index 0000000..e6b9605
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/008.html
@@ -0,0 +1,9 @@
+<html>
+
+ <table border="0" cellspacing="0" cellpadding="0">
+
+ <tr>
+ <td align="left" valign="top" width="140" ><img border=5 src="maccom%20Files/logo100_bot.gif" height="94" width="119"><img border=5 src="maccom%20Files/header_mac100.gif" height="24" width="119"></td>
+ </table>
+
+ \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/009-expected.txt b/third_party/WebKit/LayoutTests/fast/table/009-expected.txt
new file mode 100644
index 0000000..46cd283
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/009-expected.txt
@@ -0,0 +1,42 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x236
+ RenderBlock {HTML} at (0,0) size 800x236
+ RenderBody {BODY} at (0,0) size 800x222 [bgcolor=#FFFFFF]
+ RenderBlock {CENTER} at (0,0) size 800x222 [bgcolor=#000000]
+ RenderTable {TABLE} at (0,0) size 800x222 [bgcolor=#CCCCCC]
+ RenderTableSection {TBODY} at (1,1) size 0x220 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 798x220 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (82,1) size 634x54
+ RenderTable {TABLE} at (2,2) size 630x216 [bgcolor=#CCCCCC]
+ RenderTableSection {TBODY} at (2,2) size 0x212 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (15,15) size 596x182 [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (249,1) size 97x180 [bgcolor=#CCCCCC]
+ RenderTableSection {TBODY} at (0,0) size 0x180 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 97x180 [r=0 c=0 rs=1 cs=1]
+ RenderImage {IMG} at (0,0) size 97x180
+ RenderBlock {P} at (0,236) size 800x0 [bgcolor=#000000]
+ RenderBlock (floating) {DIV} at (0,236) size 104x54 [bgcolor=#000000]
+ RenderText {TEXT} at (2,2) size 91x51
+ text run at (2,2) width 89: "Here is some"
+ text run at (2,19) width 36: "text. "
+ text run at (38,19) width 55: "I should"
+ text run at (2,36) width 63: "overflow."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (2,53) size 99x17
+ text run at (2,53) width 99: "I will overflow."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (2,70) size 99x34
+ text run at (2,70) width 99: "I definitely will"
+ text run at (2,87) width 58: "overflow"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (2,104) size 71x34
+ text run at (2,104) width 71: "I promis. I"
+ text run at (2,121) width 68: "lvoerflow."
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (2,138) size 45x17
+ text run at (2,138) width 45: "Really."
+ RenderBlock {P} at (0,236) size 800x0 [bgcolor=#000000]
diff --git a/third_party/WebKit/LayoutTests/fast/table/009.html b/third_party/WebKit/LayoutTests/fast/table/009.html
new file mode 100644
index 0000000..f2795e9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/009.html
@@ -0,0 +1,44 @@
+<html>
+<head>
+<base href="http://www.mac.com/">
+<title>HomePage</title>
+</head>
+<body bgcolor="#ffffff" marginheight="0" marginwidth="0" topmargin="0" rightmargin="0" leftmargin="0">
+<center>
+
+
+<TABLE WIDTH="100%" BORDER="1" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#cccccc">
+
+
+<!-- BEGIN THUMBNAIL AREA -->
+<TR><TD height=50 WIDTH="630" VALIGN="TOP" ALIGN="CENTER">
+<DIV ID="ThemeTableInlineDiv" STYLE="border:2px solid red; width:630px; height:50px;"><!--ThemeTable-->
+ <TABLE BORDER="2" CELLPADDING="0" CELLSPACING="15" BGCOLOR="#CCCCCC" WIDTH="100%">
+ <TR><TD WIDTH="97" ALIGN="CENTER" VALIGN="TOP">
+ <TABLE WIDTH="97" BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC">
+ <TR><TD VALIGN="TOP"><IMG BORDER="0" WIDTH="97" HEIGHT="180"></TD></TR>
+ </TABLE>
+
+ </TD></tr>
+ </table>
+</div>
+</td></tr>
+
+
+
+</table>
+
+
+
+</center>
+<p>
+<div style="float:left;height:50px;width:100px;border:2px solid red">
+Here is some text. I should overflow.<br>
+I will overflow.<br>
+I definitely will overflow<br>
+I promis. I lvoerflow.<br>
+Really.
+</div>
+</p>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/010-expected.txt b/third_party/WebKit/LayoutTests/fast/table/010-expected.txt
new file mode 100644
index 0000000..459afec
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/010-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x39
+ RenderBlock {HTML} at (0,0) size 800x39
+ RenderBody {BODY} at (8,8) size 784x23
+ RenderBlock {DIV} at (0,0) size 784x0
+ RenderTable {TABLE} at (0,0) size 106x23
+ RenderTableSection {TBODY} at (0,0) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 37x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 35x17
+ text run at (1,1) width 35: "Hello"
+ RenderTableCell {TD} at (41,2) size 63x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 61x17
+ text run at (1,1) width 61: "Goodbye"
diff --git a/third_party/WebKit/LayoutTests/fast/table/010.html b/third_party/WebKit/LayoutTests/fast/table/010.html
new file mode 100644
index 0000000..53918b3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/010.html
@@ -0,0 +1,8 @@
+<html>
+<table>
+<tr><td>Hello</td>
+<div>
+<td>Goodbye
+</table>
+</html>
+
diff --git a/third_party/WebKit/LayoutTests/fast/table/011-expected.txt b/third_party/WebKit/LayoutTests/fast/table/011-expected.txt
new file mode 100644
index 0000000..97fc17e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/011-expected.txt
@@ -0,0 +1,48 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x85
+ RenderBlock {HTML} at (0,0) size 800x85
+ RenderBody {BODY} at (8,8) size 784x69
+ RenderTable {TABLE} at (0,0) size 65x69
+ RenderTableSection {THEAD} at (0,0) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TH} at (2,2) size 13x19 [color=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 11x17
+ text run at (1,1) width 11: "H"
+ RenderTableCell {TH} at (17,2) size 14x19 [color=#FF0000] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,1) size 9x17
+ text run at (2,1) width 9: "E"
+ RenderTableCell {TH} at (33,2) size 14x19 [color=#FF0000] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 11x17
+ text run at (1,1) width 11: "A"
+ RenderTableCell {TH} at (49,2) size 14x19 [color=#FF0000] [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 12x17
+ text run at (1,1) width 12: "D"
+ RenderTableSection {TFOOT} at (0,46) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TH} at (2,2) size 13x19 [color=#0000FF] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,1) size 9x17
+ text run at (2,1) width 9: "F"
+ RenderTableCell {TH} at (17,2) size 14x19 [color=#0000FF] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 12x17
+ text run at (1,1) width 12: "O"
+ RenderTableCell {TH} at (33,2) size 14x19 [color=#0000FF] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 12x17
+ text run at (1,1) width 12: "O"
+ RenderTableCell {TH} at (49,2) size 14x19 [color=#0000FF] [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (2,1) size 10x17
+ text run at (2,1) width 10: "T"
+ RenderTableSection {TBODY} at (0,23) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 13x19 [color=#008000] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 9x17
+ text run at (1,1) width 9: "b"
+ RenderTableCell {TD} at (17,2) size 14x19 [color=#008000] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 9x17
+ text run at (1,1) width 9: "o"
+ RenderTableCell {TD} at (33,2) size 14x19 [color=#008000] [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 9x17
+ text run at (1,1) width 9: "d"
+ RenderTableCell {TD} at (49,2) size 14x19 [color=#008000] [r=0 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 8x17
+ text run at (1,1) width 8: "y"
diff --git a/third_party/WebKit/LayoutTests/fast/table/011.html b/third_party/WebKit/LayoutTests/fast/table/011.html
new file mode 100644
index 0000000..b12b213
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/011.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+ <title>TFOOT Demo</title>
+<style type="text/css">
+td {
+ color:yellow;
+ }
+thead th {
+ color:red;
+ }
+tfoot th {
+ color:blue;
+ }
+tbody td {
+ color:green;
+ }
+</style>
+</head>
+<body>
+
+<table>
+ <thead onclick="alert('foo');">
+ <tr>
+ <th>H</th><th>E</th><th>A</th><th>D</th>
+ </tr>
+ </thead>
+ <tfoot>
+ <tr>
+ <th>F</th><th>O</th><th>O</th><th>T</th>
+ </tr>
+ </tfoot>
+ <tbody>
+ <tr>
+ <td>b</td><td>o</td><td>d</td><td>y</td>
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/table/012-expected.txt b/third_party/WebKit/LayoutTests/fast/table/012-expected.txt
new file mode 100644
index 0000000..b95bcd0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/012-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x284
+ RenderBlock {HTML} at (0,0) size 800x284
+ RenderBody {BODY} at (8,8) size 784x268
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 31x17
+ text run at (0,0) width 31: "Text"
+ RenderTable {TABLE} at (0,17) size 784x100
+ RenderTableSection {TBODY} at (0,0) size 0x100
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,50) size 784x0 [r=0 c=0 rs=1 cs=1]
+ RenderBlock (anonymous) at (0,117) size 784x17
+ RenderText {TEXT} at (0,0) size 351x17
+ text run at (0,0) width 351: "This text is 100 pixels lower than the previous line."
+ RenderTable {TABLE} at (0,134) size 784x100
+ RenderTableSection {TBODY} at (0,0) size 0x100
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,234) size 784x17
+ RenderText {TEXT} at (0,0) size 351x17
+ text run at (0,0) width 351: "This text is 100 pixels lower than the previous line."
+ RenderTable {TABLE} at (0,251) size 784x0
+ RenderBlock (anonymous) at (0,251) size 784x17
+ RenderText {TEXT} at (0,0) size 335x17
+ text run at (0,0) width 335: "No space between this line and the previous line."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/012.html b/third_party/WebKit/LayoutTests/fast/table/012.html
new file mode 100644
index 0000000..ac9754c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/012.html
@@ -0,0 +1,13 @@
+<html>
+<body>
+Text
+<table height=100 width=100% cellpadding=0 cellspacing=0>
+<tr><td></td></table>
+This text is 100 pixels lower than the previous line.
+<table height=100 width=100% cellspacing=0 cellpadding=0><tr></tr></table>
+This text is 100 pixels lower than the previous line.
+<table height=100 width=100% cellspacing=0 cellpadding=0></table>
+No space between this line and the previous line.
+</body>
+</html>
+
diff --git a/third_party/WebKit/LayoutTests/fast/table/013-expected.txt b/third_party/WebKit/LayoutTests/fast/table/013-expected.txt
new file mode 100644
index 0000000..0130d24
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/013-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x116
+ RenderBlock {HTML} at (0,0) size 800x116
+ RenderBody {BODY} at (8,8) size 784x100
+ RenderTable {TABLE} at (0,0) size 784x100
+ RenderTableSection {TBODY} at (0,0) size 0x100
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,41) size 46x17 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 10x17
+ text run at (0,0) width 10: "A"
+ RenderTableCell {TD} at (46,41) size 691x17 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 9x17
+ text run at (0,0) width 9: "B"
+ RenderTableCell {TD} at (737,41) size 47x17 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 10x17
+ text run at (0,0) width 10: "C"
diff --git a/third_party/WebKit/LayoutTests/fast/table/013.html b/third_party/WebKit/LayoutTests/fast/table/013.html
new file mode 100644
index 0000000..96b4a0d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/013.html
@@ -0,0 +1,6 @@
+<html>
+<table height=100 width=100% cellpadding=0 cellspacing=0>
+<td width=20>A
+<td width=300>B
+<td width=20>C
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/table/014-expected.txt b/third_party/WebKit/LayoutTests/fast/table/014-expected.txt
new file mode 100644
index 0000000..b31efe1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/014-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x111
+ RenderBlock {HTML} at (0,0) size 800x111
+ RenderBody {BODY} at (8,8) size 784x86
+ RenderBlock (anonymous) at (0,0) size 784x86
+ RenderImage {IMG} at (0,0) size 132x86
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {H2} at (0,103) size 784x0
+ RenderTable {TABLE} at (0,103) size 132x34
+ RenderTableSection {TBODY} at (0,0) size 0x34
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 132x17 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 34x17
+ text run at (0,0) width 34: "hello"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,17) size 132x17 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 59x17
+ text run at (0,0) width 59: "goodbye"
diff --git a/third_party/WebKit/LayoutTests/fast/table/014.html b/third_party/WebKit/LayoutTests/fast/table/014.html
new file mode 100644
index 0000000..5e0061f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/014.html
@@ -0,0 +1,9 @@
+<body><img border="0" width="132" height="86">
+<table cellpadding="0" cellspacing="0" border="0" width="132" align="left">
+ <tr>
+ <td>hello</td>
+ </tr><h2></h2><tr>
+ <td>goodbye</td>
+ </tr>
+ </table>
+</body> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/015-expected.txt b/third_party/WebKit/LayoutTests/fast/table/015-expected.txt
new file mode 100644
index 0000000..a986771
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/015-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x88
+ RenderBlock {HTML} at (0,0) size 800x88
+ RenderBody {BODY} at (8,8) size 784x72
+ RenderTable {TABLE} at (0,0) size 47x29
+ RenderTableSection {TBODY} at (3,3) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 37x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 35x17
+ text run at (1,1) width 35: "Hello"
+ RenderTable {TABLE} at (0,43) size 47x29
+ RenderTableSection {TBODY} at (3,3) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 37x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 35x17
+ text run at (1,1) width 35: "Hello"
diff --git a/third_party/WebKit/LayoutTests/fast/table/015.html b/third_party/WebKit/LayoutTests/fast/table/015.html
new file mode 100644
index 0000000..460a573
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/015.html
@@ -0,0 +1,8 @@
+<html>
+<table style="border:3px solid black; margin-bottom:1em">
+<tr><td>Hello
+</table>
+<table style="border:3px solid black; margin-top:1em">
+<tr><td>Hello
+</table>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/table/016-expected.txt b/third_party/WebKit/LayoutTests/fast/table/016-expected.txt
new file mode 100644
index 0000000..f5dda63
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/016-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x118
+ RenderBlock {HTML} at (0,0) size 800x118
+ RenderBody {BODY} at (8,8) size 784x102
+ RenderTable {TABLE} at (0,0) size 784x102 [bgcolor=#808000]
+ RenderTableSection {TBODY} at (0,0) size 0x102 [bgcolor=#000000]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 77x102 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 77x102
+ text run at (0,0) width 55: "Dorothy"
+ text run at (0,17) width 77: "Rothschild:"
+ text run at (0,34) width 37: "Love,"
+ text run at (0,51) width 63: "curiosity,"
+ text run at (0,68) width 54: "freckles"
+ text run at (0,85) width 26: "and"
+ RenderTableCell {TD} at (77,0) size 707x17 [bgcolor=#008000] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 205x17
+ text run at (0,0) width 205: "Animal Friends Rescue Project"
diff --git a/third_party/WebKit/LayoutTests/fast/table/016.html b/third_party/WebKit/LayoutTests/fast/table/016.html
new file mode 100644
index 0000000..c7146cf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/016.html
@@ -0,0 +1,11 @@
+<table border=0 cellspacing=0 cellpadding=0 style="background-color:olive">
+<tr>
+<td>
+Dorothy Rothschild: Love, curiosity, freckles and
+</td>
+<td valign=top width="99%" bgcolor=green>
+Animal Friends Rescue Project
+</td>
+</tr>
+</table>
+
diff --git a/third_party/WebKit/LayoutTests/fast/table/017-expected.txt b/third_party/WebKit/LayoutTests/fast/table/017-expected.txt
new file mode 100644
index 0000000..aa73574
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/017-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x66
+ RenderBlock {HTML} at (0,0) size 800x66
+ RenderBody {BODY} at (8,8) size 784x50
+ RenderTable {TABLE} at (0,0) size 744x50
+ RenderTableSection {TBODY} at (1,1) size 0x48
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 237x44 [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (2,2) size 233x40
+ RenderTableSection {TBODY} at (0,0) size 0x40
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 229x36 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 205x34
+ text run at (1,1) width 205: "This is the first column. It has"
+ text run at (1,18) width 104: "some text in it."
+ RenderTableCell {TD} at (241,2) size 499x44 [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (2,2) size 495x40
+ RenderTableSection {TBODY} at (0,0) size 0x40
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 491x36 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 449x34
+ text run at (1,1) width 188: "This is the second column. "
+ text run at (189,1) width 261: "It has a lot more content than the first"
+ text run at (1,18) width 60: "column. "
+ text run at (61,18) width 153: "That shouldn't matter."
diff --git a/third_party/WebKit/LayoutTests/fast/table/017.html b/third_party/WebKit/LayoutTests/fast/table/017.html
new file mode 100644
index 0000000..315c5de
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/017.html
@@ -0,0 +1,7 @@
+<table width=95% border=1>
+<tr><td><table width=100%><tr><td>This is the first column. It has some text in it.</table>
+<td><table width=100%><tr><td>This is the second column. It has a lot more content
+than the first column. That shouldn't matter.
+</table>
+</table>
+
diff --git a/third_party/WebKit/LayoutTests/fast/table/018-expected.txt b/third_party/WebKit/LayoutTests/fast/table/018-expected.txt
new file mode 100644
index 0000000..63f7fe8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/018-expected.txt
@@ -0,0 +1,40 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x193
+ RenderBlock {HTML} at (0,0) size 800x193
+ RenderBody {BODY} at (8,8) size 784x171
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 479x17
+ text run at (0,0) width 479: "This is a test for bug 3166276. Set the following preferences to see it:"
+ RenderBlock {UL} at (0,31) size 784x34
+ RenderListItem {LI} at (40,0) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 244x17
+ text run at (0,0) width 244: "Proportional font -- Times 15 point"
+ RenderListItem {LI} at (40,17) size 744x17
+ RenderListMarker at (0,0) size 0x14
+ RenderText {TEXT} at (0,0) size 251x17
+ text run at (0,0) width 251: "Fixed width font -- Monaco 11 point"
+ RenderBlock {P} at (0,79) size 784x61
+ RenderTable {TABLE} at (0,0) size 784x61
+ RenderTableSection {TBODY} at (1,1) size 0x59
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 778x55 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 133x17
+ text run at (2,2) width 133: "The following text: "
+ RenderInline {TT} at (0,0) size 88x16
+ RenderText {TEXT} at (135,3) size 88x16
+ text run at (135,3) width 88: "hello world"
+ RenderText {TEXT} at (223,2) size 739x51
+ text run at (223,2) width 505: ", is written using the <tt> tag. It should show up as Monaco 11 point, but"
+ text run at (2,19) width 739: "instead it is showing up as Monaco 15 point. The font is correct, but the point size is whatever is set for the"
+ text run at (2,36) width 480: "proportional font. Note that this only happens to text inside a <table>"
+ RenderBlock {P} at (0,154) size 784x17
+ RenderText {TEXT} at (0,0) size 322x17
+ text run at (0,0) width 322: "Here is the same text again outside a <table>: "
+ RenderInline {TT} at (0,0) size 88x16
+ RenderText {TEXT} at (322,1) size 88x16
+ text run at (322,1) width 88: "hello world"
+ RenderText {TEXT} at (410,0) size 253x17
+ text run at (410,0) width 253: ". Notice it is displayed correctly now."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/018.html b/third_party/WebKit/LayoutTests/fast/table/018.html
new file mode 100644
index 0000000..014cbc7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/018.html
@@ -0,0 +1,29 @@
+<html>
+
+<head>
+ <title>Test for bug 3166276</title>
+<head>
+
+<body>
+
+This is a test for bug 3166276. Set the following preferences to see it:
+
+<ul>
+<li>Proportional font -- Times 15 point</li>
+<li>Fixed width font -- Monaco 11 point</li>
+</ul>
+
+<p>
+<table border>
+<tr>
+<td>
+The following text: <tt>hello world</tt>, is written using the &lt;tt&gt; tag. It should show up as Monaco 11 point, but instead it is showing up as Monaco 15 point. The font is correct, but the point size is whatever is set for the proportional font. Note that this only happens to text inside a &lt;table&gt;
+</td>
+</tr>
+</table>
+
+<p>Here is the same text again outside a &lt;table&gt;: <tt>hello world</tt>. Notice it is displayed correctly now.
+
+</body>
+
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/020-expected.txt b/third_party/WebKit/LayoutTests/fast/table/020-expected.txt
new file mode 100644
index 0000000..927a19fe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/020-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x43
+ RenderBlock {HTML} at (0,0) size 800x43
+ RenderBody {BODY} at (8,8) size 784x27
+ RenderTable {TABLE} at (0,0) size 500x27
+ RenderTableSection {TBODY} at (1,1) size 0x25
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 221x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 165x17
+ text run at (2,2) width 165: "Dell Inspiron Notebooks"
+ RenderTableCell {TD} at (225,2) size 271x21 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 165x17
+ text run at (2,2) width 165: "Dell Inspiron Notebooks"
diff --git a/third_party/WebKit/LayoutTests/fast/table/020.html b/third_party/WebKit/LayoutTests/fast/table/020.html
new file mode 100644
index 0000000..11add9b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/020.html
@@ -0,0 +1,10 @@
+<table width="500" border="1">
+<tr>
+ <td width=45%>
+ Dell Inspiron Notebooks
+ </td>
+ <td width="500">
+ Dell Inspiron Notebooks
+ </td>
+</tr>
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/table/021-expected.txt b/third_party/WebKit/LayoutTests/fast/table/021-expected.txt
new file mode 100644
index 0000000..c4e7122
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/021-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x39
+ RenderBlock {HTML} at (0,0) size 800x39
+ RenderBody {BODY} at (8,8) size 784x23
+ RenderTable {TABLE} at (0,0) size 203x23
+ RenderTableSection {TBODY} at (0,0) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 88x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 86x17
+ text run at (1,1) width 86: "first-column"
+ RenderTableCell {TD} at (92,2) size 109x19 [bgcolor=#BBBBBB] [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 107x17
+ text run at (1,1) width 107: "second-column"
diff --git a/third_party/WebKit/LayoutTests/fast/table/021.html b/third_party/WebKit/LayoutTests/fast/table/021.html
new file mode 100644
index 0000000..a7ae2a8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/021.html
@@ -0,0 +1,4 @@
+<table><tr>
+ <td width="20" nowrap>first-column</td>
+ <td bgcolor="#BBBBBB">second-column</td>
+ </tr></table> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/022-expected.txt b/third_party/WebKit/LayoutTests/fast/table/022-expected.txt
new file mode 100644
index 0000000..a2c2ce1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/022-expected.txt
@@ -0,0 +1,52 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x83
+ RenderBlock {HTML} at (0,0) size 800x83
+ RenderBody {BODY} at (8,8) size 784x67
+ RenderTable {TABLE} at (0,0) size 345x24
+ RenderTableSection {TBODY} at (0,0) size 0x24
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 131x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (135,2) size 208x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,6) size 131x16 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 129x14
+ text run at (1,1) width 129: "[this should not overlap]"
+ RenderTableCell {TD} at (135,6) size 208x16 [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 206x14
+ text run at (1,1) width 206: "[with this, since the table is auto width]"
+ RenderTable {TABLE} at (0,24) size 600x24
+ RenderTableSection {TBODY} at (0,0) size 0x24
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 297x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (301,2) size 297x2 [r=0 c=1 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,6) size 297x16 [r=1 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 129x14
+ text run at (1,1) width 129: "[this should not overlap]"
+ RenderTableCell {TD} at (301,6) size 297x16 [r=1 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 50x14
+ text run at (1,1) width 50: "[with this]"
+ RenderTable {TABLE} at (0,48) size 600x19
+ RenderTableSection {TBODY} at (0,0) size 0x19
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,3) size 85x1 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (85,3) size 85x1 [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (170,3) size 86x1 [r=0 c=2 rs=1 cs=1]
+ RenderTableCell {TD} at (256,3) size 86x1 [r=0 c=3 rs=1 cs=1]
+ RenderTableCell {TD} at (342,3) size 86x1 [r=0 c=4 rs=1 cs=1]
+ RenderTableCell {TD} at (428,3) size 86x1 [r=0 c=5 rs=1 cs=1]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,18) size 85x1 [r=1 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (85,18) size 85x1 [r=1 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (170,18) size 86x1 [r=1 c=2 rs=1 cs=1]
+ RenderTableCell {TD} at (256,4) size 86x15 [r=1 c=3 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 63x14
+ text run at (1,1) width 63: "[should not]"
+ RenderTableCell {TD} at (342,4) size 86x15 [r=1 c=4 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 51x14
+ text run at (1,1) width 51: "[overlap]"
+ RenderTableCell {TD} at (428,4) size 86x15 [r=1 c=5 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 238x14
+ text run at (1,1) width 238: "[at all, since width=0 is ignored]"
+ RenderTableCell {TD} at (514,18) size 86x1 [r=1 c=6 rs=1 cs=1]
diff --git a/third_party/WebKit/LayoutTests/fast/table/022.html b/third_party/WebKit/LayoutTests/fast/table/022.html
new file mode 100644
index 0000000..32c50ed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/022.html
@@ -0,0 +1,62 @@
+<head>
+<style>
+<!--table {}
+td
+ {padding-top:1px;
+ padding-right:1px;
+ padding-left:1px;
+ color:black;
+ font-size:9.0pt;
+ font-weight:400;
+ font-style:normal;
+ text-decoration:none;
+ font-family:Helvetica;
+ text-align:general;
+ vertical-align:bottom;
+ border:none;
+ white-space:nowrap;}
+.xl31
+ {font-weight:700;
+ text-align:left;}
+.xl32
+ {text-align:left;}
+.xl33
+ {font-size:9.0pt;
+ font-family:Courier;
+ text-align:left;}
+-->
+</style>
+</head>
+<table style="table-layout:fixed">
+ <tr><td width=0></td><td width=0></td></tr>
+ <tr><td width=0>[this should not overlap]</td><td>[with this, since the table is auto width]</td></tr>
+</table>
+
+
+<table style="width:600px;table-layout:fixed">
+ <tr><td width=0></td><td width=0></td></tr>
+ <tr><td width=0>[this should not overlap]</td><td>[with this]</td></tr>
+</table>
+
+<table border=0 cellpadding=0 cellspacing=0 width=600 style='border-collapse:
+ collapse;table-layout:fixed'>
+ <tr height=4>
+ <td class=xl31 width=0></td>
+ <td class=xl33 width=0></td>
+ <td class=xl32 width=0></td>
+ <td class=xl32 width=0></td>
+ <td class=xl32 width=0></td>
+ <td class=xl32 width=0></td>
+ </tr>
+ <tr height=14>
+ <td height=14 class=xl32></td>
+ <td class=xl32></td>
+ <td class=xl32></td>
+ <td class=xl32>[should not]</td>
+ <td class=xl31>[overlap]</td>
+ <td class=xl33>[at all, since width=0 is ignored]</td>
+ <td class=xl32></td>
+ </tr>
+ </table>
+
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/table/023-expected.txt b/third_party/WebKit/LayoutTests/fast/table/023-expected.txt
new file mode 100644
index 0000000..214c6ca
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/023-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x698
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x698
+ RenderBlock {HTML} at (0,0) size 800x698
+ RenderBody {BODY} at (8,8) size 784x676
+ RenderTable {TABLE} at (0,0) size 784x76
+ RenderTableSection {TBODY} at (0,0) size 0x76
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,27) size 697x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 9x17
+ text run at (2,2) width 9: "1"
+ RenderTableCell {TD} at (701,2) size 66x72 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 62x68
+ text run at (2,2) width 59: "See, this"
+ text run at (2,19) width 38: "is the"
+ text run at (2,36) width 62: "problem."
+ text run at (2,53) width 52: "It will..."
+ RenderTableCell {TD} at (769,27) size 13x21 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 9x17
+ text run at (2,2) width 9: "3"
+ RenderBlock {P} at (0,90) size 784x0
+ RenderTable {TABLE} at (0,90) size 784x186
+ RenderTableSection {TBODY} at (0,0) size 0x186
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 780x182 [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (2,2) size 776x178
+ RenderTableSection {TBODY} at (0,0) size 0x178
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,78) size 689x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 9x17
+ text run at (2,2) width 9: "1"
+ RenderTableCell {TD} at (693,2) size 66x174 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 62x170
+ text run at (2,2) width 59: "See, this"
+ text run at (2,19) width 38: "is the"
+ text run at (2,36) width 62: "problem."
+ text run at (2,53) width 41: "S See,"
+ text run at (2,70) width 42: "this is"
+ text run at (2,87) width 22: "the"
+ text run at (2,104) width 62: "problem."
+ text run at (2,121) width 59: "See, this"
+ text run at (2,138) width 38: "is the"
+ text run at (2,155) width 62: "problem."
+ RenderTableCell {TD} at (761,78) size 13x21 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 9x17
+ text run at (2,2) width 9: "3"
+ RenderBlock {P} at (0,290) size 784x0
+ RenderTable {TABLE} at (0,290) size 567x186
+ RenderTableSection {TBODY} at (0,0) size 0x186
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 563x182 [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (2,2) size 559x178
+ RenderTableSection {TBODY} at (0,0) size 0x178
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,78) size 472x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 9x17
+ text run at (2,2) width 9: "1"
+ RenderTableCell {TD} at (476,2) size 66x174 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 62x170
+ text run at (2,2) width 59: "See, this"
+ text run at (2,19) width 38: "is the"
+ text run at (2,36) width 62: "problem."
+ text run at (2,53) width 41: "S See,"
+ text run at (2,70) width 42: "this is"
+ text run at (2,87) width 22: "the"
+ text run at (2,104) width 62: "problem."
+ text run at (2,121) width 59: "See, this"
+ text run at (2,138) width 38: "is the"
+ text run at (2,155) width 62: "problem."
+ RenderTableCell {TD} at (544,78) size 13x21 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 9x17
+ text run at (2,2) width 9: "3"
+ RenderBlock {P} at (0,490) size 784x0
+ RenderTable {TABLE} at (0,490) size 567x186
+ RenderTableSection {TBODY} at (0,0) size 0x186
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 563x182 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (2,2) size 559x178
+ RenderTable {TABLE} at (0,0) size 559x178
+ RenderTableSection {TBODY} at (0,0) size 0x178
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,78) size 472x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 9x17
+ text run at (2,2) width 9: "1"
+ RenderTableCell {TD} at (476,2) size 66x174 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 62x170
+ text run at (2,2) width 59: "See, this"
+ text run at (2,19) width 38: "is the"
+ text run at (2,36) width 62: "problem."
+ text run at (2,53) width 41: "S See,"
+ text run at (2,70) width 42: "this is"
+ text run at (2,87) width 22: "the"
+ text run at (2,104) width 62: "problem."
+ text run at (2,121) width 59: "See, this"
+ text run at (2,138) width 38: "is the"
+ text run at (2,155) width 62: "problem."
+ RenderTableCell {TD} at (544,78) size 13x21 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 9x17
+ text run at (2,2) width 9: "3"
+ RenderBlock {P} at (0,690) size 784x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/023.html b/third_party/WebKit/LayoutTests/fast/table/023.html
new file mode 100644
index 0000000..a5e3722
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/023.html
@@ -0,0 +1,83 @@
+<head><style>
+td {border: 1px green solid;}
+</style></head>
+<body>
+<table>
+<tr><td width=100%>1<td>See, this is the problem. It will...<td width=100%>3</tr>
+</table>
+<p></p>
+<table width=100%>
+ <tr>
+
+ <td>
+ <table>
+ <tr>
+ <td width="100%">1
+ </td>
+ <td >
+ See, this is the problem. S See, this is the problem. See, this is the problem.
+ </td>
+
+ <td width="100%">3
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+
+ </tr>
+</table>
+<p></p>
+<table>
+ <tr>
+
+ <td>
+ <table>
+ <tr>
+ <td width="100%">1
+ </td>
+ <td >
+ See, this is the problem. S See, this is the problem. See, this is the problem.
+ </td>
+
+ <td width="100%">3
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+
+ </tr>
+</table>
+<p></p>
+
+<table>
+ <tr>
+
+ <td><div><table>
+ <tr>
+ <td width="100%">1
+ </td>
+ <td >
+ See, this is the problem. S See, this is the problem. See, this is the problem.
+ </td>
+
+ <td width="100%">3
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table></div>
+ </td>
+
+ </tr>
+</table>
+<p></p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/024-expected.txt b/third_party/WebKit/LayoutTests/fast/table/024-expected.txt
new file mode 100644
index 0000000..6b5c2d4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/024-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x56
+ RenderBlock {HTML} at (0,0) size 800x56
+ RenderBody {BODY} at (8,8) size 784x40
+ RenderTable {TABLE} at (0,0) size 356x40
+ RenderTableSection {TBODY} at (0,0) size 0x40
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 352x17 [bgcolor=#0000FF] [r=0 c=0 rs=1 cs=2]
+ RenderImage {IMG} at (1,1) size 350x15 [bgcolor=#FFFF00]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,22) size 131x14 [bgcolor=#0000FF] [r=1 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (1,1) size 129x12 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x12
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 125x8 [bgcolor=#0000FF] [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (1,1) size 114x6 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x6
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 52x2 [bgcolor=#0000FF] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (56,2) size 2x2 [bgcolor=#0000FF] [r=0 c=1 rs=1 cs=1]
+ RenderTableCell {TD} at (60,2) size 52x2 [bgcolor=#0000FF] [r=0 c=2 rs=1 cs=1]
+ RenderTableCell {TD} at (135,21) size 219x17 [bgcolor=#0000FF] [r=1 c=1 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 200x15 [bgcolor=#FFFF00]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/024.html b/third_party/WebKit/LayoutTests/fast/table/024.html
new file mode 100644
index 0000000..28fa918
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/024.html
@@ -0,0 +1,44 @@
+<html>
+<head>
+<style>
+img {background-color: yellow; height: 15px;}
+td {background-color: blue}
+</style>
+</head>
+
+<body>
+<table>
+<tr>
+<td colspan=2>
+<img width=350>
+</td>
+</tr>
+<tr>
+ <td>
+ <table width=100%>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <td width=50%>
+ </td>
+ <td width=100>
+
+ </td>
+ <td width=50%>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+
+ <td>
+ <img width=200>
+ </td>
+</tr>
+</table>
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/025-expected.txt b/third_party/WebKit/LayoutTests/fast/table/025-expected.txt
new file mode 100644
index 0000000..41ccc20
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/025-expected.txt
@@ -0,0 +1,94 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x114
+ RenderBlock {HTML} at (0,0) size 800x114
+ RenderBody {BODY} at (8,8) size 784x98
+ RenderTable {TABLE} at (0,0) size 784x42
+ RenderTableSection {TBODY} at (0,0) size 0x42
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,8) size 207x25 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (4,4) size 9x17
+ text run at (4,4) width 9: "d"
+ RenderTableCell {TD} at (207,0) size 341x42 [bgcolor=#FFA500] [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (4,4) size 333x34 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x34
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 329x30 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (2,2) size 263x26 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x26
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,11) size 4x4 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (8,2) size 247x22 [bgcolor=#FFA500] [r=0 c=1 rs=1 cs=2]
+ RenderImage {IMG} at (2,2) size 21x15 [bgcolor=#800080]
+ RenderText {TEXT} at (23,3) size 4x17
+ text run at (23,3) width 4: "\x{A0}"
+ RenderInline {B} at (0,0) size 96x17 [bgcolor=#000000]
+ RenderText {TEXT} at (27,3) size 96x17
+ text run at (27,3) width 96: "Yellow Pages"
+ RenderText {TEXT} at (123,3) size 4x17
+ text run at (123,3) width 4: "\x{A0}"
+ RenderImage {IMG} at (127,2) size 21x15 [bgcolor=#800080]
+ RenderText {TEXT} at (148,3) size 4x17
+ text run at (148,3) width 4: "\x{A0}"
+ RenderInline {B} at (0,0) size 89x17 [bgcolor=#000000]
+ RenderText {TEXT} at (152,3) size 89x17
+ text run at (152,3) width 89: "White Pages"
+ RenderText {TEXT} at (241,3) size 4x17
+ text run at (241,3) width 4: "\x{A0}"
+ RenderTableCell {TD} at (257,11) size 4x4 [bgcolor=#FFA500] [r=0 c=3 rs=1 cs=1]
+ RenderTableCell {TD} at (548,0) size 236x42 [bgcolor=#FFA500] [r=0 c=2 rs=1 cs=1]
+ RenderTable {TABLE} at (4,4) size 228x34 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x34
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 224x30 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (2,2) size 220x26 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x26
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 216x22 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderImage {IMG} at (2,2) size 212x18 [bgcolor=#800080]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,56) size 784x0
+ RenderTable {TABLE} at (0,56) size 784x42
+ RenderTableSection {TBODY} at (0,0) size 0x42
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,8) size 219x25 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (4,4) size 9x17
+ text run at (4,4) width 9: "d"
+ RenderTableCell {TD} at (219,0) size 329x42 [bgcolor=#FFA500] [r=0 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (4,4) size 321x34 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x34
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 317x30 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (2,2) size 263x26 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x26
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,11) size 4x4 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (8,2) size 247x22 [bgcolor=#FFA500] [r=0 c=1 rs=1 cs=2]
+ RenderImage {IMG} at (2,2) size 21x15 [bgcolor=#800080]
+ RenderText {TEXT} at (23,3) size 4x17
+ text run at (23,3) width 4: "\x{A0}"
+ RenderInline {B} at (0,0) size 96x17 [bgcolor=#000000]
+ RenderText {TEXT} at (27,3) size 96x17
+ text run at (27,3) width 96: "Yellow Pages"
+ RenderText {TEXT} at (123,3) size 4x17
+ text run at (123,3) width 4: "\x{A0}"
+ RenderImage {IMG} at (127,2) size 21x15 [bgcolor=#800080]
+ RenderText {TEXT} at (148,3) size 4x17
+ text run at (148,3) width 4: "\x{A0}"
+ RenderInline {B} at (0,0) size 89x17 [bgcolor=#000000]
+ RenderText {TEXT} at (152,3) size 89x17
+ text run at (152,3) width 89: "White Pages"
+ RenderText {TEXT} at (241,3) size 4x17
+ text run at (241,3) width 4: "\x{A0}"
+ RenderTableCell {TD} at (257,11) size 4x4 [bgcolor=#FFA500] [r=0 c=3 rs=1 cs=1]
+ RenderTableCell {TD} at (548,0) size 236x42 [bgcolor=#FFA500] [r=0 c=2 rs=1 cs=1]
+ RenderTable {TABLE} at (4,4) size 228x34 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x34
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 224x30 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (2,2) size 220x26 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x26
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 216x22 [bgcolor=#FFA500] [r=0 c=0 rs=1 cs=1]
+ RenderImage {IMG} at (2,2) size 212x18 [bgcolor=#800080]
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/025.html b/third_party/WebKit/LayoutTests/fast/table/025.html
new file mode 100644
index 0000000..f01712a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/025.html
@@ -0,0 +1,92 @@
+<html>
+<head>
+<style>
+td { border: 1px solid black; background-color: orange }
+img { background-color: purple }
+</style>
+
+</head>
+<body>
+<table width=100% cellspacing=0 cellpadding=3 border=0>
+<tr>
+ <td width=28%>d</td>
+ <td width=44%>
+ <table width=100%>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <td width=50%>
+ </td>
+ <td colspan=2 nowrap>
+ <img border=0 width=21 height=15>&nbsp<b>Yellow Pages</b>&nbsp;<img width=21 height=15>&nbsp<b>White Pages</b>&nbsp;
+ </td>
+ <td width=50%>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ <td width=28%>
+ <table>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <td>
+ <img width=212 height=18>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+</tr>
+</table>
+<p></p>
+<table width=100% cellspacing=0 cellpadding=3 border=0>
+<tr>
+ <td width=28%>d</td>
+ <td>
+ <table width=100%>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <td width=50%>
+ </td>
+ <td colspan=2 nowrap>
+ <img border=0 width=21 height=15>&nbsp<b>Yellow Pages</b>&nbsp;<img width=21 height=15>&nbsp<b>White Pages</b>&nbsp;
+ </td>
+ <td width=50%>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ <td width=28%>
+ <table>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <td>
+ <img width=212 height=18>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+</tr>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/table/026-expected.txt b/third_party/WebKit/LayoutTests/fast/table/026-expected.txt
new file mode 100644
index 0000000..51f4e6a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/026-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderTable {TABLE} at (713,0) size 71x29
+ RenderTableSection {TBODY} at (0,0) size 0x29
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 67x25 [r=0 c=0 rs=1 cs=1]
+ RenderBlock (floating) {DIV} at (1,1) size 65x23
+ RenderTable {TABLE} at (0,0) size 65x23
+ RenderTableSection {TBODY} at (0,0) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 10x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 8x17
+ text run at (1,1) width 8: "a"
+ RenderTableCell {TD} at (14,2) size 37x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 35x17
+ text run at (1,1) width 35: "Hello"
+ RenderTableCell {TD} at (53,2) size 10x19 [r=0 c=2 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 8x17
+ text run at (1,1) width 8: "c"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/026.html b/third_party/WebKit/LayoutTests/fast/table/026.html
new file mode 100644
index 0000000..f389a6c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/026.html
@@ -0,0 +1,10 @@
+<html>
+<table align=right>
+<tr><td>
+<div style="float:right">
+<table align=right>
+<tr><td width=50%>a<td>Hello<td width=50%>c</tr>
+</table>
+</div>
+</tr>
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/table/027-expected.txt b/third_party/WebKit/LayoutTests/fast/table/027-expected.txt
new file mode 100644
index 0000000..c07334b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/027-expected.txt
@@ -0,0 +1,73 @@
+layer at (0,0) size 823x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 823x337
+ RenderBlock {HTML} at (0,0) size 800x337
+ RenderBody {BODY} at (8,8) size 784x321
+ RenderTable {TABLE} at (0,0) size 815x321
+ RenderTableSection {TBODY} at (0,0) size 0x321
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 815x25 [r=0 c=0 rs=1 cs=3]
+ RenderText {TEXT} at (4,4) size 242x17
+ text run at (4,4) width 143: "\x{A0}\x{A0}\x{A0}Join Now\x{A0}\x{A0}\x{A0}Sign In\x{A0}\x{A0} "
+ text run at (147,4) width 99: "\x{A0}\x{A0} Personalize:\x{A0}"
+ RenderInline {A} at (0,0) size 55x17
+ RenderText {TEXT} at (246,4) size 55x17
+ text run at (246,4) width 55: "Settings"
+ RenderText {TEXT} at (301,4) size 16x17
+ text run at (301,4) width 16: "\x{A0}\x{2022}\x{A0}"
+ RenderInline {A} at (0,0) size 54x17
+ RenderText {TEXT} at (317,4) size 54x17
+ text run at (317,4) width 54: "Content"
+ RenderText {TEXT} at (371,4) size 16x17
+ text run at (371,4) width 16: "\x{A0}\x{2022}\x{A0}"
+ RenderInline {A} at (0,0) size 46x17
+ RenderText {TEXT} at (387,4) size 46x17
+ text run at (387,4) width 46: "Layout"
+ RenderText {TEXT} at (433,4) size 16x17
+ text run at (433,4) width 16: "\x{A0}\x{2022}\x{A0}"
+ RenderInline {A} at (0,0) size 116x17
+ RenderText {TEXT} at (449,4) size 116x17
+ text run at (449,4) width 116: "Colors & Themes"
+ RenderText {TEXT} at (565,4) size 16x17
+ text run at (565,4) width 16: "\x{A0}\x{2022}\x{A0}"
+ RenderInline {A} at (0,0) size 47x17
+ RenderText {TEXT} at (581,4) size 47x17
+ text run at (581,4) width 47: "Sign In"
+ RenderText {TEXT} at (628,4) size 183x17
+ text run at (628,4) width 8: "\x{A0} "
+ text run at (636,4) width 89: "\x{A0}\x{A0} My Links:\x{A0}\x{A0} "
+ text run at (725,4) width 86: "\x{A0}\x{A0}Lite\x{A0}\x{2022}\x{A0}Email"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,169) size 8x8 [r=1 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (8,25) size 587x296 [r=1 c=1 rs=1 cs=1]
+ RenderTable {TABLE} at (4,4) size 579x288
+ RenderTableSection {TBODY} at (0,0) size 0x288
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 575x284 [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (2,2) size 571x280
+ RenderTableSection {TBODY} at (0,0) size 0x280
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,138) size 243x4 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (247,2) size 76x276 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 72x272
+ text run at (2,2) width 58: "This guy"
+ text run at (2,19) width 46: "should"
+ text run at (2,36) width 58: "have the"
+ text run at (2,53) width 63: "really big"
+ text run at (2,70) width 72: "maxwidth."
+ text run at (2,87) width 14: "It "
+ text run at (16,87) width 46: "should"
+ text run at (2,104) width 43: "be big"
+ text run at (2,121) width 70: "enough to"
+ text run at (2,138) width 37: "really"
+ text run at (2,155) width 37: "really"
+ text run at (2,172) width 39: "screw"
+ text run at (2,189) width 70: "things up."
+ text run at (2,206) width 47: "That is"
+ text run at (2,223) width 42: "what I"
+ text run at (2,240) width 62: "think will"
+ text run at (2,257) width 39: "work."
+ RenderTableCell {TD} at (325,138) size 244x4 [r=0 c=2 rs=1 cs=1]
+ RenderTableCell {TD} at (595,160) size 220x26 [r=1 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (4,4) size 212x18
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/027.html b/third_party/WebKit/LayoutTests/fast/table/027.html
new file mode 100644
index 0000000..55186b49
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/027.html
@@ -0,0 +1,50 @@
+<html>
+<head>
+<style>
+td { border: 1px solid green }
+</style>
+</head>
+<body>
+<table width=100% cellspacing=0 cellpadding=3 border=0>
+<tr>
+ <td colspan=3 nowrap>
+ &nbsp;&nbsp;&nbsp;Join Now&nbsp;&nbsp;&nbsp;Sign In&nbsp;&nbsp;
+
+ &nbsp;&nbsp; Personalize:&nbsp;<a>Settings</a>&nbsp;&#149;&nbsp;<a>Content</a>&nbsp;&#149;&nbsp;<a>Layout</a>&nbsp;&#149;&nbsp;<a>Colors & Themes</a>&nbsp;&#149;&nbsp;<a>Sign In</a>&nbsp;
+
+ &nbsp;&nbsp; My Links:&nbsp;&nbsp;
+ &nbsp;&nbsp;Lite&nbsp;&#149;&nbsp;Email
+ </td>
+</tr>
+<tr>
+ <td width=28%></td>
+ <td width=44%>
+ <table width=100%>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <td width=50%>
+ </td>
+ <td>
+ This guy should have the really big maxwidth. It
+ should be big enough to really really screw things up.
+ That is what I think will work.
+ </td>
+ <td width=50%>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ <td width=28%>
+ <img width=212 height=18>
+
+ </td>
+</tr>
+</table>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/table/028-expected.txt b/third_party/WebKit/LayoutTests/fast/table/028-expected.txt
new file mode 100644
index 0000000..431249e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/028-expected.txt
@@ -0,0 +1,32 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x107
+ RenderBlock {HTML} at (0,0) size 800x107
+ RenderBody {BODY} at (8,8) size 784x91
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 299x17
+ text run at (0,0) width 299: "These two tables should be the same width."
+ RenderTable {TABLE} at (0,17) size 320x22
+ RenderTableSection {TBODY} at (0,0) size 0x22
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 69x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 9x17
+ text run at (1,1) width 9: "1"
+ RenderTableCell {TD} at (69,0) size 245x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 9x17
+ text run at (1,1) width 9: "2"
+ RenderTableCell {TD} at (314,0) size 6x22 [r=0 c=2 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 4x20 [bgcolor=#FFA500]
+ RenderBlock {P} at (0,53) size 784x0
+ RenderTable {TABLE} at (0,53) size 320x38
+ RenderTableSection {TBODY} at (0,0) size 0x38
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 64x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 9x17
+ text run at (1,1) width 9: "1"
+ RenderTableCell {TD} at (64,3) size 256x12 [r=0 c=1 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 254x10 [bgcolor=#FFA500]
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,19) size 320x19 [r=1 c=0 rs=1 cs=3]
+ RenderText {TEXT} at (1,1) size 9x17
+ text run at (1,1) width 9: "1"
diff --git a/third_party/WebKit/LayoutTests/fast/table/028.html b/third_party/WebKit/LayoutTests/fast/table/028.html
new file mode 100644
index 0000000..ae89bef
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/028.html
@@ -0,0 +1,42 @@
+
+<head>
+<style>
+img { background-color: orange }
+td { border: 1px solid green }
+</style>
+</head>
+<body>
+These two tables should be the same width.
+
+ <table border=0 cellspacing=0 cellpadding=0 width=320>
+ <tr>
+ <td width=70 valign=top >
+ 1
+ </td>
+ <td width=246 valign=top >
+ 2
+
+
+ </td>
+ <td width=4><img width=4 height=20></td>
+ </tr>
+ </table>
+ <p></p>
+
+ <table border=0 cellspacing=0 cellpadding=0 width=320 height=10>
+ <tr>
+ <td width=66 height=10>1</td>
+ <td width=254 height=10><img width=254 height=10 ></td>
+ </tr>
+ <tr>
+ <td colspan=3>1</td>
+ </tr>
+ </table>
+
+
+
+
+
+
+
+
diff --git a/third_party/WebKit/LayoutTests/fast/table/029-expected.txt b/third_party/WebKit/LayoutTests/fast/table/029-expected.txt
new file mode 100644
index 0000000..5269d78
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/029-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x72
+ RenderBlock {HTML} at (0,0) size 800x72
+ RenderBody {BODY} at (8,8) size 784x56
+ RenderTable {TABLE} at (0,0) size 784x56
+ RenderTableSection {TBODY} at (0,0) size 0x56
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 150x56 [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (0,0) size 150x56
+ RenderTableSection {TBODY} at (10,10) size 0x36
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 130x36 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 78x34
+ text run at (1,1) width 78: "left column"
+ text run at (1,18) width 52: "content"
+ RenderTableCell {TD} at (150,19) size 634x17 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 77x17
+ text run at (0,0) width 77: "second cell"
diff --git a/third_party/WebKit/LayoutTests/fast/table/029.html b/third_party/WebKit/LayoutTests/fast/table/029.html
new file mode 100644
index 0000000..d3db5cb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/029.html
@@ -0,0 +1,29 @@
+<html><head>
+
+<style type="text/css">
+TD {
+ overflow : hidden;
+}
+</style>
+
+</head>
+
+<body>
+
+<table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td align="right">
+ <table width="150" border="10" cellspacing="0" cellpadding="0">
+
+ <tr>
+ <td>left column content</td>
+ </tr>
+
+ </table>
+ </td>
+ <td width="100%"> second cell </td>
+ </tr>
+</table>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/table/030-expected.txt b/third_party/WebKit/LayoutTests/fast/table/030-expected.txt
new file mode 100644
index 0000000..8cb0f97
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/030-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,8) size 784x29
+ RenderTable {TABLE} at (0,0) size 705x29
+ RenderTableSection {TBODY} at (2,2) size 0x25
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 697x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 255x17
+ text run at (2,2) width 255: "I should be 90% of the window width."
diff --git a/third_party/WebKit/LayoutTests/fast/table/030.html b/third_party/WebKit/LayoutTests/fast/table/030.html
new file mode 100644
index 0000000..317ed09
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/030.html
@@ -0,0 +1,3 @@
+<body>
+<table border=2 width="90%%"><tr><td>I should be 90% of the window width.</td></tr></table>
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/table/031-expected.txt b/third_party/WebKit/LayoutTests/fast/table/031-expected.txt
new file mode 100644
index 0000000..5ae1491
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/031-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x320
+ RenderBlock {HTML} at (0,0) size 800x320
+ RenderBody {BODY} at (8,8) size 784x304
+ RenderTable {TABLE} at (0,0) size 306x304
+ RenderTableSection {TBODY} at (0,0) size 0x304
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 302x302 [bgcolor=#0000FF] [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (1,1) size 6x300 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x300
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,149) size 2x2 [r=0 c=0 rs=1 cs=1]
diff --git a/third_party/WebKit/LayoutTests/fast/table/031.html b/third_party/WebKit/LayoutTests/fast/table/031.html
new file mode 100644
index 0000000..c99dc05b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/031.html
@@ -0,0 +1,7 @@
+<HTML><BODY>
+<TABLE>
+<TR><TD width="300" height="300" style="background-color:blue">
+<table height="100%"><tr><td></td></tr></table>
+</TD></TR>
+</TABLE>
+</BODY></HTML>
diff --git a/third_party/WebKit/LayoutTests/fast/table/032-expected.txt b/third_party/WebKit/LayoutTests/fast/table/032-expected.txt
new file mode 100644
index 0000000..20d22432
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/032-expected.txt
@@ -0,0 +1,25 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x50
+ RenderBlock {HTML} at (0,0) size 800x50
+ RenderBody {BODY} at (8,8) size 784x34
+ RenderText {TEXT} at (0,0) size 754x34
+ text run at (0,0) width 356: "Because we're in quirks mode, you should see a 100"
+ text run at (356,0) width 183: "x100 green square below. "
+ text run at (539,0) width 215: "If the square is only a couple of"
+ text run at (0,17) width 293: "pixels wide or tall, then the test has failed."
+layer at (8,50) size 100x50
+ RenderBlock (positioned) {DIV} at (8,50) size 100x50
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (floating) {DIV} at (0,0) size 100x50 [bgcolor=#008000]
+ RenderTable {TABLE} at (0,0) size 100x6 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x6
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 96x2 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 0x0
+layer at (0,50) size 100x50 backgroundClip at (8,100) size 100x50
+ RenderBlock (positioned) {DIV} at (0,50) size 100x50 [bgcolor=#008000]
+ RenderTable {TABLE} at (0,0) size 100x6 [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x6
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 96x2 [r=0 c=0 rs=1 cs=1]
diff --git a/third_party/WebKit/LayoutTests/fast/table/032.html b/third_party/WebKit/LayoutTests/fast/table/032.html
new file mode 100644
index 0000000..c63bc5b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/032.html
@@ -0,0 +1,12 @@
+Because we're in quirks mode, you should see a 100x100 green square below. If the square is
+only a couple of pixels wide or tall, then the test has failed.
+
+<div style="position:absolute; width:100px; top:50px;">
+<div style="position:absolute;left:0px;top:50px;height:50px;background-color:green">
+ <table style="width:100%"><tr><td></table>
+ </div>
+
+<div style="float:left; background-color:green; height:50px">
+<table style="width:100%"><tr><td></table>
+</div>
+</div>
diff --git a/third_party/WebKit/LayoutTests/fast/table/033-expected.txt b/third_party/WebKit/LayoutTests/fast/table/033-expected.txt
new file mode 100644
index 0000000..8d27acb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/033-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,8) size 784x29 [color=#FFFFFF]
+ RenderTable {TABLE} at (0,0) size 400x29
+ RenderTableSection {TBODY} at (0,0) size 0x29
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 396x25 [color=#800080] [bgcolor=#008000] [r=0 c=0 rs=1 cs=1]
+ RenderTable {TABLE} at (1,1) size 374x23 [color=#FFFFFF] [bgcolor=#000000]
+ RenderTableSection {TBODY} at (0,0) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 370x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 368x17
+ text run at (1,1) width 368: "This text should be white, since we're in quirks mode."
diff --git a/third_party/WebKit/LayoutTests/fast/table/033.html b/third_party/WebKit/LayoutTests/fast/table/033.html
new file mode 100644
index 0000000..5ef436b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/033.html
@@ -0,0 +1,8 @@
+<html style="color:black">
+<body style="color:white; font-size:36px"><table width="400">
+ <tr><td style="background:green;color:purple">
+ <table>
+ <tr><td>This text should be white, since we're in quirks mode.</td></tr>
+ </table>
+ </td></tr>
+</table></body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/034-expected.txt b/third_party/WebKit/LayoutTests/fast/table/034-expected.txt
new file mode 100644
index 0000000..2e30b9a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/034-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 1064x1276
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 1064x1276
+ RenderBlock {HTML} at (0,0) size 800x1276
+ RenderBody {BODY} at (8,8) size 784x1260
+ RenderTable {TABLE} at (0,0) size 1056x1260
+ RenderTableSection {TBODY} at (0,0) size 0x1260
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,629) size 2x2 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (6,2) size 1048x1256 [r=0 c=1 rs=1 cs=1]
+ RenderBlock {DIV} at (1,1) size 1046x1254 [bgcolor=#A9AFB8]
+ RenderText {TEXT} at (0,0) size 322x17
+ text run at (0,0) width 111: "This cell should "
+ text run at (111,0) width 211: "be huge and 1000 pixels wide."
diff --git a/third_party/WebKit/LayoutTests/fast/table/034.html b/third_party/WebKit/LayoutTests/fast/table/034.html
new file mode 100644
index 0000000..e0069b7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/034.html
@@ -0,0 +1,9 @@
+<table>
+<tr>
+<td width=100%></td>
+<td>
+ <DIV STYLE="width:1046px; height:1254px; background:#A9AFB8;">This cell should
+ be huge and 1000 pixels wide.</DIV>
+</td>
+</tr>
+</table> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/035-expected.txt b/third_party/WebKit/LayoutTests/fast/table/035-expected.txt
new file mode 100644
index 0000000..e51c784
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/035-expected.txt
@@ -0,0 +1,26 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x109
+ RenderBlock {HTML} at (0,0) size 800x109
+ RenderBody {BODY} at (8,8) size 784x93
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderText {TEXT} at (0,0) size 443x17
+ text run at (0,0) width 443: "This test should have two centered tables and two centered divs."
+ RenderTable {TABLE} at (293,17) size 198x21
+ RenderTableSection {TBODY} at (1,1) size 0x19
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 196x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 194x17
+ text run at (1,1) width 194: "This table is aligned \"center\""
+ RenderTable {TABLE} at (287,38) size 209x21
+ RenderTableSection {TBODY} at (1,1) size 0x19
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 207x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 205x17
+ text run at (1,1) width 205: "This table is aligned \"CENTER\""
+ RenderBlock {DIV} at (0,59) size 784x17
+ RenderText {TEXT} at (301,0) size 181x17
+ text run at (301,0) width 181: "This div is aligned \"center\""
+ RenderBlock {DIV} at (0,76) size 784x17
+ RenderText {TEXT} at (296,0) size 192x17
+ text run at (296,0) width 192: "This div is aligned \"CENTER\""
diff --git a/third_party/WebKit/LayoutTests/fast/table/035.html b/third_party/WebKit/LayoutTests/fast/table/035.html
new file mode 100644
index 0000000..c0ad72b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/035.html
@@ -0,0 +1,18 @@
+<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html><body>
+
+This test should have two centered tables and two centered divs.
+
+<table align="center" border=1 cellspacing=0 cellpadding=0>
+<tr><td>This table is aligned "center"</td></tr>
+</table>
+
+<table align="CENTER" border=1 cellspacing=0 cellpadding=0>
+<tr><td>This table is aligned "CENTER"</td></tr>
+</table>
+
+<div align="center">This div is aligned "center"</div>
+<div align="CENTER">This div is aligned "CENTER"</div>
+
+</body></html>
diff --git a/third_party/WebKit/LayoutTests/fast/table/036-expected.txt b/third_party/WebKit/LayoutTests/fast/table/036-expected.txt
new file mode 100644
index 0000000..3636dd3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/036-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (8,8) size 784x584
+ RenderTable {TABLE} at (0,0) size 645x584
+ RenderTableSection {TBODY} at (0,0) size 0x584
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 645x21 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 645x21
+ RenderText {TEXT} at (2,2) size 193x17
+ text run at (2,2) width 193: "i am the text of the first row"
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,21) size 645x21 [r=1 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 645x21
+ RenderText {TEXT} at (2,2) size 214x17
+ text run at (2,2) width 214: "i am the text of the second row"
diff --git a/third_party/WebKit/LayoutTests/fast/table/036.html b/third_party/WebKit/LayoutTests/fast/table/036.html
new file mode 100644
index 0000000..7c09179
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/036.html
@@ -0,0 +1,8 @@
+<TABLE width="645" height="100%" cellpadding=0 cellspacing=0 border=0>
+<TR>
+ <TD valign="top" height="1%"><div style="border:2px solid red">i am the text of the first row</div></TD>
+</TR>
+<TR>
+ <TD valign="top"><div style="border:2px solid red">i am the text of the second row</div></TD>
+</TR>
+</TABLE> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/037-expected.txt b/third_party/WebKit/LayoutTests/fast/table/037-expected.txt
new file mode 100644
index 0000000..3c5c9c0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/037-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x56
+ RenderBlock {HTML} at (0,0) size 800x56
+ RenderBody {BODY} at (8,8) size 784x40
+ RenderTable {TABLE} at (0,0) size 83x23
+ RenderTableSection {TBODY} at (0,0) size 0x23
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 79x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 77x17
+ text run at (1,1) width 77: "Hello world"
+ RenderBlock (anonymous) at (0,23) size 784x17
+ RenderText {TEXT} at (0,0) size 222x17
+ text run at (0,0) width 222: "Hello also? Why isn't this visible?"
diff --git a/third_party/WebKit/LayoutTests/fast/table/037.xml b/third_party/WebKit/LayoutTests/fast/table/037.xml
new file mode 100644
index 0000000..821da9a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/037.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<html>
+<body>
+<table>
+ <tr>
+ <td>Hello world
+ </td>
+ </tr>
+</table>
+Hello also? Why isn't this visible?
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/table/large-width-expected.txt b/third_party/WebKit/LayoutTests/fast/table/large-width-expected.txt
new file mode 100644
index 0000000..0f45e8b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/large-width-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x78
+ RenderBlock {HTML} at (0,0) size 800x78
+ RenderBody {BODY} at (8,8) size 784x62
+ RenderTable {TABLE} at (0,0) size 784x62
+ RenderTableSection {TBODY} at (1,1) size 0x60
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,19) size 22x22 [r=0 c=0 rs=1 cs=1]
+ RenderTableCell {TD} at (26,2) size 754x56 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (11,11) size 724x34
+ text run at (11,11) width 724: "This is a very long line of text, but it should be wrapped. It should not extend all the way off the right side"
+ text run at (11,28) width 378: "of the window, but rather be broken into multiple lines."
diff --git a/third_party/WebKit/LayoutTests/fast/table/large-width.html b/third_party/WebKit/LayoutTests/fast/table/large-width.html
new file mode 100644
index 0000000..f122baf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/large-width.html
@@ -0,0 +1,6 @@
+<table border="1" cellpadding="10">
+ <tr>
+ <td></td>
+ <td width="999999">This is a very long line of text, but it should be wrapped. It should not extend all the way off the right side of the window, but rather be broken into multiple lines.</td>
+ </tr>
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/table/nobr-expected.txt b/third_party/WebKit/LayoutTests/fast/table/nobr-expected.txt
new file mode 100644
index 0000000..559e0cc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/nobr-expected.txt
@@ -0,0 +1,36 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x349
+ RenderBlock {HTML} at (0,0) size 800x349
+ RenderBody {BODY} at (8,8) size 784x333
+ RenderBlock (anonymous) at (0,0) size 784x0
+ RenderInline {NOBR} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,0) size 784x333
+ RenderTable {TABLE} at (0,0) size 77x333
+ RenderTableSection {TBODY} at (1,1) size 0x331
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 71x327 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 67x323
+ text run at (2,2) width 57: "This is a"
+ text run at (2,19) width 60: "test case"
+ text run at (2,36) width 20: "for"
+ text run at (2,53) width 67: "3190580."
+ text run at (2,70) width 32: "Even"
+ text run at (2,87) width 49: "though"
+ text run at (2,104) width 64: "this table"
+ text run at (2,121) width 12: "is"
+ text run at (2,138) width 61: "enclosed"
+ text run at (2,155) width 61: "in a nobr"
+ text run at (2,172) width 57: "tag, this"
+ text run at (2,189) width 27: "text"
+ text run at (2,206) width 46: "should"
+ text run at (2,223) width 34: "wrap"
+ text run at (2,240) width 59: "anyway. "
+ text run at (2,257) width 64: "The table"
+ text run at (2,274) width 67: "is only 50"
+ text run at (2,291) width 41: "pixels"
+ text run at (2,308) width 37: "wide."
+ RenderBlock (anonymous) at (0,333) size 784x0
+ RenderInline {NOBR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/nobr.html b/third_party/WebKit/LayoutTests/fast/table/nobr.html
new file mode 100644
index 0000000..bb956f7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/nobr.html
@@ -0,0 +1,13 @@
+<html>
+<body>
+
+<nobr>
+<table width="50" border="1">
+ <tr>
+ <td>This is a test case for 3190580. Even though this table is enclosed in a nobr tag, this text should wrap anyway. The table is only 50 pixels wide.</td>
+ </tr>
+</table>
+</nobr>
+
+</body>
+</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/table/wide-colspan-expected.txt b/third_party/WebKit/LayoutTests/fast/table/wide-colspan-expected.txt
new file mode 100644
index 0000000..bb0d843
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/wide-colspan-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 1614x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 1614x126
+ RenderBlock {HTML} at (0,0) size 800x126
+ RenderBody {BODY} at (8,8) size 784x110
+ RenderTable {TABLE} at (0,0) size 1606x110
+ RenderTableSection {TBODY} at (0,0) size 0x110
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 1602x52 [r=0 c=0 rs=1 cs=2]
+ RenderImage {IMG} at (1,1) size 1600x50
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,56) size 800x52 [r=1 c=0 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 400x50
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTableCell {TD} at (804,56) size 800x52 [r=1 c=1 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 400x50
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/wide-colspan.html b/third_party/WebKit/LayoutTests/fast/table/wide-colspan.html
new file mode 100644
index 0000000..0e2d040
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/wide-colspan.html
@@ -0,0 +1,15 @@
+<table>
+<tr>
+ <td colspan=2>
+ <img width=1600 height=50>
+ </td>
+</tr>
+<tr>
+ <td>
+ <img width=400 height=50>
+ </td>
+ <td>
+ <img width=400 height=50>
+ </td>
+</tr>
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/table/wide-column-expected.txt b/third_party/WebKit/LayoutTests/fast/table/wide-column-expected.txt
new file mode 100644
index 0000000..4c0dbf0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/wide-column-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 1614x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 1614x72
+ RenderBlock {HTML} at (0,0) size 800x72
+ RenderBody {BODY} at (8,8) size 784x56
+ RenderTable {TABLE} at (0,0) size 1606x56
+ RenderTableSection {TBODY} at (0,0) size 0x56
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 1602x52 [r=0 c=0 rs=1 cs=1]
+ RenderImage {IMG} at (1,1) size 1600x50
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/table/wide-column.html b/third_party/WebKit/LayoutTests/fast/table/wide-column.html
new file mode 100644
index 0000000..6bd25d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/wide-column.html
@@ -0,0 +1,7 @@
+<table>
+<tr>
+ <td>
+ <img width=1600 height=50>
+ </td>
+</tr>
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/001-actual.txt b/third_party/WebKit/LayoutTests/fast/text/basic/001-actual.txt
new file mode 100644
index 0000000..54623d1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/001-actual.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x118
+ RenderBlock {HTML} at (0,0) size 800x118
+ RenderBody {BODY} at (8,8) size 784x102 [color=#008000]
+ RenderBlock (anonymous) at (0,0) size 784x37
+ RenderText {TEXT} at (0,0) size 399x37
+ text run at (0,0) width 399: "This is fixed pitch. "
+ RenderInline {FONT} at (0,0) size 50x11
+ RenderText {TEXT} at (399,20) size 50x11
+ text run at (399,20) width 50: "This is not."
+ RenderBlock (anonymous) at (0,37) size 784x28
+ RenderTable {TABLE} at (0,0) size 111x28
+ RenderTableSection {TBODY} at (2,2) size 0x24
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 103x20 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 99x16
+ text run at (2,2) width 99: "This is also not."
+ RenderBlock (anonymous) at (0,65) size 784x37
+ RenderInline {FONT} at (0,0) size 43x11
+ RenderText {TEXT} at (0,20) size 43x11
+ text run at (0,20) width 43: "More text"
+ RenderText {TEXT} at (43,0) size 152x37
+ text run at (43,0) width 152: " Ending."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/001-diffs.txt b/third_party/WebKit/LayoutTests/fast/text/basic/001-diffs.txt
new file mode 100644
index 0000000..b5da119
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/001-diffs.txt
@@ -0,0 +1,26 @@
+--- /Users/darin/Labyrinth/Site/layout-tests/fast/text/basic/001-expected.txt Fri May 9 21:54:02 2003
++++ /Users/darin/Labyrinth/Site/layout-tests/fast/text/basic/001-actual.txt Wed Jul 30 17:01:19 2003
+@@ -4,11 +4,11 @@
+ RenderBlock {HTML} at (0,0) size 800x118
+ RenderBody {BODY} at (8,8) size 784x102 [color=#008000]
+ RenderBlock (anonymous) at (0,0) size 784x37
+- RenderText {TEXT} at (0,0) size 420x37
+- text run at (0,0) width 420: "This is fixed pitch. "
++ RenderText {TEXT} at (0,0) size 399x37
++ text run at (0,0) width 399: "This is fixed pitch. "
+ RenderInline {FONT} at (0,0) size 50x11
+- RenderText {TEXT} at (420,20) size 50x11
+- text run at (420,20) width 50: "This is not."
++ RenderText {TEXT} at (399,20) size 50x11
++ text run at (399,20) width 50: "This is not."
+ RenderBlock (anonymous) at (0,37) size 784x28
+ RenderTable {TABLE} at (0,0) size 111x28
+ RenderTableSection {TBODY} at (2,2) size 0x24
+@@ -20,5 +20,5 @@
+ RenderInline {FONT} at (0,0) size 43x11
+ RenderText {TEXT} at (0,20) size 43x11
+ text run at (0,20) width 43: "More text"
+- RenderText {TEXT} at (43,0) size 160x37
+- text run at (43,0) width 160: " Ending."
++ RenderText {TEXT} at (43,0) size 152x37
++ text run at (43,0) width 152: " Ending."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/001-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/001-expected.txt
new file mode 100644
index 0000000..84754ef
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/001-expected.txt
@@ -0,0 +1,24 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x118
+ RenderBlock {HTML} at (0,0) size 800x118
+ RenderBody {BODY} at (8,8) size 784x102 [color=#008000]
+ RenderBlock (anonymous) at (0,0) size 784x37
+ RenderText {TEXT} at (0,0) size 420x37
+ text run at (0,0) width 420: "This is fixed pitch. "
+ RenderInline {FONT} at (0,0) size 50x11
+ RenderText {TEXT} at (420,20) size 50x11
+ text run at (420,20) width 50: "This is not."
+ RenderBlock (anonymous) at (0,37) size 784x28
+ RenderTable {TABLE} at (0,0) size 111x28
+ RenderTableSection {TBODY} at (2,2) size 0x24
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 103x20 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 99x16
+ text run at (2,2) width 99: "This is also not."
+ RenderBlock (anonymous) at (0,65) size 784x37
+ RenderInline {FONT} at (0,0) size 43x11
+ RenderText {TEXT} at (0,20) size 43x11
+ text run at (0,20) width 43: "More text"
+ RenderText {TEXT} at (43,0) size 160x37
+ text run at (43,0) width 160: " Ending."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/001.html b/third_party/WebKit/LayoutTests/fast/text/basic/001.html
new file mode 100644
index 0000000..fac7015
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/001.html
@@ -0,0 +1,10 @@
+<body style="font: 24pt Courier; color:green">
+This is fixed pitch.
+<font face="Arial" size=1>
+This is not.
+<table border=2>
+<tr><td>This is also not.
+</table>
+More text</font>
+Ending.
+
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/002-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/002-expected.txt
new file mode 100644
index 0000000..ea3c36d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/002-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x342
+ RenderBlock {HTML} at (0,0) size 800x342
+ RenderBody {BODY} at (8,8) size 784x320
+ RenderBlock {P} at (0,0) size 100x153
+ RenderText {TEXT} at (0,0) size 100x153
+ text run at (0,0) width 29: "This"
+ text run at (0,17) width 70: "paragraph"
+ text run at (0,34) width 58: "contains"
+ text run at (0,51) width 100: "justified text. "
+ text run at (0,68) width 100: "Within the"
+ text run at (0,85) width 80: "constrained"
+ text run at (0,102) width 100: "width, this"
+ text run at (0,119) width 100: "text should be"
+ text run at (0,136) width 61: "justified."
+ RenderBlock {P} at (0,167) size 100x153
+ RenderText {TEXT} at (0,0) size 100x153
+ text run at (0,0) width 29: "This"
+ text run at (0,17) width 70: "paragraph"
+ text run at (0,34) width 100: "also contains"
+ text run at (0,51) width 100: "justified text. "
+ text run at (0,68) width 100: "Within the"
+ text run at (0,85) width 80: "constrained"
+ text run at (0,102) width 100: "width, this"
+ text run at (0,119) width 100: "text should be"
+ text run at (0,136) width 61: "justified."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/002.html b/third_party/WebKit/LayoutTests/fast/text/basic/002.html
new file mode 100644
index 0000000..b48a156
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/002.html
@@ -0,0 +1,6 @@
+<p align=justify style="width:100px">
+This paragraph contains justified text. Within the constrained width, this text should be justified.
+</p>
+<p align=justify style="width:100px">
+This paragraph also contains justified text. Within the constrained width, this text should be justified.
+</p>
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/003-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/003-expected.txt
new file mode 100644
index 0000000..f6b3e74
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/003-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderBlock (floating) {P} at (0,14) size 742x21
+ RenderText {TEXT} at (2,2) size 738x17
+ text run at (2,2) width 348: "There should be 12"
+ text run at (350,2) width 390: "px of letter spacing."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/003.html b/third_party/WebKit/LayoutTests/fast/text/basic/003.html
new file mode 100644
index 0000000..2c1e6af
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/003.html
@@ -0,0 +1,7 @@
+<html>
+<body>
+<p style="float:left;border:2px solid blue; letter-spacing: 12px">
+There should be 12px of letter spacing.
+</p>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/004-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/004-expected.txt
new file mode 100644
index 0000000..30be9b7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/004-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x239
+ RenderBlock {HTML} at (0,0) size 800x239
+ RenderBody {BODY} at (8,8) size 784x223
+ RenderBlock (floating) {P} at (0,14) size 677x21
+ RenderText {TEXT} at (2,2) size 673x17
+ text run at (2,2) width 222: "There should be 30"
+ text run at (224,2) width 451: "px of word spacing between each word."
+ RenderBlock {DIV} at (0,0) size 784x100
+ RenderTable {TABLE} at (0,100) size 100x123
+ RenderTableSection {TBODY} at (0,0) size 0x123
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 100x123 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {P} at (0,0) size 100x123
+ RenderText {TEXT} at (2,2) size 90x119
+ text run at (2,2) width 39: "There"
+ text run at (2,19) width 82: "should be"
+ text run at (2,36) width 69: "15px of"
+ text run at (2,53) width 34: "word"
+ text run at (2,70) width 53: "spacing"
+ text run at (2,87) width 57: "between"
+ text run at (2,104) width 90: "each word."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/004.html b/third_party/WebKit/LayoutTests/fast/text/basic/004.html
new file mode 100644
index 0000000..af98115
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/004.html
@@ -0,0 +1,10 @@
+<html>
+<body><p style="float:left; border:2px solid green; word-spacing: 30px">
+There should be 30px of word spacing between each word.
+</p><div style="height:100px"></div><table border=0 cellspacing=0 cellpadding=0 width=100>
+<td width=100><p style="border:2px solid green; word-spacing: 15px">
+There should be 15px of word spacing between each word.</p></td>
+</table></body>
+
+
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/005-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/005-expected.txt
new file mode 100644
index 0000000..7ca5fa7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/005-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x8
+ RenderBlock {HTML} at (0,0) size 800x8
+ RenderBody {BODY} at (8,8) size 784x0
+ RenderBlock (floating) {DIV} at (0,0) size 283x21
+ RenderText {TEXT} at (2,2) size 279x17
+ text run at (2,2) width 256: "Words should have a negative spacing of 5"
+ text run at (258,2) width 23: "px."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/005.html b/third_party/WebKit/LayoutTests/fast/text/basic/005.html
new file mode 100644
index 0000000..33a3f3b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/005.html
@@ -0,0 +1,5 @@
+<html>
+<body>
+<div style="float:left; border:2px solid green; word-spacing: -5px">
+Words should have a negative spacing of 5px.
+</div>
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/006-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/006-expected.txt
new file mode 100644
index 0000000..a991410
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/006-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x45
+ RenderBlock {HTML} at (0,0) size 800x45
+ RenderBody {BODY} at (8,8) size 784x29
+ RenderTable {TABLE} at (0,0) size 784x29
+ RenderTableSection {TBODY} at (2,2) size 0x25
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 561x21 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 170x17
+ text run at (2,2) width 170: "Big cell gets all the width"
+ RenderTableCell {TD} at (565,2) size 213x21 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (2,2) size 209x17
+ text run at (2,2) width 209: "Icannotbreak\x{A0}noicannot\x{A0}\x{B7}break"
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/006.html b/third_party/WebKit/LayoutTests/fast/text/basic/006.html
new file mode 100644
index 0000000..38fb1b8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/006.html
@@ -0,0 +1,7 @@
+<html>
+<table border=2 width=100%>
+<tr>
+<td width=100%>Big cell gets all the width
+<td>Icannotbreak&nbsp;noicannot&nbsp;&#183;break
+</tr>
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/007-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/007-expected.txt
new file mode 100644
index 0000000..4ecc551
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/007-expected.txt
@@ -0,0 +1,44 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x119
+ RenderBlock {HTML} at (0,0) size 800x119
+ RenderBody {BODY} at (8,8) size 784x103
+ RenderTable {TABLE} at (0,0) size 784x40
+ RenderTableSection {TBODY} at (2,2) size 0x36
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,8) size 717x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 65x17
+ text run at (1,1) width 65: "A Big Cell"
+ RenderTableCell {TD} at (717,0) size 63x36 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 37x34
+ text run at (1,1) width 10: "A"
+ text run at (1,18) width 37: "small"
+ RenderInline {SPAN} at (0,0) size 24x17
+ RenderText {TEXT} at (38,18) size 24x17
+ text run at (38,18) width 24: "cell"
+ RenderTable {TABLE} at (0,40) size 784x40
+ RenderTableSection {TBODY} at (2,2) size 0x36
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,8) size 712x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 65x17
+ text run at (1,1) width 65: "A Big Cell"
+ RenderTableCell {TD} at (712,0) size 68x36 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 51x17
+ text run at (1,1) width 51: "A small"
+ RenderInline {SPAN} at (0,0) size 24x17
+ RenderText {TEXT} at (1,18) size 24x17
+ text run at (1,18) width 24: "cell"
+ RenderText {TEXT} at (25,18) size 42x17
+ text run at (25,18) width 42: "block!"
+ RenderTable {TABLE} at (0,80) size 784x23
+ RenderTableSection {TBODY} at (2,2) size 0x19
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 703x19 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 65x17
+ text run at (1,1) width 65: "A Big Cell"
+ RenderTableCell {TD} at (703,0) size 77x19 [r=0 c=1 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 51x17
+ text run at (1,1) width 51: "A small"
+ RenderInline {SPAN} at (0,0) size 24x17
+ RenderText {TEXT} at (52,1) size 24x17
+ text run at (52,1) width 24: "cell"
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/007.html b/third_party/WebKit/LayoutTests/fast/text/basic/007.html
new file mode 100644
index 0000000..62dac13
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/007.html
@@ -0,0 +1,17 @@
+<html>
+<body>
+<table border=2 cellspacing=0 cellpadding=0 width=100%>
+<tr><td width=100%>A Big Cell</td>
+<td>A small<span>cell</span></td>
+</table>
+
+<table border=2 cellspacing=0 cellpadding=0 width=100%>
+<tr><td width=100%>A Big Cell</td>
+<td style="white-space:pre">A small
+<span>cell</span>block!</td>
+</table>
+
+<table border=2 cellspacing=0 cellpadding=0 width=100%>
+<tr><td width=100%>A Big Cell</td>
+<td style="white-space:nowrap">A small<span>cell</span></td>
+</table>
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/008-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/008-expected.txt
new file mode 100644
index 0000000..594cd41
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/008-expected.txt
@@ -0,0 +1,30 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x67
+ RenderBlock {HTML} at (0,0) size 800x67
+ RenderBody {BODY} at (8,8) size 784x51
+ RenderBlock {DIV} at (0,0) size 784x51
+ RenderText {TEXT} at (0,0) size 736x34
+ text run at (0,0) width 109: "This is a test of "
+ text run at (109,0) width 202: "some code to make sure that "
+ text run at (311,0) width 244: "white-space gets properly ignored. "
+ text run at (555,0) width 181: "If it does, then this should"
+ text run at (0,17) width 75: "render the "
+ RenderInline {A} at (0,0) size 30x17 [color=#0000EE]
+ RenderText {TEXT} at (75,17) size 30x17
+ text run at (75,17) width 30: "way "
+ RenderText {TEXT} at (105,17) size 389x17
+ text run at (105,17) width 130: "one would expect. "
+ text run at (235,17) width 259: "Hopefully it does render the way we w"
+ RenderInline {I} at (0,0) size 8x16
+ RenderText {TEXT} at (494,18) size 8x16
+ text run at (494,18) width 8: "a"
+ RenderInline {B} at (0,0) size 10x17
+ RenderText {TEXT} at (502,17) size 10x17
+ text run at (502,17) width 10: "n"
+ RenderText {TEXT} at (512,17) size 756x34
+ text run at (512,17) width 47: "t it to. "
+ text run at (559,17) width 92: "If it does not "
+ text run at (651,17) width 97: "that would be "
+ text run at (748,17) width 8: "a"
+ text run at (0,34) width 62: "problem."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/008.html b/third_party/WebKit/LayoutTests/fast/text/basic/008.html
new file mode 100644
index 0000000..ab855c6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/008.html
@@ -0,0 +1,13 @@
+<body>
+<div>
+This is a test of some code to make sure that
+
+
+
+
+white-space gets properly ignored. If it does, then this should render
+the <a href="foo.html">way </a> one would expect.
+
+Hopefully it does render the way we w<i>a</i><b>n</b>t it to. If it
+does not that would be a problem.
+</div> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/009-actual.txt b/third_party/WebKit/LayoutTests/fast/text/basic/009-actual.txt
new file mode 100644
index 0000000..0288be2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/009-actual.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x73
+ RenderBlock {HTML} at (0,0) size 800x73
+ RenderBody {BODY} at (8,8) size 784x57
+ RenderInline {SPAN} at (0,0) size 374x28
+ RenderText {TEXT} at (0,0) size 220x28
+ text run at (0,0) width 220: "This is some text. "
+ RenderInline {TT} at (0,0) size 154x28
+ RenderText {TEXT} at (220,1) size 154x28
+ text run at (220,1) width 154: "As is this."
+ RenderText {TEXT} at (374,0) size 745x57
+ text run at (374,0) width 341: " All of this text should be 24"
+ text run at (715,0) width 30: "px"
+ text run at (0,29) width 45: "tall."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/009-diffs.txt b/third_party/WebKit/LayoutTests/fast/text/basic/009-diffs.txt
new file mode 100644
index 0000000..d013626
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/009-diffs.txt
@@ -0,0 +1,23 @@
+--- /Users/darin/Labyrinth/Site/layout-tests/fast/text/basic/009-expected.txt Wed May 7 19:35:57 2003
++++ /Users/darin/Labyrinth/Site/layout-tests/fast/text/basic/009-actual.txt Wed Jul 30 17:01:23 2003
+@@ -3,13 +3,13 @@
+ layer at (0,0) size 800x73
+ RenderBlock {HTML} at (0,0) size 800x73
+ RenderBody {BODY} at (8,8) size 784x57
+- RenderInline {SPAN} at (0,0) size 385x28
++ RenderInline {SPAN} at (0,0) size 374x28
+ RenderText {TEXT} at (0,0) size 220x28
+ text run at (0,0) width 220: "This is some text. "
+- RenderInline {TT} at (0,0) size 165x28
+- RenderText {TEXT} at (220,1) size 165x28
+- text run at (220,1) width 165: "As is this."
+- RenderText {TEXT} at (385,0) size 756x57
+- text run at (385,0) width 341: " All of this text should be 24"
+- text run at (726,0) width 30: "px"
++ RenderInline {TT} at (0,0) size 154x28
++ RenderText {TEXT} at (220,1) size 154x28
++ text run at (220,1) width 154: "As is this."
++ RenderText {TEXT} at (374,0) size 745x57
++ text run at (374,0) width 341: " All of this text should be 24"
++ text run at (715,0) width 30: "px"
+ text run at (0,29) width 45: "tall."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/009-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/009-expected.txt
new file mode 100644
index 0000000..30a02bb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/009-expected.txt
@@ -0,0 +1,15 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x73
+ RenderBlock {HTML} at (0,0) size 800x73
+ RenderBody {BODY} at (8,8) size 784x57
+ RenderInline {SPAN} at (0,0) size 385x28
+ RenderText {TEXT} at (0,0) size 220x28
+ text run at (0,0) width 220: "This is some text. "
+ RenderInline {TT} at (0,0) size 165x28
+ RenderText {TEXT} at (220,1) size 165x28
+ text run at (220,1) width 165: "As is this."
+ RenderText {TEXT} at (385,0) size 756x57
+ text run at (385,0) width 341: " All of this text should be 24"
+ text run at (726,0) width 30: "px"
+ text run at (0,29) width 45: "tall."
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/009.html b/third_party/WebKit/LayoutTests/fast/text/basic/009.html
new file mode 100644
index 0000000..0afacf2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/009.html
@@ -0,0 +1,3 @@
+<body style="font-size:24px">
+<span>This is some text. <tt>As is this.</tt></span> All of this text should be 24px tall.
+</body>
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/011-expected.txt b/third_party/WebKit/LayoutTests/fast/text/basic/011-expected.txt
new file mode 100644
index 0000000..8ae5b0c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/011-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x120
+ RenderBlock {HTML} at (0,0) size 800x120
+ RenderBody {BODY} at (8,8) size 784x104
+ RenderBlock {DIV} at (0,0) size 784x34
+ RenderText {TEXT} at (0,0) size 110x17
+ text run at (0,0) width 110: "Select this text. "
+ RenderInline {FONT} at (0,0) size 775x29
+ RenderText {TEXT} at (110,4) size 775x29
+ text run at (110,4) width 102: "I am teeny and tiny. "
+ text run at (212,4) width 362: "I am going to have lots of text but each line should retain the big height. "
+ text run at (574,4) width 201: "If the lines shrink, it means that the root"
+ text run at (0,21) width 290: "line box's height is not being considered and that's wrong."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,48) size 784x0
+ RenderBlock {DIV} at (0,48) size 784x56
+ RenderInline {FONT} at (0,0) size 755x56
+ RenderText {TEXT} at (0,0) size 402x28
+ text run at (0,0) width 402: "This text is absolutely enormous. "
+ RenderInline {FONT} at (0,0) size 755x40
+ RenderText {TEXT} at (402,13) size 755x40
+ text run at (402,13) width 102: "I am teeny and tiny. "
+ text run at (504,13) width 251: "I am going to have lots of text but each line should"
+ text run at (0,41) width 108: "retain the big height. "
+ text run at (108,41) width 504: "If the lines shrink, it means that the span's line box's height is not being considered and that's wrong."
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/text/basic/011.html b/third_party/WebKit/LayoutTests/fast/text/basic/011.html
new file mode 100644
index 0000000..60b988e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/basic/011.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+<head>
+<style>
+</style>
+</head>
+<div>
+Select this text. <font size=1>I am teeny and tiny. I am going to have lots of text but each
+line should retain the big height. If the lines shrink, it means that the root line box's height
+is not being considered and that's wrong.</font>
+</div>
+<p></p>
+<div><font size=6>This text is absolutely enormous. <font size=1>I am teeny and tiny. I am going to have lots of text but each line should retain the big height. If the lines shrink, it means that the span's line box's height
+is not being considered and that's wrong.</font>
+</font></div> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/text/firstline/001-expected.txt b/third_party/WebKit/LayoutTests/fast/text/firstline/001-expected.txt
new file mode 100644
index 0000000..1f714c1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/firstline/001-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x98
+ RenderBlock {HTML} at (0,0) size 800x98
+ RenderBody {BODY} at (8,8) size 784x76
+ RenderBlock {P} at (0,0) size 784x76
+ RenderText {TEXT} at (0,0) size 315x17
+ text run at (0,0) width 315: "BigAndGreen"
+ RenderBR {BR} at (0,0) size 0x0
+ RenderText {TEXT} at (0,59) size 99x17
+ text run at (0,59) width 99: "SmallAndBlack"
diff --git a/third_party/WebKit/LayoutTests/fast/text/firstline/001.html b/third_party/WebKit/LayoutTests/fast/text/firstline/001.html
new file mode 100644
index 0000000..05349f3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/firstline/001.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<style>
+p:first-line {
+ color: green;
+ font-size: 50px;
+}
+</style>
+<body><p>BigAndGreen<br>SmallAndBlack</p></body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/firstline/002-expected.txt b/third_party/WebKit/LayoutTests/fast/text/firstline/002-expected.txt
new file mode 100644
index 0000000..ed7b973
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/firstline/002-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x69
+ RenderBlock {HTML} at (0,0) size 800x69
+ RenderBody {BODY} at (8,8) size 784x47
+ RenderBlock {P} at (0,0) size 784x47
+ RenderInline at (0,0) size 32x43 [color=#800000]
+ RenderText {TEXT} at (2,2) size 32x43
+ text run at (2,2) width 32: "M"
+ RenderText {TEXT} at (34,23) size 198x17
+ text run at (34,23) width 198: "aroon on the first letter only."
diff --git a/third_party/WebKit/LayoutTests/fast/text/firstline/002.html b/third_party/WebKit/LayoutTests/fast/text/firstline/002.html
new file mode 100644
index 0000000..5244149
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/firstline/002.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<style>
+p:first-letter {
+ color: maroon;
+ font-size: 36px;
+}
+</style>
+<body><p style="border:2px solid blue">Maroon on the first letter only.</p>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/firstline/003-expected.txt b/third_party/WebKit/LayoutTests/fast/text/firstline/003-expected.txt
new file mode 100644
index 0000000..c0c7100
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/firstline/003-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x50
+ RenderBlock {HTML} at (0,0) size 800x50
+ RenderBody {BODY} at (8,8) size 784x28
+ RenderBlock {P} at (0,0) size 784x28
+ RenderInline at (0,0) size 17x28 [color=#FF0000]
+ RenderText {TEXT} at (0,0) size 17x28
+ text run at (0,0) width 17: "A"
+ RenderText {TEXT} at (17,9) size 437x17
+ text run at (17,9) width 437: " The \"A\" should be big and red and ignore the position: relative."
diff --git a/third_party/WebKit/LayoutTests/fast/text/firstline/003.html b/third_party/WebKit/LayoutTests/fast/text/firstline/003.html
new file mode 100644
index 0000000..0411cbc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/firstline/003.html
@@ -0,0 +1,18 @@
+<html>
+<head>
+<style>
+p:first-letter {
+ position: relative;
+ left:100px;
+ top:100px;
+ font-size: 24px;
+ color:red;
+}
+</style>
+</head>
+<body>
+<p>
+A The "A" should be big and red and ignore the position: relative.
+</p>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/international/001-expected.txt b/third_party/WebKit/LayoutTests/fast/text/international/001-expected.txt
new file mode 100644
index 0000000..d38463f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/international/001-expected.txt
@@ -0,0 +1,27 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x33
+ RenderBlock {HTML} at (0,0) size 800x33
+ RenderBody {BODY} at (8,8) size 784x17
+ RenderInline {A} at (0,0) size 28x17 [color=#0000EE]
+ RenderText {TEXT} at (0,0) size 28x17
+ text run at (0,0) width 28: "\x{5EFA}\x{7BC9}"
+ RenderText {TEXT} at (28,0) size 9x17
+ text run at (28,0) width 9: ", "
+ RenderInline {A} at (0,0) size 42x17 [color=#0000EE]
+ RenderText {TEXT} at (37,0) size 42x17
+ text run at (37,0) width 42: "\x{7F8E}\x{8853}\x{9928}"
+ RenderText {TEXT} at (79,0) size 9x17
+ text run at (79,0) width 9: ", "
+ RenderInline {A} at (0,0) size 28x17 [color=#0000EE]
+ RenderText {TEXT} at (88,0) size 28x17
+ text run at (88,0) width 28: "\x{6B74}\x{53F2}"
+ RenderText {TEXT} at (116,0) size 9x17
+ text run at (116,0) width 9: ", "
+ RenderInline {A} at (0,0) size 28x17 [color=#0000EE]
+ RenderText {TEXT} at (125,0) size 28x17
+ text run at (125,0) width 28: "\x{6587}\x{5B66}"
+ RenderText {TEXT} at (153,0) size 27x17
+ text run at (153,0) width 4: " "
+ text run at (157,0) width 23: "...a"
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/text/international/001.html b/third_party/WebKit/LayoutTests/fast/text/international/001.html
new file mode 100644
index 0000000..9f7eed8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/international/001.html
@@ -0,0 +1,13 @@
+<HTML>
+<HEAD>
+<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
+<TITLE>Yahoo! JAPAN </TITLE>
+</HEAD>
+<BODY>
+ <a href="http://dir.yahoo.co.jp/Arts/Design_Arts/Architecture/">·úÃÛ</a>,
+ <a href="http://dir.yahoo.co.jp/Arts/Museums_and_Galleries/">Èþ½Ñ´Û</a>,
+ <a href="http://dir.yahoo.co.jp/Arts/Humanities/History/">Îò»Ë</a>,
+ <a href="http://dir.yahoo.co.jp/Arts/Humanities/Literature/">ʸ³Ø</a>
+ ...a
+</BODY>
+</HTML>
diff --git a/third_party/WebKit/LayoutTests/fast/text/international/002-expected.txt b/third_party/WebKit/LayoutTests/fast/text/international/002-expected.txt
new file mode 100644
index 0000000..32412ad
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/international/002-expected.txt
@@ -0,0 +1,16 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x101
+ RenderBlock {HTML} at (0,0) size 800x101
+ RenderBody {BODY} at (8,8) size 784x85
+ RenderTable {TABLE} at (0,0) size 280x85
+ RenderTableSection {TBODY} at (0,0) size 0x85
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 280x85 [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (0,0) size 280x85
+ text run at (0,0) width 280: "\x{8AB0}\x{3067}\x{3082}\x{3042}\x{306A}\x{305F}\x{306E}\x{30C9}\x{30AD}\x{30E5}\x{30E1}\x{30F3}\x{30C8}\x{3092}\x{30AA}\x{30EA}\x{30B8}\x{30CA}\x{30EB}\x{306E}"
+ text run at (0,17) width 186: "\x{4F53}\x{88C1}\x{3067}\x{958B}\x{304F}\x{3053}\x{3068}\x{304C}\x{3067}\x{304D}\x{307E}\x{3059}\x{3002} "
+ text run at (186,17) width 84: "\x{3042}\x{306A}\x{305F}\x{306E}\x{610F}\x{56F3}"
+ text run at (0,34) width 280: "\x{3057}\x{305F}\x{3068}\x{304A}\x{308A}\x{306B}\x{60C5}\x{5831}\x{3092}\x{4F1D}\x{3048}\x{308B}\x{3053}\x{3068}\x{304C}\x{3067}\x{304D}\x{307E}\x{3059}\x{3002}"
+ text run at (0,51) width 280: "\x{3055}\x{3089}\x{306B}\x{3001}\x{30D6}\x{30E9}\x{30A6}\x{30B6}\x{304B}\x{3089}\x{30B3}\x{30E1}\x{30F3}\x{30C8}\x{3084}\x{30DE}\x{30FC}\x{30AF}\x{30A2}\x{30C3}"
+ text run at (0,68) width 112: "\x{30D7}\x{3092}\x{66F8}\x{304D}\x{8FBC}\x{3093}\x{3060}\x{308A}"
diff --git a/third_party/WebKit/LayoutTests/fast/text/international/002.html b/third_party/WebKit/LayoutTests/fast/text/international/002.html
new file mode 100644
index 0000000..5ebf09f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/international/002.html
@@ -0,0 +1,16 @@
+<HTML LANG="ja">
+
+ <HEAD>
+ <meta http-equiv="content-type" content="text/html;charset=x-sjis">
+ </HEAD>
+
+<BODY>
+
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="280">
+ <TR>
+ <TD>’N‚Å‚à‚ ‚È‚½‚̃hƒLƒ…ƒƒ“ƒg‚ðƒIƒŠƒWƒiƒ‹‚Ì‘ÌÙ‚ÅŠJ‚­‚±‚Æ‚ª‚Å‚«‚Ü‚·B
+ ‚ ‚È‚½‚̈Ó}‚µ‚½‚Æ‚¨‚è‚Éî•ñ‚ð“`‚¦‚邱‚Æ‚ª‚Å‚«‚Ü‚·B‚³‚ç‚ÉAƒuƒ‰ƒEƒU‚©‚çƒRƒƒ“ƒg‚âƒ}[ƒNƒAƒbƒv‚ð‘‚«ž‚ñ‚¾‚è</TD>
+ </TR>
+</TABLE>
+</BODY>
+</HTML> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/001-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/001-expected.txt
new file mode 100644
index 0000000..2a5834f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/001-expected.txt
@@ -0,0 +1,14 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x114
+ RenderBlock {HTML} at (0,0) size 800x114
+ RenderBody {BODY} at (8,8) size 784x92
+ RenderBlock {PRE} at (0,0) size 784x32
+ RenderText {TEXT} at (0,16) size 104x16
+ text run at (0,16) width 104: "text col"
+ RenderBlock {PRE} at (0,46) size 784x16
+ RenderText {TEXT} at (0,0) size 104x16
+ text run at (0,0) width 104: " col"
+ RenderBlock {PRE} at (0,76) size 784x16
+ RenderText {TEXT} at (0,0) size 104x16
+ text run at (0,0) width 104: "thistextiscol"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/001.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/001.html
new file mode 100644
index 0000000..be1503f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/001.html
@@ -0,0 +1,9 @@
+<pre>
+text col
+</pre>
+<pre>
+ col
+</pre>
+<pre>
+thistextiscol
+</pre> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/002-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/002-expected.txt
new file mode 100644
index 0000000..e3d129d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/002-expected.txt
@@ -0,0 +1,87 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x204
+ RenderBlock {HTML} at (0,0) size 800x204
+ RenderBody {BODY} at (8,8) size 784x188
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 697x17
+ text run at (0,0) width 697: "There should be three columns below, dark green, light green, and dark green, with no red anywhere."
+ RenderTable {TABLE} at (0,62) size 66x126
+ RenderTableSection {TBODY} at (3,3) size 0x120
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 60x120 [color=#FF0000] [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderBlock {DIV} at (0,20) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderBlock {DIV} at (0,40) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,60) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock (anonymous) at (0,0) size 60x20 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20 [bgcolor=#00FF00]
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,80) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderBlock (anonymous) at (0,0) size 60x20 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20 [bgcolor=#00FF00]
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,20) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,100) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 60x20
+ text run at (0,0) width 60: "X X"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/002.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/002.html
new file mode 100644
index 0000000..cf18612
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/002.html
@@ -0,0 +1,41 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space normal: simple tests</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ * { white-space: normal; }
+ div { display: block; }
+ span { display: inline; }
+ table { padding: 0; border-spacing: 0; border: solid; }
+ td { font: 20px/1 Ahem; color: red; background: red; padding: 0; }
+ .red { background: red; }
+ .green { color: green; background: lime; }
+ .check { width: 3em; background: lime; color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be three columns below, dark green, light green, and dark green, with no red anywhere.</p>
+ <table>
+ <tr>
+ <td>
+ <div class="red"> </div>
+ <div class="red"> <div></div></div>
+ <div class="red"> <div> </div></div>
+ <div class="red"><div> </div></div>
+ <div class="red"><div> </div> </div>
+ <div class="red"><div></div> </div>
+ <div class="red"> <div></div> </div>
+ <div class="red"> <div> </div> </div>
+ <div class="green"><span>X</span> <span>X</span></div>
+ <div class="green"> <span>X</span> <span>X</span></div>
+ <div class="green"><span>X</span> <span>X</span> </div>
+ <div class="green"> <div></div> <span>X</span> <span>X</span> </div>
+ <div class="green"> <span>X</span> <span>X</span> <div></div> </div>
+ <div class="check">X X</div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/003-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/003-expected.txt
new file mode 100644
index 0000000..e3d129d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/003-expected.txt
@@ -0,0 +1,87 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x204
+ RenderBlock {HTML} at (0,0) size 800x204
+ RenderBody {BODY} at (8,8) size 784x188
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 697x17
+ text run at (0,0) width 697: "There should be three columns below, dark green, light green, and dark green, with no red anywhere."
+ RenderTable {TABLE} at (0,62) size 66x126
+ RenderTableSection {TBODY} at (3,3) size 0x120
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (0,0) size 60x120 [color=#FF0000] [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x0
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,0) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderBlock {DIV} at (0,20) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderBlock {DIV} at (0,40) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20 [bgcolor=#000000]
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (0,60) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,0) size 60x0 [bgcolor=#000000]
+ RenderBlock (anonymous) at (0,0) size 60x20 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20 [bgcolor=#00FF00]
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,80) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderBlock (anonymous) at (0,0) size 60x20 [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderText {TEXT} at (20,0) size 20x20 [bgcolor=#00FF00]
+ text run at (20,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (40,0) size 20x20
+ text run at (40,0) width 20: "X"
+ RenderText {TEXT} at (0,0) size 0x0 [bgcolor=#00FF00]
+ RenderBlock {DIV} at (0,20) size 60x0 [bgcolor=#000000]
+ RenderBlock {DIV} at (0,100) size 60x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 60x20
+ text run at (0,0) width 60: "X X"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/003.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/003.html
new file mode 100644
index 0000000..eb197d72
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/003.html
@@ -0,0 +1,41 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space normal: simple tests</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ * { white-space: normal; }
+ div { display: block; }
+ span { display: inline; }
+ table { padding: 0; border-spacing: 0; border: solid; }
+ td { font: 20px/1 Ahem; color: red; background: red; padding: 0; }
+ .red { background: red; }
+ .green { color: green; background: lime; }
+ .check { width: 3em; background: lime; color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be three columns below, dark green, light green, and dark green, with no red anywhere.</p>
+ <table>
+ <tr>
+ <td>
+ <div class="red"> </div>
+ <div class="red"> <div></div></div>
+ <div class="red"> <div> </div></div>
+ <div class="red"><div> </div></div>
+ <div class="red"><div> </div> </div>
+ <div class="red"><div></div> </div>
+ <div class="red"> <div></div> </div>
+ <div class="red"> <div> </div> </div>
+ <div class="green"><span>X</span> <span>X</span></div>
+ <div class="green"> <span>X</span> <span>X</span></div>
+ <div class="green"><span>X</span> <span>X</span> </div>
+ <div class="green"> <div></div> <span>X</span> <span>X</span> </div>
+ <div class="green"> <span>X</span> <span>X</span> <div></div> </div>
+ <div class="check">X X</div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/004-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/004-expected.txt
new file mode 100644
index 0000000..202c83d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/004-expected.txt
@@ -0,0 +1,47 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x182
+ RenderBlock {HTML} at (0,0) size 800x182
+ RenderBody {BODY} at (8,8) size 784x166
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 479x17
+ text run at (0,0) width 479: "There should be no red below, only a green square bordered in green."
+ RenderTable {TABLE} at (0,62) size 104x104
+ RenderTableSection {TBODY} at (0,0) size 0x104
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 100x100 [color=#800000] [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
+ RenderBlock {DIV} at (0,20) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 60x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (20,0) size 60x20
+ text run at (20,0) width 60: "\x{A0}\x{A0}\x{A0}"
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderBlock {DIV} at (0,40) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 60x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (20,0) size 60x20
+ text run at (20,0) width 60: "\x{200B} \x{200B} \x{200B} \x{200B}"
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderBlock {DIV} at (0,60) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 60x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (20,0) size 60x20
+ text run at (20,0) width 60: " \x{200B} \x{200B} "
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderBlock {DIV} at (0,80) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/004.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/004.html
new file mode 100644
index 0000000..e9ddb82
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/004.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space normal: zero width non-breaking space</title>
+ <style type="text/css">
+ /* setup */
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ td * { white-space: normal; font: inherit; }
+ div { display: block; }
+ span { display: inline; }
+
+ /* test */
+ td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; }
+ span { background: lime; }
+ div { color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below, only a green square bordered in green.</p>
+ <!-- U+00A0 is exactly equivalent to U+200B U+0020 U+200B -->
+ <table>
+ <tr>
+ <td>
+ <div>XXXXX</div>
+ <div>X<span>&#x00A0;&#x00A0;&#x00A0;</span>X</div>
+ <div>X<span>&#x200B; &#x200B; &#x200B; &#x200B;</span>X</div>
+ <div>X<span> &#x200B; &#x200B; </span>X</div>
+ <div>XXXXX</div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/005-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/005-expected.txt
new file mode 100644
index 0000000..6c5ff8e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/005-expected.txt
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x182
+ RenderBlock {HTML} at (0,0) size 800x182
+ RenderBody {BODY} at (8,8) size 784x166
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 479x17
+ text run at (0,0) width 479: "There should be no red below, only a green square bordered in green."
+ RenderTable {TABLE} at (0,62) size 104x104
+ RenderTableSection {TBODY} at (0,0) size 0x104
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 100x100 [color=#800000] [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
+ RenderBlock {DIV} at (0,20) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 100x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "X\x{A0}\x{A0}\x{A0}X"
+ RenderBlock {DIV} at (0,40) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 100x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "X\x{200B} \x{200B} \x{200B} \x{200B}X"
+ RenderBlock {DIV} at (0,60) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 100x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "X \x{200B} \x{200B} X"
+ RenderBlock {DIV} at (0,80) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/005.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/005.html
new file mode 100644
index 0000000..e71b4ee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/005.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space normal: zero width non-breaking space</title>
+ <style type="text/css">
+ /* setup */
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ td * { white-space: normal; font: inherit; }
+ div { display: block; }
+ span { display: inline; }
+
+ /* test */
+ td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; }
+ span { background: lime; }
+ div { color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below, only a green square bordered in green.</p>
+ <!-- U+00A0 is exactly equivalent to U+200B U+0020 U+200B -->
+ <table>
+ <tr>
+ <td>
+ <div>XXXXX</div>
+ <div><span>X&#x00A0;&#x00A0;&#x00A0;X</span></div>
+ <div><span>X&#x200B; &#x200B; &#x200B; &#x200B;X</span></div>
+ <div><span>X &#x200B; &#x200B; X</span></div>
+ <div>XXXXX</div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/006-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/006-expected.txt
new file mode 100644
index 0000000..a435a3a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/006-expected.txt
@@ -0,0 +1,107 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x196
+ RenderBlock {HTML} at (0,0) size 800x196
+ RenderBody {BODY} at (8,8) size 784x168
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (14,3) size 462x14
+ text run at (14,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 541x17
+ text run at (0,0) width 541: "There should be no red below, only three identical striped green and lime bars."
+ RenderBlock {DIV} at (20,68) size 744x20
+ RenderInline {SPAN} at (0,0) size 220x20 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 220x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 40x20
+ text run at (0,0) width 40: "X "
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (40,0) size 40x20
+ text run at (40,0) width 40: "X "
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 20x20 [color=#800000] [bgcolor=#FF0000]
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderInline {SPAN} at (0,0) size 20x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (100,0) size 20x20
+ text run at (100,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (120,0) size 40x20
+ text run at (120,0) width 40: "X "
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 60x20
+ RenderText {TEXT} at (160,0) size 20x20
+ text run at (160,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (180,0) size 20x20
+ text run at (180,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (200,0) size 20x20
+ text run at (200,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (20,108) size 744x20
+ RenderInline {SPAN} at (0,0) size 220x20 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 220x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 40x20
+ text run at (0,0) width 40: "X "
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (40,0) size 40x20
+ text run at (40,0) width 40: "X "
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 20x20 [color=#800000] [bgcolor=#FF0000]
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderInline {SPAN} at (0,0) size 20x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (100,0) size 20x20
+ text run at (100,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (120,0) size 40x20
+ text run at (120,0) width 40: "X "
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 60x20
+ RenderText {TEXT} at (160,0) size 20x20
+ text run at (160,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 20x20
+ RenderText {TEXT} at (180,0) size 20x20
+ text run at (180,0) width 20: " "
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (200,0) size 20x20
+ text run at (200,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (20,148) size 744x20
+ RenderInline {SPAN} at (0,0) size 220x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 220x20
+ text run at (0,0) width 220: "X X X X X X"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/006.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/006.html
new file mode 100644
index 0000000..7f5b1e7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/006.html
@@ -0,0 +1,46 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <!-- ================================================================ -->
+ <!-- WARNING! This document contains significant trailing whitespace! -->
+ <!-- ================================================================ -->
+ <head>
+ <title>white-space normal: zero width non-breaking space</title>
+ <style type="text/css">
+ /* setup */
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ * { white-space: normall; font: inherit; }
+ div { display: block; margin: 1em; }
+ span { display: inline; }
+
+ /* test */
+ div { font: 20px/1 Ahem; }
+ .green { background: lime; color: green; }
+ .red { background: red; color: maroon; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below, only three identical striped green and lime bars.</p>
+
+ <!-- the next two tests are identical, but one uses raw data and the other uses entities -->
+
+ <div><span class="red">
+
+ <span class="green">X <span class="red"><span class="red"> <span class="red">
+ </span></span> </span>X <span class="red">
+ </span>X<span class="red"><span class="red"><span class="green"> </span><span
+ class="red"> </span></span> </span>X
+<span class="red">
+
+ </span>
+ <span class="green">X<span class="green"> <span class="red"> </span></span><span
+ class="red"> </span>X<span class="red">
+
+ </span></span></div>
+
+ <div><span class="red">&#x000A;&#x000A;&#x0020;&#x0020;&#x0020;<span class="green">X&#x0020;<span class="red"><span class="red">&#x0020;<span class="red">&#x000A;&#x0020;&#x0020;&#x0020;</span></span>&#x0020;</span>X&#x0020;<span class="red">&#x0020;&#x000A;&#x0020;&#x0020;&#x0020;</span>X<span class="red"><span class="red"><span class="green">&#x0020;</span><span class="red">&#x0020;</span></span>&#x0020;</span>X&#x000A;<span class="red">&#x0020;&#x000A;&#x0020;&#x0020;&#x0020;&#x000A;&#x0020;&#x0020;&#x0020;</span>&#x000A;&#x0020;&#x0020;&#x0020;<span class="green">X<span class="green">&#x0020;<span class="red">&#x0020;</span></span><span class="red">&#x0020;</span>X<span class="red">&#x000A;&#x000A;&#x0020;&#x0020;</span></span></div>
+
+ <div><span class="green">X X X X X X</span></div>
+
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/007-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/007-expected.txt
new file mode 100644
index 0000000..9f3e8bd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/007-expected.txt
@@ -0,0 +1,48 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x156
+ RenderBlock {HTML} at (0,0) size 800x156
+ RenderBody {BODY} at (8,8) size 784x128
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (14,3) size 462x14
+ text run at (14,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 530x17
+ text run at (0,0) width 530: "There should be no red below, only two identical striped green and lime bars."
+ RenderBlock {DIV} at (20,68) size 744x20
+ RenderInline {SPAN} at (0,0) size 220x20 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 40x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 40x20
+ text run at (0,0) width 40: "X "
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 40x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (40,0) size 40x20
+ text run at (40,0) width 40: "X "
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 40x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (80,0) size 40x20
+ text run at (80,0) width 40: "X "
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 40x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (120,0) size 40x20
+ text run at (120,0) width 40: "X "
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {SPAN} at (0,0) size 20x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (160,0) size 20x20
+ text run at (160,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 40x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (180,0) size 40x20
+ text run at (180,0) width 40: " X"
+ RenderInline {SPAN} at (0,0) size 0x0 [color=#800000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {DIV} at (20,108) size 744x20
+ RenderInline {SPAN} at (0,0) size 220x20 [color=#008000] [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 220x20
+ text run at (0,0) width 220: "X X X X X X"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/007.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/007.html
new file mode 100644
index 0000000..4f30ef0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/007.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space normal: zero width non-breaking space</title>
+ <style type="text/css">
+ /* setup */
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ * { white-space: normall; font: inherit; }
+ div { display: block; margin: 1em; }
+ span { display: inline; }
+
+ /* test */
+ div { font: 20px/1 Ahem; }
+ .green { background: lime; color: green; }
+ .red { background: red; color: maroon; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below, only two identical striped green and lime bars.</p>
+
+ <div><span class="red">
+ <span class="green">X </span> <span class="red"> </span> <span class="green"> X </span>
+ <span class="green">X </span> <span class="green"> X </span>
+ <span class="green">X</span><span class="green"> X<span class="red"> </span></span>
+ </span></div>
+
+ <div><span class="green">X X X X X X</span></div>
+
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/008-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/008-expected.txt
new file mode 100644
index 0000000..15e28ac
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/008-expected.txt
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x136
+ RenderBlock {HTML} at (0,0) size 800x136
+ RenderBody {BODY} at (8,8) size 784x108
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (14,3) size 462x14
+ text run at (14,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 310x17
+ text run at (0,0) width 310: "There should be a green block below, no red."
+ RenderBlock {DIV} at (20,68) size 80x40 [color=#008000] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,0) size 80x40
+ text run at (0,0) width 80: "xxxx"
+ text run at (0,20) width 80: "xxxx"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/008.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/008.html
new file mode 100644
index 0000000..e8e7373
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/008.html
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space normal: zero width non-breaking space</title>
+ <style type="text/css">
+ /* setup */
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ * { white-space: normall; font: inherit; }
+ div { display: block; margin: 1em; }
+ span { display: inline; }
+
+ /* test */
+ div { font: 20px/1 Ahem; width: 4em; background: red; color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be a green block below, no red.</p>
+
+ <div>
+ xxxx
+ xxxx
+ </div>
+
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/009-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/009-expected.txt
new file mode 100644
index 0000000..41b4ee0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/009-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x98
+ RenderBlock {HTML} at (0,0) size 800x98
+ RenderBody {BODY} at (8,8) size 784x82
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 490x17
+ text run at (0,0) width 490: "There should be no red below, only a lime line with a green square in it."
+ RenderBlock {DIV} at (0,62) size 784x20
+ RenderBlock {DIV} at (0,0) size 200x20 [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,0) size 140x20 [color=#00FF00] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 200x20
+ text run at (0,0) width 200: "xxx xxxxxx"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/009.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/009.html
new file mode 100644
index 0000000..688aba1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/009.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space nowrap: basic test</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .top { font: 20px/1 Ahem; }
+ .outer { width: 10em; background: red; }
+ .inner { width: 7em; color: lime; background: green; white-space: nowrap; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below, only a lime line with a green square in it.</p>
+ <div class="top">
+ <div class="outer">
+ <div class="inner">
+ xxx xxxxxx
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/010-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/010-expected.txt
new file mode 100644
index 0000000..202c83d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/010-expected.txt
@@ -0,0 +1,47 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x182
+ RenderBlock {HTML} at (0,0) size 800x182
+ RenderBody {BODY} at (8,8) size 784x166
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 479x17
+ text run at (0,0) width 479: "There should be no red below, only a green square bordered in green."
+ RenderTable {TABLE} at (0,62) size 104x104
+ RenderTableSection {TBODY} at (0,0) size 0x104
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 100x100 [color=#800000] [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
+ RenderBlock {DIV} at (0,20) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 60x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (20,0) size 60x20
+ text run at (20,0) width 60: "\x{A0}\x{A0}\x{A0}"
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderBlock {DIV} at (0,40) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 60x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (20,0) size 60x20
+ text run at (20,0) width 60: "\x{200B} \x{200B} \x{200B} \x{200B}"
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderBlock {DIV} at (0,60) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 60x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (20,0) size 60x20
+ text run at (20,0) width 60: " \x{200B} \x{200B} "
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderBlock {DIV} at (0,80) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/010.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/010.html
new file mode 100644
index 0000000..827d033
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/010.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space nowrap: zero width non-breaking space</title>
+ <style type="text/css">
+ /* setup */
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ td * { white-space: nowrap; font: inherit; }
+ div { display: block; }
+ span { display: inline; }
+
+ /* test */
+ td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; }
+ span { background: lime; }
+ div { color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below, only a green square bordered in green.</p>
+ <!-- U+00A0 is exactly equivalent to U+200B U+0020 U+200B -->
+ <table>
+ <tr>
+ <td>
+ <div>XXXXX</div>
+ <div>X<span>&#x00A0;&#x00A0;&#x00A0;</span>X</div>
+ <div>X<span>&#x200B; &#x200B; &#x200B; &#x200B;</span>X</div>
+ <div>X<span> &#x200B; &#x200B; </span>X</div>
+ <div>XXXXX</div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/011-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/011-expected.txt
new file mode 100644
index 0000000..6c5ff8e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/011-expected.txt
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x182
+ RenderBlock {HTML} at (0,0) size 800x182
+ RenderBody {BODY} at (8,8) size 784x166
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 479x17
+ text run at (0,0) width 479: "There should be no red below, only a green square bordered in green."
+ RenderTable {TABLE} at (0,62) size 104x104
+ RenderTableSection {TBODY} at (0,0) size 0x104
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 100x100 [color=#800000] [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
+ RenderBlock {DIV} at (0,20) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 100x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "X\x{A0}\x{A0}\x{A0}X"
+ RenderBlock {DIV} at (0,40) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 100x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "X\x{200B} \x{200B} \x{200B} \x{200B}X"
+ RenderBlock {DIV} at (0,60) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 100x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "X \x{200B} \x{200B} X"
+ RenderBlock {DIV} at (0,80) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/011.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/011.html
new file mode 100644
index 0000000..20d9bc5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/011.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space nowrap: zero width non-breaking space</title>
+ <style type="text/css">
+ /* setup */
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ td * { white-space: nowrap; font: inherit; }
+ div { display: block; }
+ span { display: inline; }
+
+ /* test */
+ td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; }
+ span { background: lime; }
+ div { color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below, only a green square bordered in green.</p>
+ <!-- U+00A0 is exactly equivalent to U+200B U+0020 U+200B -->
+ <table>
+ <tr>
+ <td>
+ <div>XXXXX</div>
+ <div><span>X&#x00A0;&#x00A0;&#x00A0;X</span></div>
+ <div><span>X&#x200B; &#x200B; &#x200B; &#x200B;X</span></div>
+ <div><span>X &#x200B; &#x200B; X</span></div>
+ <div>XXXXX</div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/012-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/012-expected.txt
new file mode 100644
index 0000000..19be608
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/012-expected.txt
@@ -0,0 +1,36 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x70
+ RenderBlock {HTML} at (0,0) size 800x70
+ RenderBody {BODY} at (8,8) size 784x48
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 308x17
+ text run at (0,0) width 308: "The following two blocks should be identical."
+ RenderBlock (floating) {DIV} at (14,76) size 98x14 [color=#00FF00] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 14x14
+ text run at (0,0) width 14: "["
+ RenderInline {SPAN} at (0,0) size 14x14 [bgcolor=#000000]
+ RenderText {TEXT} at (14,0) size 14x14
+ text run at (14,0) width 14: " "
+ RenderInline {SPAN} at (0,0) size 14x14 [bgcolor=#000000]
+ RenderText {TEXT} at (28,0) size 14x14
+ text run at (28,0) width 14: " "
+ RenderInline {SPAN} at (0,0) size 14x14 [bgcolor=#000000]
+ RenderText {TEXT} at (42,0) size 14x14
+ text run at (42,0) width 14: " "
+ RenderInline {SPAN} at (0,0) size 14x14 [bgcolor=#000000]
+ RenderText {TEXT} at (56,0) size 14x14
+ text run at (56,0) width 14: " "
+ RenderInline {SPAN} at (0,0) size 14x14 [bgcolor=#000000]
+ RenderText {TEXT} at (70,0) size 14x14
+ text run at (70,0) width 14: " "
+ RenderText {TEXT} at (84,0) size 14x14
+ text run at (84,0) width 14: "]"
+ RenderBlock (floating) {DIV} at (14,118) size 98x14 [color=#00FF00] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 98x14
+ text run at (0,0) width 98: "[ ]"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/012.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/012.html
new file mode 100644
index 0000000..8f82639
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/012.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space: mixed tests (simple)</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .test { font: 1em/1 Ahem; background: green; color: lime; float: left; clear: left; margin: 1em; }
+ .normal { white-space: normal; }
+ .nowrap { white-space: nowrap; }
+ .pre { white-space: pre; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>The following two blocks should be identical.</p>
+ <div class="test normal">[<span class="normal"> </span><span class="pre"> </span><span class="normal"> </span><span class="pre"> </span><span class="normal"> </span>]</div>
+ <div class="test pre">[ ]</div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/013-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/013-expected.txt
new file mode 100644
index 0000000..444dfde
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/013-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x165
+ RenderBlock {HTML} at (0,0) size 800x165
+ RenderBody {BODY} at (8,8) size 784x149
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTable {TABLE} at (0,17) size 300x132
+ RenderTableSection {TBODY} at (0,0) size 0x132
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 296x128 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {PRE} at (1,15) size 294x98 [color=#00FF00] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 294x98
+ text run at (0,0) width 294: " "
+ text run at (0,14) width 294: " xxxx xxxx xxxx xxxx "
+ text run at (0,28) width 294: " x x x x x x "
+ text run at (0,42) width 280: " xxxx xxxx xxxx xxxx"
+ text run at (0,56) width 294: " x x x x x "
+ text run at (0,70) width 294: " x x x xxxx xxxx "
+ text run at (0,84) width 294: " "
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/013.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/013.html
new file mode 100644
index 0000000..a23096f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/013.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space pre: simple tests</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ pre { white-space: pre; font: 1em/1 Ahem; background: green; color: lime; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <table><tr><td>
+ <pre>
+ xxxx xxxx xxxx xxxx
+ x x x x x x
+ xxxx xxxx xxxx xxxx
+ x x x x x
+ x x x xxxx xxxx
+ </pre>
+ </td></tr></table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/014-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/014-expected.txt
new file mode 100644
index 0000000..131d02f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/014-expected.txt
@@ -0,0 +1,23 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x137
+ RenderBlock {HTML} at (0,0) size 800x137
+ RenderBody {BODY} at (8,8) size 784x121
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderTable {TABLE} at (0,17) size 300x104
+ RenderTableSection {TBODY} at (0,0) size 0x104
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 296x100 [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (1,1) size 294x98 [color=#00FF00] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 294x98
+ text run at (0,0) width 294: " "
+ text run at (0,14) width 294: " xxxx xxxx xxxx xxxx "
+ text run at (0,28) width 294: " x x x x x x "
+ text run at (0,42) width 280: " xxxx xxxx xxxx xxxx"
+ text run at (0,56) width 294: " x x x x x "
+ text run at (0,70) width 294: " x x x xxxx xxxx "
+ text run at (0,84) width 294: " "
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/014.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/014.html
new file mode 100644
index 0000000..9c01ecc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/014.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space pre: simple tests</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ div { white-space: pre; font: 1em/1 Ahem; background: green; color: lime; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <table><tr><td>
+ <div>
+ xxxx xxxx xxxx xxxx
+ x x x x x x
+ xxxx xxxx xxxx xxxx
+ x x x x x
+ x x x xxxx xxxx
+ </div>
+ </td></tr></table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/015-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/015-expected.txt
new file mode 100644
index 0000000..202c83d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/015-expected.txt
@@ -0,0 +1,47 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x182
+ RenderBlock {HTML} at (0,0) size 800x182
+ RenderBody {BODY} at (8,8) size 784x166
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 479x17
+ text run at (0,0) width 479: "There should be no red below, only a green square bordered in green."
+ RenderTable {TABLE} at (0,62) size 104x104
+ RenderTableSection {TBODY} at (0,0) size 0x104
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 100x100 [color=#800000] [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
+ RenderBlock {DIV} at (0,20) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 60x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (20,0) size 60x20
+ text run at (20,0) width 60: "\x{A0}\x{A0}\x{A0}"
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderBlock {DIV} at (0,40) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 60x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (20,0) size 60x20
+ text run at (20,0) width 60: "\x{200B} \x{200B} \x{200B} \x{200B}"
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderBlock {DIV} at (0,60) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 20x20
+ text run at (0,0) width 20: "X"
+ RenderInline {SPAN} at (0,0) size 60x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (20,0) size 60x20
+ text run at (20,0) width 60: " \x{200B} \x{200B} "
+ RenderText {TEXT} at (80,0) size 20x20
+ text run at (80,0) width 20: "X"
+ RenderBlock {DIV} at (0,80) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/015.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/015.html
new file mode 100644
index 0000000..5169618
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/015.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space pre: zero width non-breaking space</title>
+ <style type="text/css">
+ /* setup */
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ td * { white-space: pre; font: inherit; }
+ div { display: block; }
+ span { display: inline; }
+
+ /* test */
+ td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; }
+ span { background: lime; }
+ div { color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below, only a green square bordered in green.</p>
+ <!-- U+00A0 is exactly equivalent to U+200B U+0020 U+200B -->
+ <table>
+ <tr>
+ <td>
+ <div>XXXXX</div>
+ <div>X<span>&#x00A0;&#x00A0;&#x00A0;</span>X</div>
+ <div>X<span>&#x200B; &#x200B; &#x200B; &#x200B;</span>X</div>
+ <div>X<span> &#x200B; &#x200B; </span>X</div>
+ <div>XXXXX</div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/016-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/016-expected.txt
new file mode 100644
index 0000000..6c5ff8e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/016-expected.txt
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x182
+ RenderBlock {HTML} at (0,0) size 800x182
+ RenderBody {BODY} at (8,8) size 784x166
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 479x17
+ text run at (0,0) width 479: "There should be no red below, only a green square bordered in green."
+ RenderTable {TABLE} at (0,62) size 104x104
+ RenderTableSection {TBODY} at (0,0) size 0x104
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 100x100 [color=#800000] [bgcolor=#FF0000] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (0,0) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
+ RenderBlock {DIV} at (0,20) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 100x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "X\x{A0}\x{A0}\x{A0}X"
+ RenderBlock {DIV} at (0,40) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 100x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "X\x{200B} \x{200B} \x{200B} \x{200B}X"
+ RenderBlock {DIV} at (0,60) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderInline {SPAN} at (0,0) size 100x20 [bgcolor=#00FF00]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "X \x{200B} \x{200B} X"
+ RenderBlock {DIV} at (0,80) size 100x20 [color=#008000] [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 100x20
+ text run at (0,0) width 100: "XXXXX"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/016.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/016.html
new file mode 100644
index 0000000..0862ee6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/016.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space pre: zero width non-breaking space</title>
+ <style type="text/css">
+ /* setup */
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ td * { white-space: pre; font: inherit; }
+ div { display: block; }
+ span { display: inline; }
+
+ /* test */
+ td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; }
+ span { background: lime; }
+ div { color: green; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be no red below, only a green square bordered in green.</p>
+ <!-- U+00A0 is exactly equivalent to U+200B U+0020 U+200B -->
+ <table>
+ <tr>
+ <td>
+ <div>XXXXX</div>
+ <div><span>X&#x00A0;&#x00A0;&#x00A0;X</span></div>
+ <div><span>X&#x200B; &#x200B; &#x200B; &#x200B;X</span></div>
+ <div><span>X &#x200B; &#x200B; X</span></div>
+ <div>XXXXX</div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/017-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/017-expected.txt
new file mode 100644
index 0000000..a4d5466
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/017-expected.txt
@@ -0,0 +1,11 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x30
+ RenderBlock {HTML} at (0,0) size 800x30
+ RenderBody {BODY} at (8,8) size 784x14
+ RenderBlock {DIV} at (0,0) size 266x14 [color=#00FF00] [bgcolor=#008000]
+ RenderInline {SPAN} at (0,0) size 56x14 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 56x14
+ text run at (0,0) width 56: "1234"
+ RenderText {TEXT} at (56,0) size 392x14
+ text run at (56,0) width 392: "567890123456789 xxxx xxxx xx"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/017.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/017.html
new file mode 100644
index 0000000..abd1704
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/017.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <head>
+ <title>white-space: mixed tests</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .test { font: 1em/1 Ahem; background: green; color: lime; width: 19em; }
+ .normal { white-space: normal; }
+ .nowrap { white-space: nowrap; }
+ .pre { white-space: pre; }
+ </style>
+ </head>
+ <body><div class="test pre"><span>1234</span>567890123456789 xxxx xxxx xx</div></body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/018-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/018-expected.txt
new file mode 100644
index 0000000..d86e5b5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/018-expected.txt
@@ -0,0 +1,103 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x176
+ RenderBlock {HTML} at (0,0) size 800x176
+ RenderBody {BODY} at (8,8) size 784x160
+ RenderBlock (anonymous) at (0,0) size 784x17
+ RenderInline {DIV} at (0,0) size 462x14 [color=#FFFFFF] [bgcolor=#FF0000]
+ RenderText {TEXT} at (0,3) size 462x14
+ text run at (0,3) width 462: "Ahem_font_required_for_this_test."
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock {P} at (0,31) size 784x17
+ RenderText {TEXT} at (0,0) size 631x17
+ text run at (0,0) width 631: "There should be a pretty green and lime pattern and the word \"PASS\" in lime on white below."
+ RenderBlock {DIV} at (0,62) size 266x98 [color=#00FF00] [bgcolor=#008000]
+ RenderText {TEXT} at (0,0) size 266x14
+ text run at (0,0) width 266: "1234567890123456789"
+ RenderInline {SPAN} at (0,0) size 266x28 [bgcolor=#000000]
+ RenderText {TEXT} at (0,14) size 28x14
+ text run at (0,14) width 28: "x "
+ RenderInline {SPAN} at (0,0) size 98x14
+ RenderText {TEXT} at (28,14) size 28x14
+ text run at (28,14) width 28: "x "
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (56,14) size 14x14
+ text run at (56,14) width 14: "x"
+ RenderInline {SPAN} at (0,0) size 14x14
+ RenderText {TEXT} at (70,14) size 14x14
+ text run at (70,14) width 14: " "
+ RenderText {TEXT} at (84,14) size 42x14
+ text run at (84,14) width 42: "x x"
+ RenderText {TEXT} at (126,14) size 42x14
+ text run at (126,14) width 42: " x "
+ RenderInline {SPAN} at (0,0) size 56x14
+ RenderText {TEXT} at (168,14) size 56x14
+ text run at (168,14) width 56: "x x "
+ RenderText {TEXT} at (224,14) size 28x14
+ text run at (224,14) width 28: "x "
+ RenderInline {SPAN} at (0,0) size 14x14
+ RenderText {TEXT} at (252,14) size 14x14
+ text run at (252,14) width 14: "x"
+ RenderText {TEXT} at (0,28) size 56x14
+ text run at (0,28) width 56: "1234"
+ RenderText {TEXT} at (56,28) size 392x14
+ text run at (56,28) width 392: "567890123456789 xxxx xxxx xx"
+ RenderInline {SPAN} at (0,0) size 98x14 [bgcolor=#000000]
+ RenderText {TEXT} at (448,28) size 14x14
+ text run at (448,28) width 14: "x"
+ RenderInline {SPAN} at (0,0) size 84x14
+ RenderText {TEXT} at (462,28) size 84x14
+ text run at (462,28) width 84: "x xxxx"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,42) size 14x14
+ text run at (0,42) width 14: "x"
+ RenderInline {SPAN} at (0,0) size 98x14 [bgcolor=#000000]
+ RenderText {TEXT} at (14,42) size 14x14
+ text run at (14,42) width 14: " "
+ RenderInline {SPAN} at (0,0) size 14x14
+ RenderText {TEXT} at (28,42) size 14x14
+ text run at (28,42) width 14: " "
+ RenderText {TEXT} at (42,42) size 14x14
+ text run at (42,42) width 14: " "
+ RenderInline {SPAN} at (0,0) size 14x14
+ RenderText {TEXT} at (56,42) size 14x14
+ text run at (56,42) width 14: " "
+ RenderText {TEXT} at (70,42) size 14x14
+ text run at (70,42) width 14: " "
+ RenderInline {SPAN} at (0,0) size 14x14
+ RenderText {TEXT} at (84,42) size 14x14
+ text run at (84,42) width 14: " "
+ RenderText {TEXT} at (98,42) size 14x14
+ text run at (98,42) width 14: " "
+ RenderInline {SPAN} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (112,42) size 28x14
+ text run at (112,42) width 28: " "
+ RenderInline {SPAN} at (0,0) size 14x14 [bgcolor=#000000]
+ RenderText {TEXT} at (140,42) size 14x14
+ text run at (140,42) width 14: " "
+ RenderInline {SPAN} at (0,0) size 14x14 [bgcolor=#000000]
+ RenderText {TEXT} at (154,42) size 14x14
+ text run at (154,42) width 14: " "
+ RenderText {TEXT} at (168,42) size 42x14
+ text run at (168,42) width 42: " "
+ RenderInline {SPAN} at (0,0) size 14x14 [bgcolor=#000000]
+ RenderText {TEXT} at (210,42) size 14x14
+ text run at (210,42) width 14: " "
+ RenderInline {SPAN} at (0,0) size 0x0 [bgcolor=#000000]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (224,42) size 336x14
+ text run at (224,42) width 336: " x x x x x x x "
+ RenderInline {SPAN} at (0,0) size 560x14 [bgcolor=#000000]
+ RenderText {TEXT} at (0,56) size 560x14
+ text run at (0,56) width 560: "x x x x x x x x x x xxxx xxxx xxxx xxxx "
+ RenderText {TEXT} at (0,70) size 546x14
+ text run at (0,70) width 546: "x x x x x x x"
+ RenderInline {SPAN} at (0,0) size 560x14 [bgcolor=#000000]
+ RenderText {TEXT} at (0,84) size 266x14
+ text run at (0,84) width 266: "xxxxxxxxxxxxxxxxxxx"
+ RenderInline {SPAN} at (0,0) size 294x14
+ RenderText {TEXT} at (266,84) size 294x14
+ text run at (266,84) width 294: " x x x xxxx xxxx "
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/018.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/018.html
new file mode 100644
index 0000000..7d8cb48
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/018.html
@@ -0,0 +1,39 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+ <!-- ================================================================ -->
+ <!-- WARNING! This document contains significant trailing whitespace! -->
+ <!-- ================================================================ -->
+
+ <head>
+ <title>white-space: mixed tests</title>
+ <style type="text/css">
+ .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
+ .test { font: 1em/1 Ahem; background: green; color: lime; width: 19em; }
+ .normal { white-space: normal; }
+ .nowrap { white-space: nowrap; }
+ .pre { white-space: pre; }
+ </style>
+ </head>
+ <body>
+ <div class="control">Ahem_font_required_for_this_test.</div>
+ <p>There should be a pretty green and lime pattern and the word "PASS" in lime on white below.</p>
+ <div class="test pre">
+1234567890123456789<span class="normal">
+ x <span>
+x <span class="pre"></span> x<span>
+
+</span> x x</span> x <span> x x </span> x <span class="pre">x</span>
+1234</span>567890123456789 xxxx xxxx xx<span class="normal">x<span class="nowrap">x
+xxxx </span> </span>x<span class="normal"> <span class="pre"> </span> <span class="pre"> </span> <span class="pre"> </span>
+<span class="nowrap">
+ </span> </span> <span class="pre"> </span><span class="normal"> </span> <span class="nowrap">
+ </span><span class="normal"> </span> x x x x x x x
+<span class="nowrap">x
+x x x x x x x x x xxxx
+xxxx xxxx xxxx </span>
+x x x x x x x<span class="normal"> xxxxxxxxxxxxxxxxxxx<span
+class="pre"> x x x xxxx xxxx </span></span>
+</div>
+ </body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/019-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/019-expected.txt
new file mode 100644
index 0000000..50b4881
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/019-expected.txt
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x54
+ RenderBlock {HTML} at (0,0) size 800x54
+ RenderBody {BODY} at (8,8) size 784x32
+ RenderBlock {PRE} at (0,0) size 784x32
+ RenderText {TEXT} at (0,16) size 104x16
+ text run at (0,16) width 104: "Some pre text"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/019.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/019.html
new file mode 100644
index 0000000..7cff53d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/019.html
@@ -0,0 +1,9 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<HTML>
+ <HEAD>
+ <TITLE>Pre bug</TITLE>
+ </HEAD>
+ <BODY>
+<PRE>
+Some pre text</pre>
+</BODY></HTML>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/020-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/020-expected.txt
new file mode 100644
index 0000000..b2cf710
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/020-expected.txt
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x57
+ RenderBlock {HTML} at (0,0) size 800x57
+ RenderBody {BODY} at (8,8) size 784x41
+ RenderBlock {DIV} at (0,0) size 204x41
+ RenderInline {FONT} at (0,0) size 202x34 [color=#996699]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderInline {NOBR} at (0,0) size 159x17
+ RenderText {TEXT} at (2,2) size 12x17
+ text run at (2,2) width 12: "\x{2022} "
+ RenderInline {A} at (0,0) size 127x17 [color=#0000EE]
+ RenderText {TEXT} at (14,2) size 127x17
+ text run at (14,2) width 127: "Corporate Services"
+ RenderText {TEXT} at (141,2) size 20x17
+ text run at (141,2) width 20: " \x{A0}\x{A0}\x{A0}\x{A0}"
+ RenderText {TEXT} at (161,2) size 4x17
+ text run at (161,2) width 4: " "
+ RenderInline {NOBR} at (0,0) size 202x17
+ RenderText {TEXT} at (2,19) size 12x17
+ text run at (2,19) width 12: "\x{2022} "
+ RenderInline {A} at (0,0) size 170x17 [color=#0000EE]
+ RenderText {TEXT} at (14,19) size 152x17
+ text run at (14,19) width 52: "1-800-"
+ text run at (66,19) width 100: "las-flores.com"
+ RenderInline {SUB} at (0,0) size 18x15
+ RenderText {TEXT} at (166,24) size 18x15
+ text run at (166,24) width 18: "sm"
+ RenderText {TEXT} at (184,19) size 20x17
+ text run at (184,19) width 20: " \x{A0}\x{A0}\x{A0}\x{A0}"
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderBlock (anonymous) at (0,41) size 784x0
+ RenderInline {FONT} at (0,0) size 0x0 [color=#996699]
+ RenderText {TEXT} at (0,0) size 0x0
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/020.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/020.html
new file mode 100644
index 0000000..6872c68
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/020.html
@@ -0,0 +1,12 @@
+<body>
+<div style="width:200px; border:2px solid red">
+<font color="996699">
+
+ <nobr>&#149; <a href="http://corporate.1800flowers.com">Corporate Services</a> &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+
+ <nobr>&#149; <a href="http://www.1800lasflores.com/welcome.asp">1-800-las-flores.com<sub>sm</sub></a> &nbsp;&nbsp;&nbsp;&nbsp;</nobr>
+
+
+</div>
+</body>
+
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/021-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/021-expected.txt
new file mode 100644
index 0000000..4b22892
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/021-expected.txt
@@ -0,0 +1,18 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x73
+ RenderBlock {HTML} at (0,0) size 800x73
+ RenderBody {BODY} at (8,8) size 784x57
+ RenderTable {TABLE} at (0,0) size 450x57
+ RenderTableSection {TBODY} at (0,0) size 0x57
+ RenderTableRow {TR} at (0,0) size 0x0
+ RenderTableCell {TD} at (2,2) size 446x53 [bgcolor=#CCCC44] [r=0 c=0 rs=1 cs=1]
+ RenderText {TEXT} at (1,1) size 432x34
+ text run at (1,1) width 432: "This stuff should all be within the table boundaries, and not off"
+ text run at (1,18) width 69: "the edge. "
+ text run at (70,18) width 355: "No way should it be off the edge of the damn table. "
+ RenderInline {SPAN} at (0,0) size 217x17 [bgcolor=#000000]
+ RenderImage {IMG} at (1,49) size 50x0
+ RenderText {TEXT} at (51,35) size 167x17
+ text run at (51,35) width 167: "oh, no I fell off the edge"
+ RenderText {TEXT} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/021.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/021.html
new file mode 100644
index 0000000..d67ce6d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/021.html
@@ -0,0 +1,6 @@
+<table width="450">
+ <tr><td bgcolor="#CCCC44">
+ This stuff should all be within the table boundaries, and not off the edge.
+ No way should it be off the edge of the damn table.
+ <span style='white-space:nowrap;'><img width="50" style="white-space:nowrap">oh, no I fell off the edge</span>
+</td></tr></table> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/022-actual.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/022-actual.txt
new file mode 100644
index 0000000..263f5d3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/022-actual.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x88
+ RenderBlock {HTML} at (0,0) size 800x88
+ RenderBody {BODY} at (8,8) size 784x56
+ RenderBlock {PRE} at (0,0) size 784x56
+ RenderText {TEXT} at (0,0) size 210x56
+ text run at (0,0) width 210: "This is a test."
+ text run at (0,28) width 196: "Big font size?"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/022-diffs.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/022-diffs.txt
new file mode 100644
index 0000000..65d3c1b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/022-diffs.txt
@@ -0,0 +1,12 @@
+--- /Users/darin/Labyrinth/Site/layout-tests/fast/text/whitespace/022-expected.txt Wed May 21 16:41:11 2003
++++ /Users/darin/Labyrinth/Site/layout-tests/fast/text/whitespace/022-actual.txt Wed Jul 30 17:01:31 2003
+@@ -4,6 +4,6 @@
+ RenderBlock {HTML} at (0,0) size 800x88
+ RenderBody {BODY} at (8,8) size 784x56
+ RenderBlock {PRE} at (0,0) size 784x56
+- RenderText {TEXT} at (0,0) size 225x56
+- text run at (0,0) width 225: "This is a test."
+- text run at (0,28) width 210: "Big font size?"
++ RenderText {TEXT} at (0,0) size 210x56
++ text run at (0,0) width 210: "This is a test."
++ text run at (0,28) width 196: "Big font size?"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/022-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/022-expected.txt
new file mode 100644
index 0000000..ed37136
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/022-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x88
+ RenderBlock {HTML} at (0,0) size 800x88
+ RenderBody {BODY} at (8,8) size 784x56
+ RenderBlock {PRE} at (0,0) size 784x56
+ RenderText {TEXT} at (0,0) size 225x56
+ text run at (0,0) width 225: "This is a test."
+ text run at (0,28) width 210: "Big font size?"
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/022.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/022.html
new file mode 100644
index 0000000..73737d5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/022.html
@@ -0,0 +1,12 @@
+<head>
+<style>
+pre {
+ font-size: xx-large;
+ }
+</style>
+</head>
+<body>
+<pre>
+This is a test.
+Big font size?
+</pre>
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/023-expected.txt b/third_party/WebKit/LayoutTests/fast/text/whitespace/023-expected.txt
new file mode 100644
index 0000000..4f44af2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/023-expected.txt
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x74
+ RenderBlock {HTML} at (0,0) size 800x74
+ RenderBody {BODY} at (8,8) size 784x52
+ RenderBlock {PRE} at (0,0) size 304x52
+ RenderText {TEXT} at (2,18) size 96x32
+ text run at (2,18) width 88: "This should"
+ text run at (2,34) width 96: "not justify."
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/023.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/023.html
new file mode 100644
index 0000000..acfe1ed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/023.html
@@ -0,0 +1,4 @@
+<pre style="border: 2px solid green; width:300px; text-align:justify">
+This should
+not justify.
+</pre>