Skip to content

Commit f2cbae8

Browse files
jenkins-botGerrit Code Review
authored andcommitted
Merge "Update Values and Units to Level 4"
2 parents a532048 + a20109a commit f2cbae8

File tree

14 files changed

+316
-177
lines changed

14 files changed

+316
-177
lines changed

HISTORY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
- values: stretch, fit-content, and contain;
66
- properties: aspect-ratio, contain-intrinsic-* (size, width, height, block-size, inline-size), min-intrinsic-size;
77
* Update Color to Level 4 (2025-04-24)
8+
* Update Values and Units to Level 4 (WD 2024-03-12)
89

9-
## css-sanizer 5.5.0 (2025-01-27)
10+
## css-sanitizer 5.5.0 (2025-01-27)
1011
* Ensure <-token and identifiers are always separated as a security
1112
paranoia measure
1213
* Add support for prefers-reduced-motion, prefers-reduced-transparency,

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Conformance
5656
The library follows the following grammar specifications:
5757

5858
* [CSS Syntax Level 3, 2019-07-16][CSSSYN]
59-
* [CSS Values and Units Module Level 3, 2019-06-06][CSSVAL]
59+
* [CSS Values and Units Module Level 4, 2024-03-12][CSSVAL]
6060
* [CSS Selectors Level 3, 2018-11-06][CSSSEL]
6161

6262
The sanitizer recognizes the following CSS modules:
@@ -177,6 +177,6 @@ Additional release history is in [`HISTORY.md`](./HISTORY.md).
177177
[Latest Stable Version]: https://poser.pugx.org/wikimedia/css-sanitizer/v/stable.svg
178178
[License]: https://poser.pugx.org/wikimedia/css-sanitizer/license.svg
179179
[CSSSYN]: https://www.w3.org/TR/2019/CR-css-syntax-3-20190716/
180-
[CSSVAL]: https://www.w3.org/TR/2019/CR-css-values-3-20190606/
180+
[CSSVAL]: https://www.w3.org/TR/2024/WD-css-values-4-20240312/
181181
[CSSSEL]: https://www.w3.org/TR/2018/REC-selectors-3-20181106/
182182
[CSSWORK]: https://www.w3.org/Style/CSS/current-work

src/Grammar/Alternative.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* Matcher that matches one out of a set of Matchers ("|" combiner).
14-
* @see https://www.w3.org/TR/2019/CR-css-values-3-20190606/#comb-one
14+
* @see https://www.w3.org/TR/2024/WD-css-values-4-20240312/#comb-one
1515
*/
1616
class Alternative extends Matcher {
1717
/** @var Matcher[] */

src/Grammar/DelimMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* other types (case-sensitively) too. For the more common case-insensitive
1717
* identifier matching, use KeywordMatcher.
1818
*
19-
* @see https://www.w3.org/TR/2019/CR-css-values-3-20190606/#component-types
19+
* @see https://www.w3.org/TR/2024/WD-css-values-4-20240312/#component-types
2020
*/
2121
class DelimMatcher extends Matcher {
2222
/** @var string One of the Token::T_* constants */

src/Grammar/Juxtaposition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
/**
1515
* Matcher that groups other matchers (juxtaposition)
16-
* @see https://www.w3.org/TR/2019/CR-css-values-3-20190606/#component-combinators
17-
* @see https://www.w3.org/TR/2019/CR-css-values-3-20190606/#comb-comma
16+
* @see https://www.w3.org/TR/2024/WD-css-values-4-20240312/#component-combinators
17+
* @see https://www.w3.org/TR/2024/WD-css-values-4-20240312/#comb-comma
1818
*/
1919
class Juxtaposition extends Matcher {
2020
/** @var Matcher[] */

src/Grammar/KeywordMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* other types (case-insensitively) too. For delimiter (or case-sensitive)
1717
* matching, use DelimMatcher.
1818
*
19-
* @see https://www.w3.org/TR/2019/CR-css-values-3-20190606/#component-types
19+
* @see https://www.w3.org/TR/2024/WD-css-values-4-20240312/#component-types
2020
*/
2121
class KeywordMatcher extends Matcher {
2222
/** @var string One of the Token::T_* constants */

src/Grammar/Matcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
/**
1616
* Base class for grammar matchers.
1717
*
18-
* The [CSS Syntax Level 3][SYN3] and [Values Level 3][VAL3] specifications use
18+
* The [CSS Syntax Level 3][SYN3] and [Values Level 4][VAL4] specifications use
1919
* a mostly context-free grammar to define what things like selectors and
2020
* property values look like. The Matcher classes allow for constructing an
2121
* object that will determine whether a ComponentValueList actually matches
2222
* this grammar.
2323
*
2424
* [SYN3]: https://www.w3.org/TR/2019/CR-css-syntax-3-20190716/
25-
* [VAL3]: https://www.w3.org/TR/2019/CR-css-values-3-20190606/
25+
* [VAL4]: https://www.w3.org/TR/2024/WD-css-values-4-20240312/
2626
*/
2727
abstract class Matcher {
2828

0 commit comments

Comments
 (0)