Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Don't force display:table-cell, display:inline-table/table and float:…
…none on table cell elements when in quirks mode Don't force display:table-cell, display:inline-table/table and float:none on table cell elements when in quirks mode https://bugs.webkit.org/show_bug.cgi?id=244947 Reviewed by Alan Bujtas. Merge - https://chromium.googlesource.com/chromium/src.git/+/0aea8a9a12d5a3b60bb022953825f900f90e7b4b and https://chromium.googlesource.com/chromium/src.git/+/95773a85549dc14dbb42d665dadd7875d05df0a1 This is to remove the quirk mode behaviors: 1. force table cell elements to display:table-cell and float:none 2. force table elements to display:inline-table or table Both of these were not implemented in Gecko but Blink also dropped them in 2016 to align with Gecko. This patch aims to align now all web engines. * Source/WebCore/style/StyleAdjuster.cpp (Adjuster::adjust) - Remove "Quirks" conditions * LayoutTests/editing/execCommand/insertHTML-expected.txt - Updated Expectations * LayoutTests/editing/execCommand/insertHTML.html - Updated Test * LayoutTests/editing/pasteboard/innerText-inline-table.html - Updated Test * LayoutTests/editing/selection/inline-table.html - Updated Test * LayoutTests/editing/selection/table-caret-3.html - Updated Test * LayoutTests/fast/borders/table-borders/html - Updated Test * LayoutTests/fast/dom/inner-text-001.html - Updated Test * LayoutTests/fast/table/floating-th.html - Updated Test * LayoutTests/fast/table/quirks-mode-ignore-display-inline-table.html - Added new Test * LayoutTests/fast/table/quirks-mode-ignore-display-inline-table-expected.txt - Added Test Expectations * LayoutTests/fast/table/table-display-types-vertical.html - Updated Test * LayoutTests/fast/table/table-display-types.html - Updated Test * LayoutTests/platform/gtk/fast/table/table-display-types-expected.png - Updated Expectations * LayoutTests/platform/gtk/fast/table/table-display-types-vertical-expected.png - Updated Expectations * LayoutTests/platform/glib/fast/table/table-display-types-expected.txt - Updated Expectations * LayoutTests/platform/glib/fast/table/table-display-types-vertical-expected.txt - Updated Expectations * LayoutTests/platform/ios/fast/table/table-display-types-expected.txt - Updated Expectations * LayoutTests/platform/ios/fast/table/table-display-types-vertical-expected.txt - Updated Expectations * LayoutTests/platform/mac/fast/encoding/utf-16-big-endian-expected.png - Updated Expectations * LayoutTests/platform/mac/fast/encoding/utf-16-big-endian-expected.txt - Updated Expectations * LayoutTests/platform/mac/fast/encoding/utf-16-little-endian-expected.png - Updated Expectations * LayoutTests/platform/mac/fast/encoding/utf-16-little-endian-expected.txt - Updated Expectations * LayoutTests/platform/mac/fast/table/table-display-types-expected.png - Updated Expectations * LayoutTests/platform/mac/fast/table/table-display-types-vertical-expected.png - Updated Expectations * LayoutTests/platform/mac/fast/table/table-display-types-expected.txt - Updated Expectations * LayoutTests/platform/mac/fast/table/table-display-types-vertical-expected.txt - Updated Expectations Canonical link: https://commits.webkit.org/254475@main
- Loading branch information
1 parent
2369ed4
commit 840ec41f4b7e4d6a8f4d3336fdde6054561128d9
Showing
27 changed files
with
951 additions
and
863 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3,7 +3,7 @@ | ||
<style type="text/css"> | ||
table { | ||
margin: 20px; | ||
display: inline-block; | ||
display: inline-table; | ||
} | ||
|
||
.wide td { | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -9,10 +9,6 @@ | ||
th { | ||
float: left; | ||
} | ||
|
||
td { | ||
float: right; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
PASS Test to make sure that in quirks mode table elements with display act as they do in standard mode and retain display value | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script src="../../resources/testharness.js"></script> | ||
<script src="../../resources/testharnessreport.js"></script> | ||
<table id="table" style="display:inline"> | ||
<thead id="thead" style="display:inline-table"> | ||
<tr id="tr1" style="display:inline-block"> | ||
<td id="td1"></td> | ||
</tr> | ||
</thead> | ||
<tbody id="tbody" style="display:block"> | ||
<tr id="tr2" style="display:table"> | ||
<tr id="tr3" style="display: table-row-group"> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<script> | ||
test(function() { | ||
assert_equals(getComputedStyle(table).display, "inline"); | ||
assert_equals(getComputedStyle(thead).display, "inline-table"); | ||
assert_equals(getComputedStyle(tr1).display, "inline-block"); | ||
assert_equals(getComputedStyle(td1).display, "table-cell"); | ||
assert_equals(getComputedStyle(tbody).display, "block"); | ||
assert_equals(getComputedStyle(tr2).display, "table"); | ||
assert_equals(getComputedStyle(tr3).display, "table-row-group"); | ||
}, "Test to make sure that in quirks mode table elements with display act as they do in standard mode and retain display value"); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -13,7 +13,7 @@ | ||
} | ||
|
||
.test td { | ||
display: inline; | ||
display: inline-table; | ||
} | ||
|
||
.test2 tr, .test2 thead, .test2 tfoot { | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -12,7 +12,7 @@ | ||
} | ||
|
||
.test td { | ||
display: inline; | ||
display: inline-table; | ||
} | ||
|
||
.test2 tr, .test2 thead, .test2 tfoot { | ||
Oops, something went wrong.