New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 751106 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Last visit 29 days ago
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

(Make possible to) disable auto-sorting of element classes

Reported by evenfro...@gmail.com, Aug 1 2017

Issue description

UserAgent: 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.
 
Labels: Needs-Milestone
Cc: pnangunoori@chromium.org
Labels: M-62
Status: Untriaged (was: Unconfirmed)
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.
Owner: lushnikov@chromium.org
Status: Assigned (was: Untriaged)
Status: WontFix (was: Assigned)
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