Skip to content

Commit 98452cb

Browse files
committed
Update prefers-contrast to match spec changes
prefers-contrast now accepts "less", "more", and "custom" rather than "low", "high", and "forced". Closes w3c#363
1 parent b779279 commit 98452cb

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)