Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324731 - Add support for CSS3 properties
Summary: Add support for CSS3 properties
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.css (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 3.2.3   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 08:22 EDT by jzaruba CLA
Modified: 2011-01-20 11:34 EST (History)
4 users (show)

See Also:
david_williams: pmc_approved+
thatnitind: pmc_approved? (raghunathan.srinivasan)
thatnitind: pmc_approved? (naci.dai)
thatnitind: pmc_approved? (deboer)
thatnitind: pmc_approved? (neil.hauge)
thatnitind: pmc_approved? (kaloyan)
thatnitind: review+


Attachments
patch (147.51 KB, patch)
2010-11-30 22:16 EST, Nick Sandonato CLA
no flags Details | Diff
patch - pseudoelements updated (148.11 KB, patch)
2010-12-14 14:34 EST, Nick Sandonato CLA
no flags Details | Diff
patch (149.30 KB, patch)
2010-12-14 14:40 EST, Nick Sandonato CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jzaruba CLA 2010-09-08 08:22:59 EDT
Build Identifier: 

Judging by my every-day experience I'd suggest several properties in particular:

- 'box-shadow'
http://www.w3.org/TR/css3-background/#the-box-shadow

- 'border-radius'
- 'border-top-left-radius'
- 'border-top-right-radius'
- 'border-bottom-right-radius'
- 'border-bottom-left-radius'
http://www.w3.org/TR/css3-background/#border-radius

- 'rgba(r,g,b,a)' for colors
http://www.w3.org/TR/css3-color/#rgba-color

- 'initial' for all properties
http://www.w3.org/TR/css3-cascade/#initial0

Reproducible: Always
Comment 1 Nick Sandonato CLA 2010-11-30 22:16:12 EST
Created attachment 184213 [details]
patch

Attaching a patch with updated junits to support CSS3. Please use jflex 1.4.2 to generate the updated CSSTokenizer class.
Comment 2 Nick Sandonato CLA 2010-12-14 14:34:09 EST
Created attachment 185160 [details]
patch - pseudoelements updated

Last patch didn't take into account pseudoelements having two colons starting with CSS3. (legacy pseudoelements are optional)
Comment 3 Nick Sandonato CLA 2010-12-14 14:40:48 EST
Created attachment 185161 [details]
patch

Left out the jflex update accidentally.
Comment 4 Nitin Dahyabhai CLA 2010-12-21 12:07:06 EST
Putting this up for PMC approval.  The bulk of the patch is adding the actual information for the level 3 profile--the mentioned tokenizer changes are actually quite small.
Comment 5 David Williams CLA 2010-12-21 14:35:44 EST
I think the value of this function justifies putting it in a maintenance release. 

Thanks Nitin.
Comment 6 Nick Sandonato CLA 2010-12-21 17:40:59 EST
Thanks for the approval. Code has been checked in.
Comment 7 jo CLA 2011-01-20 10:33:13 EST
Hi,

is this feature published in the current wdt version(eclipse 3.6 wtp 3.2.2)?
update my local eclipse ide/wtp plugin but it seems not to be supported yet.
how can i enable css3 source editing/autocompletion for the css editor?

kind regards
Comment 8 Nick Sandonato CLA 2011-01-20 11:17:17 EST
(In reply to comment #7)
> Hi,
> 
> is this feature published in the current wdt version(eclipse 3.6 wtp 3.2.2)?
> update my local eclipse ide/wtp plugin but it seems not to be supported yet.
> how can i enable css3 source editing/autocompletion for the css editor?
> 
> kind regards

Hi Jo,

No, CSS3 is not present in WTP 3.2.2. You'll find CSS3 available starting with WTP 3.2.3, which should be available as part of the Helios Service Release on 2/25/2011.

Also, CSS3 is not the default CSS-level. So when the time comes you'll need to modify the Web Content Settings at either the project level or file level by right clicking on the project or file and selecting Properties. Select Web Content Settings and change CSS Profile to "Cascading Style Sheets, level 3".

Hope this helps.
Comment 9 jo CLA 2011-01-20 11:34:11 EST
(In reply to comment #8)
> (In reply to comment #7)
> > Hi,
> > 
> > is this feature published in the current wdt version(eclipse 3.6 wtp 3.2.2)?
> > update my local eclipse ide/wtp plugin but it seems not to be supported yet.
> > how can i enable css3 source editing/autocompletion for the css editor?
> > 
> > kind regards
> 
> Hi Jo,
> 
> No, CSS3 is not present in WTP 3.2.2. You'll find CSS3 available starting with
> WTP 3.2.3, which should be available as part of the Helios Service Release on
> 2/25/2011.
> 
> Also, CSS3 is not the default CSS-level. So when the time comes you'll need to
> modify the Web Content Settings at either the project level or file level by
> right clicking on the project or file and selecting Properties. Select Web
> Content Settings and change CSS Profile to "Cascading Style Sheets, level 3".
> 
> Hope this helps.

Hi Nick,
thanks for your detailed reply. hope i didn't bother you too much.
all best jo