Percentage text-indent doesn't reflow when containing block width changes
Reported by
utasirob...@gmail.com,
Mar 19 2016
|
|||||||||||
Issue descriptionUserAgent: 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.
,
Jul 6 2016
,
Jul 6 2016
Looks like a recalc style problem where a change to the width doesn't trigger a style pass.
,
Jul 6 2016
,
Aug 3 2016
Not related to calc, but percentage text-indent in floats where there's more than one line layed out. Back to Blink>Layout.
,
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
,
Aug 3 2016
,
Aug 3 2016
Btw, float is not necessary.
,
Aug 3 2017
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
,
Aug 7 2017
,
Aug 7
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
,
Aug 8
|
|||||||||||
►
Sign in to add a comment |
|||||||||||
Comment 1 by brajkumar@chromium.org
, Mar 21 2016Status: Untriaged (was: Unconfirmed)