Skip to content

Commit 7b5a443

Browse files
authored
Merge pull request w3c#364 from Seirdy/prefers-contrast
Update prefers-contrast to match spec changes
2 parents dabe53f + 98452cb commit 7b5a443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org/w3c/css/atrules/css3/media/MediaPrefersContrast.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
import org.w3c.css.values.CssValue;
1515

1616
/**
17-
* @spec https://www.w3.org/TR/2020/WD-mediaqueries-5-20200731/#descdef-media-prefers-contrast
17+
* @spec https://www.w3.org/TR/2021/WD-mediaqueries-5-20211218/#prefers-contrast
1818
*/
1919
public class MediaPrefersContrast extends MediaFeature {
2020

2121
public static final CssIdent[] allowed_values;
2222

2323
static {
24-
String[] _allowed_values = {"no-preference", "high", "low", "forced"};
24+
String[] _allowed_values = {"no-preference", "less", "more", "custom"};
2525
allowed_values = new CssIdent[_allowed_values.length];
2626
int i = 0;
2727
for (String s : _allowed_values) {

0 commit comments

Comments
 (0)