[devtools] when property value is 0, styles pane incorrectly appends a `%`
Reported by
kaycebas...@gmail.com,
Oct 26 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3245.0 Safari/537.36 Steps to reproduce the problem: 1. open https://codepen.io/kaycebasques/full/eeOzyG/ 2. inspect the button 3. expand `flex: 1` What is the expected behavior? `flex-basis: 0` What went wrong? `flex-basis: 0%` Did this work before? N/A Chrome version: 64.0.3245.0 Channel: canary OS Version: OS X 10.12.6 Flash Version: Eugene says that this is not specific to CSS Grid. So it'd be worth investigating if this issue pops up in other CSS layout models.
,
Oct 30 2017
,
Nov 1 2017
I traced this to be an actual value returned by the styles engine. This is working as intended.
,
Nov 2 2017
I assume that you meant this is W3C specification to return 0% and not 0.
,
Nov 2 2017
This is working as intended, but the value written by styles engine isn't conform with W3C specification. I would encourage you to read this portion of specification - https://www.w3.org/TR/css-flexbox-1/#flex-property I've also attached screenshots from W3C document which highlight that it should be "0' where as styles engine returning "0%". Also, there is related bug which shows "flex: 1 1 0" as "flex-basis: 0px" in styles pane. Please refer screenshot. |
|||
►
Sign in to add a comment |
|||
Comment 1 by jmukthavaram@chromium.org
, Oct 30 2017Status: Untriaged (was: Unconfirmed)
168 KB
168 KB View Download