New issue
Advanced search Search tips

Issue 838144 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

[css-tables] Percentage sizing of table cell replaced children with scrollbar

Project Member Reported by r...@igalia.com, Apr 30 2018

Issue description

This is the same issue than #837408 but for replaced elements.

This is another issue related to OverrideLogicalHeight()
as we're not subtracting the scrollbar height in LayoutBox::AvailableLogicalHeightUsing().

This is reproduced if you use replaced elements.
In the attached example shouldn't be overflow, so you cannot actually scroll anything.
However there's overflow due to this bug.

 
bug-table-cell-percent-replaced-children.html
233 bytes View Download
Project Member

Comment 1 by bugdroid1@chromium.org, Apr 30 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bf802aa687ff50a9f4017376cf92da49915f6f8b

commit bf802aa687ff50a9f4017376cf92da49915f6f8b
Author: Manuel Rego Casasnovas <rego@igalia.com>
Date: Mon Apr 30 19:49:26 2018

[css-tables] Scrollbar should be removed from OverrideLogicalHeight()

When computing the percentage height of table cell replaced children,
if the table cell has horizontal scrollbar we have to subtract
its height from the OverrideLogicalHeight().

The patch is just following a suggestion from a TODO in
LayoutBox::AvailableLogicalHeightUsing().

BUG= 838144 
TEST=external/wpt/css/css-tables/height-distribution/percentage-sizing-of-table-cell-replaced-children-001.html

Change-Id: I21f33b82978ffaeb7a6f04eb49ef2e1a52c1e8c0
Reviewed-on: https://chromium-review.googlesource.com/1035125
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#554853}
[add] https://crrev.com/bf802aa687ff50a9f4017376cf92da49915f6f8b/third_party/WebKit/LayoutTests/external/wpt/css/css-tables/height-distribution/percentage-sizing-of-table-cell-replaced-children-001-ref.html
[add] https://crrev.com/bf802aa687ff50a9f4017376cf92da49915f6f8b/third_party/WebKit/LayoutTests/external/wpt/css/css-tables/height-distribution/percentage-sizing-of-table-cell-replaced-children-001.html
[modify] https://crrev.com/bf802aa687ff50a9f4017376cf92da49915f6f8b/third_party/blink/renderer/core/layout/layout_box.cc

Comment 2 by r...@igalia.com, May 2 2018

Status: Fixed (was: Started)
Project Member

Comment 3 by bugdroid1@chromium.org, Jun 22 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c34e85b44e49c00ed2d8f702519cad98196ceac3

commit c34e85b44e49c00ed2d8f702519cad98196ceac3
Author: David Grogan <dgrogan@chromium.org>
Date: Fri Jun 22 18:21:43 2018

[css-tables] Make scrollbars visible on mac screenshots

wpt.fyi showed Safari passing these recently-added tests because the
scrollbars don't show in either the tests or their refs.
https://wpt.fyi/css/css-tables/height-distribution/percentage-sizing-of-table-cell-replaced-children-001.html

Aside:
Edge matches Safari's current and Chrome's previous behavior. But
they've confirmed it's a bug:
https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/17505131/
Firefox has a mostly-unrelated incompatibility that doesn't allow us to
check it.

Bug:  837408 , 838144 
Change-Id: I82058d3c22d7668711e9a9a1c977047033d64b46
Reviewed-on: https://chromium-review.googlesource.com/1054770
Commit-Queue: David Grogan <dgrogan@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569698}
[modify] https://crrev.com/c34e85b44e49c00ed2d8f702519cad98196ceac3/third_party/WebKit/LayoutTests/external/wpt/css/css-tables/height-distribution/percentage-sizing-of-table-cell-children-002-ref.html
[modify] https://crrev.com/c34e85b44e49c00ed2d8f702519cad98196ceac3/third_party/WebKit/LayoutTests/external/wpt/css/css-tables/height-distribution/percentage-sizing-of-table-cell-children-002.html
[modify] https://crrev.com/c34e85b44e49c00ed2d8f702519cad98196ceac3/third_party/WebKit/LayoutTests/external/wpt/css/css-tables/height-distribution/percentage-sizing-of-table-cell-replaced-children-001-ref.html
[modify] https://crrev.com/c34e85b44e49c00ed2d8f702519cad98196ceac3/third_party/WebKit/LayoutTests/external/wpt/css/css-tables/height-distribution/percentage-sizing-of-table-cell-replaced-children-001.html
[add] https://crrev.com/c34e85b44e49c00ed2d8f702519cad98196ceac3/third_party/WebKit/LayoutTests/external/wpt/css/css-tables/height-distribution/support/scrollbars.css

Sign in to add a comment