Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Quick Edit ignores everything in file after selector that begins with ":" #9840

Closed
rcbraggthree opened this issue Nov 6, 2014 · 6 comments
Closed

Comments

@rcbraggthree
Copy link

When I try and use quick edit in my document to edit a class or id it works only if the rule is above a ::selection or ::after. If the class or id is after any of these rules that include a : or - then it will not find it and it wants me to create a new rule.

windows 8.1
Release 1.0 build 1.0.0-15191 (release 3f2eb90)

::selection { background-color: #67b2e7; color: #fff; }
::selection {color:#fff;background: #5a7388;}::-moz-selection {color:#fff;background: #5a7388;}

@RaymondLim
Copy link
Contributor

@rcbthree I can't reproduce it with my own::selection. Can you provide the CSS code that is causing the issue by pasting it in a comment or at the end of your description? Below is the CSS code that I tried.

.myh2::selection {
    color: white;  background: black;
}

.myh2 {
    margin-top: 1.3em;
}

@RaymondLim
Copy link
Contributor

Raise it to high priority since we have another related issue #9942 and it can crash Brackets after closing the developer tools.

@peterflynn
Copy link
Member

The dev tools crash is an unrelated issue, so I think this should go back down to Medium (sort of moot though, since there's already a PR up).

@redmunds
Copy link
Contributor

Confirmed. Closing.

@peterflynn
Copy link
Member

Fix PR includes a unit test, so removing 'needs unit test'

@peterflynn peterflynn changed the title Quick Edit breaks after certain rules Quick Edit ignores everything in file after selector that begins with ":" Dec 17, 2014
@peterflynn
Copy link
Member

Clarifying title

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants