diff options
author | adele <adele@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2006-04-02 19:54:25 +0000 |
---|---|---|
committer | adele <adele@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2006-04-02 19:54:25 +0000 |
commit | 4c4c95f21d26f3970b3e427dcacaceffbf58e128 (patch) | |
tree | aaf03c6a8c20e073ef9800e0d291ad15373adc6c /third_party/WebKit/LayoutTests/fast/inline-block | |
parent | 9f0d9104bdc07f7b71bab81dd945b6c76669fc4d (diff) | |
download | chromium_src-4c4c95f21d26f3970b3e427dcacaceffbf58e128.zip chromium_src-4c4c95f21d26f3970b3e427dcacaceffbf58e128.tar.gz chromium_src-4c4c95f21d26f3970b3e427dcacaceffbf58e128.tar.bz2 |
LayoutTests:
Reviewed by Darin.
- Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8118
REGRESSION (r13595): Inline block's clipped overflow increases table row height
* fast/inline-block/overflow-clip-expected.checksum: Added.
* fast/inline-block/overflow-clip-expected.png: Added.
* fast/inline-block/overflow-clip-expected.txt: Added.
* fast/inline-block/overflow-clip.html: Added.
WebCore:
Test: fast/inline-block/overflow-clip.html
Reviewed by Darin.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8118
REGRESSION (r13595): Inline block's clipped overflow increases table row height
* rendering/render_line.cpp:
(WebCore::InlineFlowBox::placeBoxesVertically): Don't look at interior overflow
when calculating the contribution to the inline's vertical overflows.
git-svn-id: svn://svn.chromium.org/blink/trunk@13638 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/inline-block')
3 files changed, 52 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/inline-block/overflow-clip-expected.checksum b/third_party/WebKit/LayoutTests/fast/inline-block/overflow-clip-expected.checksum new file mode 100644 index 0000000..8f544ac --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/inline-block/overflow-clip-expected.checksum @@ -0,0 +1 @@ +9ac9856a90ee2ec2c78ec27f26bb2481
\ No newline at end of file diff --git a/third_party/WebKit/LayoutTests/fast/inline-block/overflow-clip-expected.txt b/third_party/WebKit/LayoutTests/fast/inline-block/overflow-clip-expected.txt new file mode 100644 index 0000000..37bfbf5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/inline-block/overflow-clip-expected.txt @@ -0,0 +1,30 @@ +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 + RenderBlock {P} at (0,0) size 784x36 + RenderText {TEXT} at (0,0) size 104x18 + text run at (0,0) width 104: "This is a test for " + RenderInline {I} at (0,0) size 754x36 + RenderInline {A} at (0,0) size 348x18 [color=#0000EE] + RenderText {TEXT} at (104,0) size 348x18 + text run at (104,0) width 348: "http://bugzilla.opendarwin.org/show_bug.cgi?id=8118" + RenderText {TEXT} at (452,0) size 754x36 + text run at (452,0) width 302: " REGRESSION (r13595): Inline block's clipped" + text run at (0,18) width 225: "overflow increases table row height" + RenderText {TEXT} at (225,18) size 4x18 + text run at (225,18) width 4: "." + RenderBlock {P} at (0,52) size 784x18 + RenderText {TEXT} at (0,0) size 268x18 + text run at (0,0) width 268: "You should see a green square and no red." + RenderTable {TABLE} at (0,86) size 100x100 [bgcolor=#FF0000] + RenderTableSection {TBODY} at (0,0) size 0x100 + RenderTableRow {TR} at (0,0) size 0x0 + RenderTableCell {TD} at (0,0) size 100x100 [r=0 c=0 rs=1 cs=1] + RenderText {TEXT} at (0,0) size 0x0 +layer at (8,94) size 100x100 scrollHeight 200 + RenderBlock {DIV} at (0,0) size 100x100 + RenderBlock (anonymous) at (0,0) size 100x0 + RenderText {TEXT} at (0,0) size 0x0 + RenderBlock {DIV} at (0,0) size 100x200 [bgcolor=#008000] diff --git a/third_party/WebKit/LayoutTests/fast/inline-block/overflow-clip.html b/third_party/WebKit/LayoutTests/fast/inline-block/overflow-clip.html new file mode 100644 index 0000000..cfb4679 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/inline-block/overflow-clip.html @@ -0,0 +1,21 @@ +<html> +<head></head> +<body> +<p> +This is a test for <i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=8118">http://bugzilla.opendarwin.org/show_bug.cgi?id=8118</a> +REGRESSION (r13595): Inline block's clipped overflow increases table row height</i>. +</p> +<p> +You should see a green square and no red. +</p> +<table style="background: red;" cellpadding="0" cellspacing="0"> + <tr> + <td> + <div style="display: inline-block; overflow: hidden; height: 100px; width: 100px;"> + <div style="width: 100px; height: 200px; background: green;"></div> + </div> + </td> + </tr> +</table> +</body> +</html> |