(Make possible to) disable auto-sorting of element classes
Reported by
evenfro...@gmail.com,
Aug 1 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Steps to reproduce the problem: 1. Open Elements panel in Developer Tools. 2. Select an element with multiple classes and toggle 'Element Classes' bar. 3. Toggle (check/uncheck) any of the element classes. What is the expected behavior? Element classes' order is preserved. What went wrong? Element classes' order is auto-sorted alphabetically. Did this work before? No Chrome version: 59.0.3071.115 Channel: stable OS Version: Ubuntu 17.04 Flash Version: On some occasions (e.g. when using order-dependent classes, Semantic UI framework is a primer) such alphabetical sorting of classes will break CSS rules (e.g valid 'center aligned' transforms to invalid 'aligned center' class set). Please consider either removing this auto-sorting feature or making possible to turn it off, this way it will greatly improve UX for developers using such approach.
,
Aug 4 2017
Tested on Chrome Stable #60.0.3112.90, Canary #62.0.3176.0 on Windows 7, Mac 10.12.6, Ubuntu 14.04 and able to reproduce the issue. This is a non-regression issue and able to reproduce from M-49 #49.0.2621.0. Marking it as untriaged so that issue gets addressed. For the builds earlier to 49.0.2621.0, “Element Classes (.cls)” was not available. Thanks.
,
Aug 8 2017
,
Dec 6 2017
This is an interesting case of using CSS classes. Normally, CSS classes order is not important. However, due to the matching by attribute value, it becomes important. To me, this is a misuse of css classes: for this purpose regular element attribues could've and should've be used. |
||||
►
Sign in to add a comment |
||||
Comment 1 by ranjitkan@chromium.org
, Aug 2 2017