Skip to content

Commit

Permalink
Use gPV/sP, as that's slightly more well-supported
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins authored Feb 8, 2019
1 parent 5692bc8 commit f912ea2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions css/css-syntax/urange-parsing.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
function testUrange(input, expected) {
test(()=>{
const rule = document.styleSheets[0].cssRules[0];
rule.style.unicodeRange = "U+1357";
rule.style.unicodeRange = input;
assert_equals(rule.style.unicodeRange.toUpperCase(), expected.toUpperCase());
rule.style.setProperty("unicode-range", "U+1357");
rule.style.setProperty("unicode-range", input);
assert_equals(rule.style.getPropertyValue("unicode-range").toUpperCase(), expected.toUpperCase());
}, `"${input}" => "${expected}"`)
}
function testInvalidUrange(input) {
test(()=>{
const rule = document.styleSheets[0].cssRules[0];
rule.style.unicodeRange = "U+1357";
rule.style.unicodeRange = input;
assert_equals(rule.style.unicodeRange.toUpperCase(), "U+1357");
rule.style.setProperty("unicode-range", "U+1357");
rule.style.setProperty("unicode-range", input);
assert_equals(rule.style.getPropertyValue("unicode-range").toUpperCase(), "U+1357");
}, `"${input}" is invalid`);
}

Expand Down

0 comments on commit f912ea2

Please sign in to comment.