mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
53 lines
No EOL
1.8 KiB
HTML
53 lines
No EOL
1.8 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Variable reference without whitespace</title>
|
|
<link href="reference/variable-reference-without-whitespace-ref.xht" rel="match" />
|
|
<link href="http://www.w3.org/TR/css-variables-1/#syntax" rel="help" />
|
|
<link href="http://exyr.org/about/" rel="author" title="Simon Sapin" />
|
|
<meta content="
|
|
A variable reference followed by something without whitespace in between
|
|
must not be interpreted together as a single identifier.
|
|
Custom property values are sequences of tokens, not strings." rel="assert" />
|
|
<style>
|
|
p {
|
|
counter-reset: -- --a -a;
|
|
--dash:-;
|
|
}
|
|
|
|
#test_1 span::before {
|
|
counter-increment: var(--dash)-;
|
|
content: counter(--);
|
|
}
|
|
#test_2 span::before {
|
|
counter-increment: var(--dash)-a;
|
|
content: counter(--a);
|
|
}
|
|
#test_3 span::before {
|
|
counter-increment: var(--dash)a;
|
|
content: counter(-a);
|
|
}
|
|
|
|
#control_1 span::before {
|
|
counter-increment: --;
|
|
content: counter(--);
|
|
}
|
|
#control_2 span::before {
|
|
counter-increment: --a;
|
|
content: counter(--a);
|
|
}
|
|
#control_3 span::before {
|
|
counter-increment: -a;
|
|
content: counter(-a);
|
|
}
|
|
</style>
|
|
</head><body><p>The next four lines must be identical, containing only zeroes:
|
|
</p><p id="test_1"><span></span> <span></span> <span></span>
|
|
</p><p id="test_2"><span></span> <span></span> <span></span>
|
|
</p><p id="test_3"><span></span> <span></span> <span></span>
|
|
</p><p>0 0 0
|
|
|
|
</p><p>The next four lines must be identical, containing increasing integers:
|
|
</p><p id="control_1"><span></span> <span></span> <span></span>
|
|
</p><p id="control_2"><span></span> <span></span> <span></span>
|
|
</p><p id="control_3"><span></span> <span></span> <span></span>
|
|
</p><p>1 2 3
|
|
</p></body></html> |