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 107380 - class and id in one selector are not shown well in preview
Summary: class and id in one selector are not shown well in preview
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 09:47 UTC by Jindrich Sedek
Modified: 2008-04-28 13:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2007-06-20 09:47:38 UTC
create new CSS file
use this code:
-------------------------
a.trida{
    color: green;
}

a.trida#a20{
    font-size: 20mm;
}
--------------------------
set cursor possition into second selector area
code generated for preview is:
<html>
    <head><style type="text/css">
            a.trida {
            color: green; 
            }
            a.trida#a20 {
            font-size: 20mm; 
            }
    </style></head>
    <body>
        <a class="trida#a20">Sample Text</a>
    </body>
</html>
--------------------------------
I excpect it should be <a class="trida" id="a20">Sample Text</a> 
because a.trida#a20 is more special case of a.trida specialized by "id" it should inherit green color, but it doesn't now
Comment 1 Marek Fukala 2007-10-29 16:35:46 UTC
reproducible
Comment 2 Jindrich Sedek 2007-11-05 18:22:07 UTC
fixed.

Checking in CssPreviewGenerator.java;
/cvs/web/css/src/org/netbeans/modules/css/visual/ui/preview/CssPreviewGenerator.java,v  <--  CssPreviewGenerator.java
new revision: 1.8; previous revision: 1.7
done
Comment 3 Jindrich Sedek 2007-11-08 18:43:02 UTC
verified.
NetBeans IDE Dev (Build 20071108133813)