Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add a test to obtain offsetWidth of expanded table cell
https://bugs.webkit.org/show_bug.cgi?id=123843 Reviewed by Tim Horton. Merge the test from https://chromium.googlesource.com/chromium/blink/+/58a5fac292a5b3f79b00cdc71074fbf8be2ebc2b so that we'll never introduce the regression they had. * fast/table/table-cell-offset-width-expected.txt: Added. * fast/table/table-cell-offset-width.html: Added. Canonical link: https://commits.webkit.org/142037@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This tests obtaining the offsetWidth of a layout-dependent table cell. | ||
The td with width set to 5px should be expanded to have the wider width: | ||
10px |
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,9 @@ | ||
<table><td style="font: Ahem; width: 5px">x</td></table> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
var width = document.getElementsByTagName('td')[0].offsetWidth; | ||
document.body.innerText = 'This tests obtaining the offsetWidth of a layout-dependent table cell.\n' | ||
+ 'The td with width set to 5px should be expanded to have the wider width:\n' | ||
+ width + 'px'; | ||
</script> |