Open alopepeo opened 11 years ago
Can you place the cursor '|' to the exact position where # results to color picker ?
Usually, # should result to color picker, only inside {} and after :
#BrowserPreferences, #main-window { background-color: #ccd9ea !important; background-image: -moz-linear-gradient(top, rgb(231,237,246) 3px, rgba(231,237,246,0) 156px), -moz-linear-gradient(rgba(241,245,251,0) 25%, rgba(241,245,251,.75)), -moz-linear-gradient(left, rgba(255,255,255,.3), rgba(255,255,255,0) 20%, rgba(255,255,255,0) 80%, rgba(255,255,255,0.3)), -moz-linear-gradient(30deg, rgba(255,255,255,0), rgba(255,255,255,0) 87%, rgba(255,255,255,.25)), -moz-linear-gradient(-30deg, rgba(255,255,255,.25) 13%, rgba(255,255,255,0), rgba(255,255,255,0)), -moz-repeating-linear-gradient(30deg, rgba(255,255,255,0), rgba(255,255,255,0) 30%, rgba(255,255,255,.05) 30.5%, rgba(255,255,255,.05) 38%, rgba(255,255,255,0) 38.5%), -moz-repeating-linear-gradient(30deg, rgba(255,255,255,0), rgba(255,255,255,0) 27%, rgba(255,255,255,.05) 27.5%, rgba(255,255,255,.05) 35%, rgba(255,255,255,0) 35.5%), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAM0lEQVQI12M4dOGJ1IFzj6T+//8v9ev3fykGEAdFAMQA4S2HrkmBVDOAREEYxDl9860UAAjiLPR0/dzCAAAAAElFTkSuQmCC); | Here is the first time that the color picker starts appearing. Starting here, anywere you put the # will autocomplete to the color picker. background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat !important; min-width: 53em !important; min-height: 40em !important; padding: 0 !important; margin: 0 !important; }
Ah, because of the ':' in the data uri of the image.
I said that respecting to entire properties, but if you try on the first "-moz-linear-gradient" into the rgb parenthesis, the coloricker also appears.
#BrowserPreferences, #main-window { background-color: #ccd9ea !important; background-image: -moz-linear-gradient(top, rgb( | Here the colorpicker also appears 231,237,246) 3px, rgba(231,237,246,0) 156px),
If we find each time that the colorpicker appears, we're going to be crazy!
The problem is that USM should recognize when you're into a new code line (after the ":") and when it's finished (behind the ";"). Otherwise, you'll never finish to find where the colorpicker appears.
color picker should appear at that position, it is intended.
Yes, I know that. The problem is that, when you are typing outside any selector or brackets, the color picker also works, at least on this style. That's not intended, I think.
So, I'm thinking that the color picker continues detecting an open bracket when it was previously closed. For example:
#something { background: #DDDDDD; | Here the color picker shouldn't appear if # was typed because it's outside the property }
But when writing # in that space the colorpicker appears.
Steps:
I don't know if it's an style bug, but anyway USM should recognize it a and avoid it.