Skip to content

Commit c97a944

Browse files
committed
Updated to v8.0.0
1 parent 03cf0bb commit c97a944

File tree

12 files changed

+281
-557
lines changed

12 files changed

+281
-557
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ Configuration items are:
314314

315315
## News and noteworthy
316316

317-
317+
v8.0.0 - work in progress
318+
* Requires Java 17 as the minimum version
319+
* Updated to ph-commons 12.0.0
320+
* Removed all deprecated methods marked for removal
318321

319322
v7.1.0 - 2025-08-20
320323
* Improved the selector list handling in the grammar and added `@layer` support. See [#111](https://github.com/phax/ph-css/pull/111) - thx @shagkur and @jmini

ph-css/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>com.helger</groupId>
2424
<artifactId>ph-css-parent-pom</artifactId>
25-
<version>7.1.1-SNAPSHOT</version>
25+
<version>8.0.0-SNAPSHOT</version>
2626
</parent>
2727
<artifactId>ph-css</artifactId>
2828
<packaging>bundle</packaging>

ph-css/src/main/java/com/helger/css/ECSSSpecification.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -304,47 +304,47 @@ public enum ECSSSpecification implements IHasID <String>
304304
*/
305305

306306
/** CSS Level 1 - Abandoned */
307-
@Deprecated
308-
CSS1 ("CSS1", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2008/REC-CSS1-20080411"),
307+
@Deprecated (forRemoval = false)
308+
CSS1("CSS1", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2008/REC-CSS1-20080411"),
309309
/** CSS Print Profile - Abandoned */
310-
@Deprecated
311-
CSS_PRINT ("css-print", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2013/NOTE-css-print-20130314/"),
310+
@Deprecated (forRemoval = false)
311+
CSS_PRINT("css-print", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2013/NOTE-css-print-20130314/"),
312312
/** CSS Mobile Profile 2.0 - Abandoned */
313-
@Deprecated
314-
CSS_MOBILE ("css-mobile", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2014/NOTE-css-mobile-20141014/"),
313+
@Deprecated (forRemoval = false)
314+
CSS_MOBILE("css-mobile", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2014/NOTE-css-mobile-20141014/"),
315315
/** Non-element Selectors Module Level 1 - Abandoned */
316-
@Deprecated
317-
SELECTORS_NONELEMENT_1 ("selectors-nonelement-1",
318-
ECSSSpecificationStatus.ABANDONED,
319-
"https://www.w3.org/TR/2019/NOTE-selectors-nonelement-1-20190402/"),
316+
@Deprecated (forRemoval = false)
317+
SELECTORS_NONELEMENT_1("selectors-nonelement-1",
318+
ECSSSpecificationStatus.ABANDONED,
319+
"https://www.w3.org/TR/2019/NOTE-selectors-nonelement-1-20190402/"),
320320
/** The CSS 'Reader' Media Type - Abandoned */
321-
@Deprecated
322-
CSS3_READER ("css3-reader", ECSSSpecificationStatus.ABANDONED),
321+
@Deprecated (forRemoval = false)
322+
CSS3_READER("css3-reader", ECSSSpecificationStatus.ABANDONED),
323323
/** CSS Presentation Levels - Abandoned */
324-
@Deprecated
325-
CSS3_PRESLEV ("css3-preslev", ECSSSpecificationStatus.ABANDONED),
324+
@Deprecated (forRemoval = false)
325+
CSS3_PRESLEV("css3-preslev", ECSSSpecificationStatus.ABANDONED),
326326
/** CSS TV Profile 1.0 - Abandoned */
327-
@Deprecated
328-
CSS_TV ("css-tv", ECSSSpecificationStatus.ABANDONED),
327+
@Deprecated (forRemoval = false)
328+
CSS_TV("css-tv", ECSSSpecificationStatus.ABANDONED),
329329
/** CSS Marquee - Abandoned */
330-
@Deprecated
331-
CSS3_MARQUEE ("css3-marquee",
332-
ECSSSpecificationStatus.ABANDONED,
333-
"http://www.w3.org/TR/2014/NOTE-css3-marquee-20141014/"),
330+
@Deprecated (forRemoval = false)
331+
CSS3_MARQUEE("css3-marquee",
332+
ECSSSpecificationStatus.ABANDONED,
333+
"http://www.w3.org/TR/2014/NOTE-css3-marquee-20141014/"),
334334
/** Behavioral Extensions to CSS - Abandoned */
335-
@Deprecated
336-
BECSS ("becss", ECSSSpecificationStatus.ABANDONED),
335+
@Deprecated (forRemoval = false)
336+
BECSS("becss", ECSSSpecificationStatus.ABANDONED),
337337
/** CSS Hyperlink Presentation - Abandoned */
338-
@Deprecated
339-
CSS3_HYPERLINKS ("css3-hyperlinks",
340-
ECSSSpecificationStatus.ABANDONED,
341-
"http://www.w3.org/TR/2004/WD-css3-hyperlinks-20040224/"),
338+
@Deprecated (forRemoval = false)
339+
CSS3_HYPERLINKS("css3-hyperlinks",
340+
ECSSSpecificationStatus.ABANDONED,
341+
"http://www.w3.org/TR/2004/WD-css3-hyperlinks-20040224/"),
342342
/** CSS Grid Positioning - Abandoned */
343-
@Deprecated
344-
CSS3_GRID ("css3-grid", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2007/WD-css3-grid-20070905/"),
343+
@Deprecated (forRemoval = false)
344+
CSS3_GRID("css3-grid", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2007/WD-css3-grid-20070905/"),
345345
/** Fullscreen - Abandoned */
346-
@Deprecated
347-
FULLSCREEN ("fullscreen", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2014/NOTE-fullscreen-20141118/"),
346+
@Deprecated (forRemoval = false)
347+
FULLSCREEN("fullscreen", ECSSSpecificationStatus.ABANDONED, "http://www.w3.org/TR/2014/NOTE-fullscreen-20141118/"),
348348

349349
/** Dummy specification that means outside of CSS specified */
350350
OUTSIDE_CSS ("$outside$", ECSSSpecificationStatus.OUTSIDE_CSS);

ph-css/src/main/java/com/helger/css/ICSSWriterSettings.java

Lines changed: 19 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -37,32 +37,19 @@ public interface ICSSWriterSettings
3737
ECSSVersion getCSSVersion ();
3838

3939
/**
40-
* @return The CSS version to be used. May not be <code>null</code>.
41-
* @deprecated Use {@link #getCSSVersion()} instead
42-
*/
43-
@Nonnull
44-
@Deprecated
45-
default ECSSVersion getVersion ()
46-
{
47-
return getCSSVersion ();
48-
}
49-
50-
/**
51-
* @return <code>true</code> if all unnecessary whitespaces should be ignored
52-
* when writing.
40+
* @return <code>true</code> if all unnecessary whitespaces should be ignored when writing.
5341
*/
5442
boolean isOptimizedOutput ();
5543

5644
/**
57-
* @return <code>true</code> if all unnecessary elements (like empty style
58-
* declarations) should be removed. This will than potentially lead to
59-
* CSS that is not equal to the original CSS!
45+
* @return <code>true</code> if all unnecessary elements (like empty style declarations) should be
46+
* removed. This will than potentially lead to CSS that is not equal to the original CSS!
6047
*/
6148
boolean isRemoveUnnecessaryCode ();
6249

6350
/**
64-
* @return The new line mode to be used for emitting the file. By default the
65-
* Unix new line mode ("\n") is used.
51+
* @return The new line mode to be used for emitting the file. By default the Unix new line mode
52+
* ("\n") is used.
6653
*/
6754
@Nonnull
6855
ENewLineMode getNewLineMode ();
@@ -76,76 +63,64 @@ default ECSSVersion getVersion ()
7663
String getNewLineString ();
7764

7865
/**
79-
* Get the indentation for an arbitrary number of levels. This can be used to
80-
* customize the indentation strategy like using tabs or spaces, how many
81-
* spaces etc.
66+
* Get the indentation for an arbitrary number of levels. This can be used to customize the
67+
* indentation strategy like using tabs or spaces, how many spaces etc.
8268
*
8369
* @param nCount
8470
* The number of indentations desired. Always &ge; 0.
85-
* @return The string to be used for indentation. May not be <code>null</code>
86-
* but may be empty.
71+
* @return The string to be used for indentation. May not be <code>null</code> but may be empty.
8772
*/
8873
@Nonnull
8974
String getIndent (@Nonnegative int nCount);
9075

9176
/**
92-
* @return <code>true</code> if all URL values should be quoted,
93-
* <code>false</code> if URL quoting should only be applied if
94-
* absolutely necessary.
77+
* @return <code>true</code> if all URL values should be quoted, <code>false</code> if URL quoting
78+
* should only be applied if absolutely necessary.
9579
*/
9680
boolean isQuoteURLs ();
9781

9882
/**
99-
* @return <code>true</code> if @namespace rules should be written,
100-
* <code>false</code> if not
83+
* @return <code>true</code> if @namespace rules should be written, <code>false</code> if not
10184
*/
10285
boolean isWriteNamespaceRules ();
10386

10487
/**
105-
* @return <code>true</code> if @font-face rules should be written,
106-
* <code>false</code> if not
88+
* @return <code>true</code> if @font-face rules should be written, <code>false</code> if not
10789
*/
10890
boolean isWriteFontFaceRules ();
10991

11092
/**
111-
* @return <code>true</code> if @keyframes rules should be written,
112-
* <code>false</code> if not
93+
* @return <code>true</code> if @keyframes rules should be written, <code>false</code> if not
11394
*/
11495
boolean isWriteKeyframesRules ();
11596

11697
/**
117-
* @return <code>true</code> if @media rules should be written,
118-
* <code>false</code> if not
98+
* @return <code>true</code> if @media rules should be written, <code>false</code> if not
11999
*/
120100
boolean isWriteMediaRules ();
121101

122102
/**
123-
* @return <code>true</code> if @page rules should be written,
124-
* <code>false</code> if not
103+
* @return <code>true</code> if @page rules should be written, <code>false</code> if not
125104
*/
126105
boolean isWritePageRules ();
127106

128107
/**
129-
* @return <code>true</code> if @viewport rules should be written,
130-
* <code>false</code> if not
108+
* @return <code>true</code> if @viewport rules should be written, <code>false</code> if not
131109
*/
132110
boolean isWriteViewportRules ();
133111

134112
/**
135-
* @return <code>true</code> if @supports rules should be written,
136-
* <code>false</code> if not
113+
* @return <code>true</code> if @supports rules should be written, <code>false</code> if not
137114
*/
138115
boolean isWriteSupportsRules ();
139116

140117
/**
141-
* @return <code>true</code> if unknown @ rules should be written,
142-
* <code>false</code> if not
118+
* @return <code>true</code> if unknown @ rules should be written, <code>false</code> if not
143119
*/
144120
boolean isWriteUnknownRules ();
145121

146122
/**
147-
* Check if the passed object matches the version requirements defined be this
148-
* settings.
123+
* Check if the passed object matches the version requirements defined be this settings.
149124
*
150125
* @param aCSSObject
151126
* The object to be checked.

0 commit comments

Comments
 (0)