Resize, Padding and Border equal or larger than font-size allows negative height/width values
Reported by
christop...@gmail.com,
Dec 11
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36 Steps to reproduce the problem: 1. Create any element with resize: both; and a inner border or padding equal or larger to the font-size a <p style="padding-left: 1em; border-top: 1em solid black; resize: both; overflow: overlay;">P</p> is fine 2. Resize it to the lowest possible size. What is the expected behavior? It stops on 0px. What went wrong? DOM values after resize should be something like <p style="padding-left: 1em; border-top: 1em dotted black; resize: both; overflow: overlay; width: -1px; height: -1px;">P</p> Did this work before? No Chrome version: 70.0.3538.110 Channel: stable OS Version: 10.0 Flash Version: As soon as you reach -1px height it snaps to the automatic height. But only for height: -1px;. Any other negative value will hide the content. Doesn't matter if box-sizing: content-box; or border-box;.
,
Dec 13
Thanks for filing the issue... Tried to reproduce the issue on reported chrome version 70.0.3538.110 using Windows 10. Attaching screencast for reference. Steps: --------- 1. Launched reported chrome 2. Created .html file and opened file in the new tab 3. resized the element As we have observed that the element becomes before state if we drag completely @Reporter: Can you please check the attached screencast and let us know if we missed any thing from our end. Could you please upgrade to latest chrome stable 71.0.3578.98, you can download latest chrome builds here:" https://www.chromium.org/getting-involved/dev-channel ". Let us know whether issue still persists. If possible provide screencast for better triaging it. Thanks.!
,
Dec 19
Still persists in M71.
,
Dec 19
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Dec 21
,
Dec 21
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by susan.boorgula@chromium.org
, Dec 11