New issue
Advanced search Search tips

Issue 881575 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 636993



Sign in to add a comment

[LayoutNG] max-width specified by % is ignored for shrink-to-fit box

Project Member Reported by kojii@chromium.org, Sep 6

Issue description

1. Enable LayoutNG
2. Open https://github.com/w3c/csswg-drafts/issues/1815
3. See "Labels" on the right side bar.
 
Blocking: 636993
Left: Canary with LayoutNG, Right: stable
ellipsis-881575.png
13.8 KB View Download
Summary: [LayoutNG] 'text-overflow: ellipsis' does not work when the max-width is specified by % (was: [LayoutNG] 'text-overflow: ellipsis' does not work when the width is specified by %)
Only when 'max-width' has a percent-value. 
ellipsis-percent-881575.html
794 bytes View Download
Cc: cbiesinger@google.com
Owner: ----
Status: Available (was: Untriaged)
Summary: [LayoutNG] max-width specified by % is ignored for shrink-to-fit box (was: [LayoutNG] 'text-overflow: ellipsis' does not work when the max-width is specified by %)
Turned out that 'text-overflow: ellipsis' is not needed to reproduce the problem.

It looks like ComputeInlineSizeForFragment does not take max-width into account for kFitContent? Not sure why 'max-width: 200px' works but 'max-width: 100%' doesn't.

Christian, do you have idea how to fix this?

Attached is the repro that doesn't need 'text-overflow'.
max-width-percent-881575.html
611 bytes View Download
Cc: -cbiesinger@google.com cbiesin...@chromium.org

Sign in to add a comment