Skip to content

Commit e03a08c

Browse files
committed
Allow random parameters of consistent type
Corresponds to w3c/csswg-drafts@f587be0 which updated the criteria for random arguments to be of consistent rather than same type
1 parent 08b09c6 commit e03a08c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

css/css-values/random-invalid.tentative.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@
2929
test_invalid_value('width', 'random(fixed 0.5%, 1px, 2px)');
3030
test_invalid_value('width', 'random(fixed -1, 1px, 2px)');
3131
test_invalid_value('width', 'random(10deg, 20deg)');
32-
test_invalid_value('width', 'random(10px, 20%)');
3332

3433
</script>

css/css-values/random-serialize.tentative.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
test_valid_value('width', 'random(element-shared auto, 0px, 100px, 50px)', 'random(element-shared, 0px, 100px, 50px)');
2525
test_valid_value('width', 'random(fixed 0.5, 0px, 100px, 50px)');
2626

27+
// Test consistent types
28+
test_valid_value('width', 'random(10px, 20%)');
29+
2730
// Test out of order.
2831
test_valid_value('width', 'random(100px, 0px)');
2932

0 commit comments

Comments
 (0)