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 268369

Summary: Wrong autocomplete for text-decoration CSS inline
Product: web Reporter: giulio_a
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description giulio_a 2016-10-06 07:54:04 UTC
NETBEANS 8.2 on LINUX FEDORA 24 x64:

Invoking autocomplete for text-decoration CSS attribute in HTML editor shows color CSS chooser and colors, instead of text-decoration possibilities.

Step to reproduce:

1) In HTML editing, create an element and add inline text-decoration styling, like: <span style="text-decoration:">xyz</span>

2) Press CTRL+Space for text-decoration autocomplete.

3) Color CSS chooser and colors will appear.
Comment 1 Milutin Kristofic 2016-10-06 12:32:53 UTC
Hi, 
netbeans code completion for text-decoration have not only colors, but also blink, underline and other styles

you can see when you call code completion to
<span style="text-decoration: un|">xyz</span>


Definition for text-decoration is in CSS 3 following:
<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'>

which means that you can have
h1.under {
   text-decoration: red underline;
}

colors works in Firefox and Safari. So there are also in our code completion. 

https://developer.mozilla.org/en/docs/Web/CSS/text-decoration
Comment 2 giulio_a 2016-10-06 13:43:42 UTC
This behaviour NetBeans 8.2 implements is more and better than my previous knowledge about text-decoration CSS level 3. :)

I learned something new.

Thank you for your work, and your prompt and detailed reply.

G: