New issue
Advanced search Search tips

Issue 596266 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Percentage text-indent doesn't reflow when containing block width changes

Reported by utasirob...@gmail.com, Mar 19 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Steps to reproduce the problem:
see the fiddle: https://jsfiddle.net/utasir/6gzo0fpm/1/
comment out the javascript part (and press run)
resize the frame 

What is the expected behavior?
The expected behavior is a reflow/recalculate the menu element's text-indent based on the new parent ocject's width. Basically this is an overflow-drop menu, so is must show all of items on the visible screen.

What went wrong?
text-indent: calc(-100% + 130px)

Did this work before? No 

Chrome version: 48.0.2564.116  Channel: canary
OS Version: 10.0
Flash Version: Shockwave Flash 21.0 r0

I've added a javascript hack to make it working, although in firefox it works properly with native css as well.
The algorythm is basically good as first run, just need to re-call this during window resize event perhaps. Tested on the canary channel.
 
Labels: -OS-Windows M-51 OS-All
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Windows 7, Ubuntu 14.04 and Mac OS 10.11.3 using chrome stable M49-49.0.2623.87. Observed the same behavior in IE but different behavior on firefox while comparing with chrome.

This is a non-regression issue seen from past M35-35.0.1851.0, Hence marking it as untriaged.


Components: Blink>Layout

Comment 3 by e...@chromium.org, Jul 6 2016

Components: Blink>CSS
Looks like a recalc style problem where a change to the width doesn't trigger a style pass.
Status: Available (was: Untriaged)

Comment 5 by r...@opera.com, Aug 3 2016

Components: -Blink>CSS
Summary: Percentage text-indent in float doesn't reflow when width changes (was: text-indent doesn't reflow with calc() during window resize)
Not related to calc, but percentage text-indent in floats where there's more than one line layed out. Back to Blink>Layout.

indent.html
254 bytes View Download

Comment 6 by r...@opera.com, Aug 3 2016

The reason indent.html works with a single line (no <br>) is due to setting curr in [1] and does not have to do with text-indent.

[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp?type=cs&sq=package:chromium&l=1690-1693

Comment 7 by r...@opera.com, Aug 3 2016

Cc: r...@opera.com

Comment 8 by r...@opera.com, Aug 3 2016

Summary: Percentage text-indent doesn't reflow when containing block width changes (was: Percentage text-indent in float doesn't reflow when width changes)
Btw, float is not necessary.
Project Member

Comment 9 by sheriffbot@chromium.org, Aug 3 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 10 by r...@opera.com, Aug 7 2017

Labels: -Pri-2 -Hotlist-Recharge-Cold Pri-3
Status: Available (was: Untriaged)
Project Member

Comment 11 by sheriffbot@chromium.org, Aug 7

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: -r...@opera.com
Labels: Fixed-In-LayoutNG
Status: Available (was: Untriaged)

Sign in to add a comment