This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 223943 - Consider the behaviour of Edit CSS Styles in terms of creating rules for both css and id selectors
Summary: Consider the behaviour of Edit CSS Styles in terms of creating rules for both...
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-17 15:45 UTC by Vladimir Riha
Modified: 2014-10-06 13:25 UTC (History)
2 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-12-17 15:45:27 UTC
This is imho incorrect behaviour:

- have some element, for instance

<ul id="menu">        </ul>

- invoke Edit CSS Rule dialog for this element, modify class selector and confirm

=> to the target css file, rule #menu is inserted as well but I didn't want it, I have #menu in some other css file (and even if not, it is still not a reason to create it). 

I'm not sure how this could be resolved, perhaps the dialog shouldn't insert class and ID selector at the same time after all. 


Product Version: NetBeans IDE Dev (Build web-main-9541-on-20121216)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 8 version 6.2 running on amd64; Cp1252; en_US (nb)
Comment 1 Marek Fukala 2012-12-19 12:53:40 UTC
This will happen only if you select the ID selector type, won't it? 

The current implementation allows to create both class and id rules in one operation.

I admit this may be confusing in this special case. 

I can simply change it create rule JUST for the last selected selector type.

Having a list of planned operations at the bottom of the window as Jir<ka already requested would help as well.
Comment 2 Vladimir Riha 2012-12-19 13:13:57 UTC
(In reply to comment #1)
> This will happen only if you select the ID selector type, won't it? 

I really thought it happened without this action, but I can't reproduce it now, so I guess you're right and I didn't realize it.
Comment 3 Marek Fukala 2012-12-19 15:07:53 UTC
OK then, I'll address this issue after 7.3 along with the mentioned issue. Turning to task if you do not mind.
Comment 4 Vladimir Riha 2012-12-19 15:28:34 UTC
Not at all, thanks