Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: third_party/WebKit/LayoutTests/svg/filters/feBlend-all-modes.html

Issue 2703803003: Use unique id's in svg/filters/feBlend-all-modes.html (Closed)
Patch Set: Updated expectations Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/filters/feBlend-all-modes.html
diff --git a/third_party/WebKit/LayoutTests/svg/filters/feBlend-all-modes.html b/third_party/WebKit/LayoutTests/svg/filters/feBlend-all-modes.html
index 75b03176e5685a546fe076c865cd4f1ca08116c4..85a39240d0fa0981c01074634d70205649df1049 100644
--- a/third_party/WebKit/LayoutTests/svg/filters/feBlend-all-modes.html
+++ b/third_party/WebKit/LayoutTests/svg/filters/feBlend-all-modes.html
@@ -36,13 +36,13 @@ const blendModes = [
{a: 'rgb(255,0,0)', b: 'rgb(0,255,0)' },
{a: 'rgb(51,64,204)', b: 'rgb(153,192,102)' },
{a: 'rgba(51,64,204,0.5)', b: 'rgba(153,192,102,0.5)' },
-].forEach(function(colors) {
+].forEach(function(colors, groupNr) {
var group = document.createElement('div');
group.className = 'group';
document.body.appendChild(group);
- blendModes.forEach(function(mode, i) {
- var filterId = 'f_' + mode;
+ blendModes.forEach(function(mode) {
+ var filterId = 'f_' + mode + groupNr;
var filter = createSvgElement('filter', { id: filterId, x: 0, y: 0, width: 1, height: 1 });
filter.appendChild(createSvgElement('feFlood', { result: 'a', 'flood-color': colors.a }));
filter.appendChild(createSvgElement('feFlood', { result: 'b', 'flood-color': colors.b }));

Powered by Google App Engine
This is Rietveld 408576698