Skip to content

Commit 12b8fe6

Browse files
Sam Davis Omekarachromium-wpt-export-bot
authored andcommitted
[Gap Decorations]: Update property lists to be comma separated
This CL updates the lists for gap decorations color, style, and width longhands to use commas as separators instead of spaces. This aligns with the csswg resolution[1], which states that both shorthands and longhands should use the same separator for their lists. [1]: w3c/csswg-drafts#12201 Bug: 475155080 Change-Id: I2f05aaaa58e288627b68013f776db9adfc0cb226 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7453182 Commit-Queue: Sam Davis Omekara <samomekarajr@microsoft.com> Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1569933}
1 parent c1bebf8 commit 12b8fe6

40 files changed

Lines changed: 354 additions & 354 deletions

File tree

‎css/css-gaps/animation/gap-decorations-color-neutral-keyframe-002.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<script>
1515
test(() => {
1616
target.style.columnRuleStyle = 'solid';
17-
target.style.columnRuleColor = 'black black black';
18-
var animation = target.animate([{}, {columnRuleColor: 'red blue rgb(255, 0, 0)'}], 1000);
17+
target.style.columnRuleColor = 'black, black, black';
18+
var animation = target.animate([{}, {columnRuleColor: 'red, blue, rgb(255, 0, 0)'}], 1000);
1919
animation.pause();
2020
animation.currentTime = 500;
21-
assert_equals(getComputedStyle(target).columnRuleColor, 'rgb(128, 0, 0) rgb(0, 0, 128) rgb(128, 0, 0)');
21+
assert_equals(getComputedStyle(target).columnRuleColor, 'rgb(128, 0, 0), rgb(0, 0, 128), rgb(128, 0, 0)');
2222
}, 'gap decorations column-rule-color value list supports neutral keyframe.');
2323
</script>
2424
</body>

‎css/css-gaps/animation/gap-decorations-color-neutral-keyframe-003.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<script>
1515
test(() => {
1616
target.style.rowRuleStyle = 'solid';
17-
target.style.rowRuleColor = 'black black black';
18-
var animation = target.animate([{}, {rowRuleColor: 'red blue rgb(255, 0, 0)'}], 1000);
17+
target.style.rowRuleColor = 'black, black, black';
18+
var animation = target.animate([{}, {rowRuleColor: 'red, blue, rgb(255, 0, 0)'}], 1000);
1919
animation.pause();
2020
animation.currentTime = 500;
21-
assert_equals(getComputedStyle(target).rowRuleColor, 'rgb(128, 0, 0) rgb(0, 0, 128) rgb(128, 0, 0)');
21+
assert_equals(getComputedStyle(target).rowRuleColor, 'rgb(128, 0, 0), rgb(0, 0, 128), rgb(128, 0, 0)');
2222
}, 'gap decorations row-rule-color value list supports neutral keyframe.');
2323
</script>
2424
</body>

‎css/css-gaps/animation/gap-decorations-color-neutral-keyframe-004.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<script>
1515
test(() => {
1616
target.style.rowRuleStyle = 'solid';
17-
target.style.rowRuleColor = 'repeat(3, black black) repeat(1, red)';
18-
var animation = target.animate([{}, {rowRuleColor: 'repeat(3, red red) repeat(1, black)'}], 1000);
17+
target.style.rowRuleColor = 'repeat(3, black, black), repeat(1, red)';
18+
var animation = target.animate([{}, {rowRuleColor: 'repeat(3, red, red), repeat(1, black)'}], 1000);
1919
animation.pause();
2020
animation.currentTime = 500;
21-
assert_equals(getComputedStyle(target).rowRuleColor, 'rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0)');
21+
assert_equals(getComputedStyle(target).rowRuleColor, 'rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0)');
2222
}, 'gap decorations row-rule-color with repeaters supports neutral keyframe.');
2323
</script>
2424
</body>

‎css/css-gaps/animation/gap-decorations-color-neutral-keyframe-005.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<script>
1515
test(() => {
1616
target.style.rowRuleStyle = 'solid';
17-
target.style.rowRuleColor = 'repeat(3, black black) red red';
18-
var animation = target.animate([{}, {rowRuleColor: 'repeat(3, red red) black black'}], 1000);
17+
target.style.rowRuleColor = 'repeat(3, black, black), red, red';
18+
var animation = target.animate([{}, {rowRuleColor: 'repeat(3, red, red), black, black'}], 1000);
1919
animation.pause();
2020
animation.currentTime = 500;
21-
assert_equals(getComputedStyle(target).rowRuleColor, 'rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0) rgb(128, 0, 0)');
21+
assert_equals(getComputedStyle(target).rowRuleColor, 'rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0), rgb(128, 0, 0)');
2222
}, 'gap decorations row-rule-color with repeaters supports neutral keyframe.');
2323
</script>
2424
</body>

‎css/css-gaps/animation/gap-decorations-width-neutral-keyframe-002.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<script>
1515
test(() => {
1616
target.style.rowRuleStyle = 'solid';
17-
target.style.rowRuleWidth = '10px 20px';
18-
var animation = target.animate([{}, {rowRuleWidth: '20px 30px'}], 1000);
17+
target.style.rowRuleWidth = '10px, 20px';
18+
var animation = target.animate([{}, {rowRuleWidth: '20px, 30px'}], 1000);
1919
animation.pause();
2020
animation.currentTime = 500;
21-
assert_equals(getComputedStyle(target).rowRuleWidth, '15px 25px');
21+
assert_equals(getComputedStyle(target).rowRuleWidth, '15px, 25px');
2222
}, 'gap decorations row-rule-width value list supports neutral keyframe.');
2323
</script>
2424
</body>

‎css/css-gaps/animation/gap-decorations-width-neutral-keyframe-003.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<script>
1515
test(() => {
1616
target.style.rowRuleStyle = 'solid';
17-
target.style.rowRuleWidth = 'repeat(2, 20px 20px) repeat(1, 30px)';
18-
var animation = target.animate([{}, {rowRuleWidth: 'repeat(2, 40px 40px) repeat(1, 40px)'}], 1000);
17+
target.style.rowRuleWidth = 'repeat(2, 20px, 20px), repeat(1, 30px)';
18+
var animation = target.animate([{}, {rowRuleWidth: 'repeat(2, 40px, 40px), repeat(1, 40px)'}], 1000);
1919
animation.pause();
2020
animation.currentTime = 500;
21-
assert_equals(getComputedStyle(target).rowRuleWidth, '30px 30px 30px 30px 35px');
21+
assert_equals(getComputedStyle(target).rowRuleWidth, '30px, 30px, 30px, 30px, 35px');
2222
}, 'gap decorations row-rule-width with repeaters supports neutral keyframe.');
2323
</script>
2424
</body>

‎css/css-gaps/animation/gap-decorations-width-neutral-keyframe-004.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<script>
1515
test(() => {
1616
target.style.columnRuleStyle = 'solid';
17-
target.style.columnRuleWidth= 'repeat(2, 20px 20px) 30px 30px';
18-
var animation = target.animate([{}, {columnRuleWidth: 'repeat(2, 40px 40px) 40px 40px'}], 1000);
17+
target.style.columnRuleWidth= 'repeat(2, 20px, 20px), 30px, 30px';
18+
var animation = target.animate([{}, {columnRuleWidth: 'repeat(2, 40px, 40px), 40px, 40px'}], 1000);
1919
animation.pause();
2020
animation.currentTime = 500;
21-
assert_equals(getComputedStyle(target).columnRuleWidth, '30px 30px 30px 30px 35px 35px');
21+
assert_equals(getComputedStyle(target).columnRuleWidth, '30px, 30px, 30px, 30px, 35px, 35px');
2222
}, 'gap decorations column-rule-width with repeaters supports neutral keyframe.');
2323
</script>
2424
</body>

‎css/css-gaps/animation/gap-decorations-width-neutral-keyframe-005.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<script>
1515
test(() => {
1616
target.style.columnRuleStyle = 'solid';
17-
target.style.columnRuleWidth= '10px 15px 20px 25px';
18-
var animation = target.animate([{}, {columnRuleWidth: '20px 25px 30px 35px'}], 1000);
17+
target.style.columnRuleWidth= '10px, 15px, 20px, 25px';
18+
var animation = target.animate([{}, {columnRuleWidth: '20px, 25px, 30px, 35px'}], 1000);
1919
animation.pause();
2020
animation.currentTime = 500;
21-
assert_equals(getComputedStyle(target).columnRuleWidth, '15px 20px 25px 30px');
21+
assert_equals(getComputedStyle(target).columnRuleWidth, '15px, 20px, 25px, 30px');
2222
}, 'gap decorations column-rule-width supports neutral keyframe.');
2323
</script>
2424
</body>

‎css/css-gaps/animation/row-rule-color-interpolation.html‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,28 +99,28 @@
9999
test_interpolation({
100100
property: 'row-rule-color',
101101
from: neutralKeyframe,
102-
to: 'red blue blue',
102+
to: 'red, blue, blue',
103103
}, [
104-
{at: -5, expect: 'rgb(255, 255, 0) rgb(255, 255, 0) rgb(255, 255, 0)'},
105-
{at: -0.4, expect: 'rgb(255, 255, 0) rgb(255, 255, 0) rgb(255, 255, 0)'},
106-
{at: 0, expect: 'rgb(255, 255, 0) rgb(255, 255, 0) rgb(255, 255, 0)'},
107-
{at: 0.2, expect: 'rgb(255, 204, 0) rgb(204, 204, 51) rgb(204, 204, 51)'},
108-
{at: 0.6, expect: 'rgb(255, 102, 0) rgb(102, 102, 153) rgb(102, 102, 153)'},
109-
{at: 1, expect: 'rgb(255, 0, 0) rgb(0, 0, 255) rgb(0, 0, 255)'},
110-
{at: 1.5, expect: 'rgb(255, 0, 0) rgb(0, 0, 255) rgb(0, 0, 255)'},
104+
{at: -5, expect: 'rgb(255, 255, 0), rgb(255, 255, 0), rgb(255, 255, 0)'},
105+
{at: -0.4, expect: 'rgb(255, 255, 0), rgb(255, 255, 0), rgb(255, 255, 0)'},
106+
{at: 0, expect: 'rgb(255, 255, 0), rgb(255, 255, 0), rgb(255, 255, 0)'},
107+
{at: 0.2, expect: 'rgb(255, 204, 0), rgb(204, 204, 51), rgb(204, 204, 51)'},
108+
{at: 0.6, expect: 'rgb(255, 102, 0), rgb(102, 102, 153), rgb(102, 102, 153)'},
109+
{at: 1, expect: 'rgb(255, 0, 0), rgb(0, 0, 255), rgb(0, 0, 255)'},
110+
{at: 1.5, expect: 'rgb(255, 0, 0), rgb(0, 0, 255), rgb(0, 0, 255)'},
111111
]);
112112
test_interpolation({
113113
property: 'row-rule-color',
114-
from: 'red blue green',
114+
from: 'red, blue, green',
115115
to: 'red',
116116
}, [
117-
{at: -5, expect: 'rgb(255, 0, 0) rgb(0, 0, 255) rgb(0, 255, 0)'},
118-
{at: -0.4, expect: 'rgb(255, 0, 0) rgb(0, 0, 255) rgb(0, 179, 0)'},
119-
{at: 0, expect: 'rgb(255, 0, 0) rgb(0, 0, 255) rgb(0, 128, 0)'},
120-
{at: 0.2, expect: 'rgb(255, 0, 0) rgb(51, 0, 204) rgb(51, 102, 0)'},
121-
{at: 0.6, expect: 'rgb(255, 0, 0) rgb(153, 0, 102) rgb(153, 51, 0)'},
122-
{at: 1, expect: 'rgb(255, 0, 0) rgb(255, 0, 0) rgb(255, 0, 0)'},
123-
{at: 1.5, expect: 'rgb(255, 0, 0) rgb(255, 0, 0) rgb(255, 0, 0)'},
117+
{at: -5, expect: 'rgb(255, 0, 0), rgb(0, 0, 255), rgb(0, 255, 0)'},
118+
{at: -0.4, expect: 'rgb(255, 0, 0), rgb(0, 0, 255), rgb(0, 179, 0)'},
119+
{at: 0, expect: 'rgb(255, 0, 0), rgb(0, 0, 255), rgb(0, 128, 0)'},
120+
{at: 0.2, expect: 'rgb(255, 0, 0), rgb(51, 0, 204), rgb(51, 102, 0)'},
121+
{at: 0.6, expect: 'rgb(255, 0, 0), rgb(153, 0, 102), rgb(153, 51, 0)'},
122+
{at: 1, expect: 'rgb(255, 0, 0), rgb(255, 0, 0), rgb(255, 0, 0)'},
123+
{at: 1.5, expect: 'rgb(255, 0, 0), rgb(255, 0, 0), rgb(255, 0, 0)'},
124124
]);
125125
</script>
126126
</body>

‎css/css-gaps/animation/rule-color-interpolation-conversion-002.html‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
<script src="/web-animations/testcommon.js"></script>
1010
<style>
1111
#target {
12-
column-rule-color: blue blue;
12+
column-rule-color: blue, blue;
1313
animation: color-anim 2s linear paused;
1414
}
1515
@keyframes color-anim {
16-
from { column-rule-color: red repeat(auto, red); }
16+
from { column-rule-color: red, repeat(auto, red); }
1717
}
1818
</style>
1919
</head>
@@ -25,23 +25,23 @@
2525
const el = document.getElementById('target');
2626
const anim = el.getAnimations()[0];
2727

28-
assert_equals(getComputedStyle(el).columnRuleColor, 'rgb(255, 0, 0) repeat(auto, rgb(255, 0, 0))');
28+
assert_equals(getComputedStyle(el).columnRuleColor, 'rgb(255, 0, 0), repeat(auto, rgb(255, 0, 0))');
2929

3030
// Jump to 50% of the animation.
3131
anim.currentTime = anim.effect.getComputedTiming().duration / 2;
3232

3333
const snapped = getComputedStyle(el).columnRuleColor;
3434
assert_equals(
3535
snapped,
36-
'rgb(0, 0, 255) rgb(0, 0, 255)'
36+
'rgb(0, 0, 255), rgb(0, 0, 255)'
3737
);
3838

39-
el.style.columnRuleColor = 'blue repeat(auto, blue)';
39+
el.style.columnRuleColor = 'blue, repeat(auto, blue)';
4040

4141
const intermediate = getComputedStyle(el).columnRuleColor;
4242
assert_equals(
4343
intermediate,
44-
'rgb(128, 0, 128) repeat(auto, rgb(128, 0, 128))' // The color at 50% of the animation.
44+
'rgb(128, 0, 128), repeat(auto, rgb(128, 0, 128))' // The color at 50% of the animation.
4545
);
4646
});
4747
</script>

0 commit comments

Comments
 (0)
Sponsor
SponsoredKunjungi sekarang
Promo