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 267771

Summary: CSS - Create rule ... and import stylesheet ...
Product: web Reporter: amobilia
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description amobilia 2016-08-30 06:16:23 UTC
- Create a simple css file

- Create a simple HTML file :
-----
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div class="te2st">TODO write content</div>
    </body>
</html>
-----

- Click on the bulb on the "div" line and choose option "Create rule .te2st and import newcss.css"

This create the rule and add on the HTML file the following code : "		<link rel="stylesheet" href="newcss.css" type="text/css"/>"


- Click again on the bulb on the div line and choose option "Add reference to containing stylesheet newcss.css"

This create anotre line on the HTML file "<link rel="stylesheet" href="newcss.css" type="text/css">"
(without trailing slash)


What's expected :
- After the first clic on the bulb and create / import of the css file, there is no need to import again the CSS file