Skip to content

Commit d3ed17e

Browse files
vmpstrchromium-wpt-export-bot
authored andcommitted
Rename image async attribute to decoding attribute.
This patch renames the async attribute to be the decoding attribute due to discussion on whatwg/html#1920 This also adds wpt test for the decoding attribute [email protected], [email protected] Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I0524b7e3849c9a922f358c0592d34c30a7fd8914 Reviewed-on: https://chromium-review.googlesource.com/770106 Commit-Queue: vmpstr <[email protected]> Reviewed-by: Chris Harrelson <[email protected]> Cr-Commit-Position: refs/heads/master@{#519453}
1 parent 49e48ef commit d3ed17e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

html/dom/elements-embedded.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var embeddedElements = {
1111
width: {type: "unsigned long", customGetter: true},
1212
height: {type: "unsigned long", customGetter: true},
1313
referrerPolicy: {type: "enum", keywords: ["", "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "strict-origin", "origin-when-cross-origin", "strict-origin-when-cross-origin", "unsafe-url"]},
14+
decoding: {type: "enum", keywords: ["async", "sync", "auto"], defaultVal: "auto", invalidVal: "auto"},
1415

1516
// Obsolete
1617
name: "string",

html/dom/reflection.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,12 @@ ReflectionTests.reflects = function(data, idlName, idlObj, domName, domObj) {
669669
}
670670

671671
if (data.keywords[i].length > 1) {
672-
domTests.push(data.keywords[i].slice(1));
673-
idlTests.push(data.keywords[i].slice(1));
672+
var sliced = data.keywords[i].slice(1);
673+
// If slicing a value yields another valid value, then skip it since it results in duplicate tests.
674+
if (data.keywords.indexOf(sliced) == -1) {
675+
domTests.push(sliced);
676+
idlTests.push(sliced);
677+
}
674678
}
675679

676680
if (data.keywords[i] != data.keywords[i].toLowerCase()) {

0 commit comments

Comments
 (0)