diff --git a/svg/styling/presentation-attributes-special-cases.html b/svg/styling/presentation-attributes-special-cases.html index c544c9c7a64d8b..8fa045984d9ad5 100644 --- a/svg/styling/presentation-attributes-special-cases.html +++ b/svg/styling/presentation-attributes-special-cases.html @@ -89,7 +89,7 @@ if (CSS.supports("d", "initial")) { test(function() { - assertPresentationAttributeIsSupported("g", "d", "M0,0 L1,1", "d"); + assertPresentationAttributeIsNotSupported("g", "d", "M0,0 L1,1", "d"); }, `d presentation attribute not supported on other elements`); } diff --git a/svg/styling/presentation-attributes.js b/svg/styling/presentation-attributes.js index c9dc14ad49072c..552041496f187e 100644 --- a/svg/styling/presentation-attributes.js +++ b/svg/styling/presentation-attributes.js @@ -62,7 +62,7 @@ const PROPERTIES = { "d": { value: "M0,0 L1,1", relevantElement: "path", - irrelevantElement: "image", + irrelevantElement: null, }, "dominant-baseline": { value: "middle", @@ -142,7 +142,7 @@ const PROPERTIES = { "height": { value: "1", relevantElement: "rect", - irrelevantElement: "path", + irrelevantElement: null, }, "image-rendering": { value: "optimizeSpeed", @@ -207,17 +207,17 @@ const PROPERTIES = { "r": { value: "1", relevantElement: "circle", - irrelevantElement: "rect", + irrelevantElement: null, }, "rx": { value: "1", relevantElement: "rect", - irrelevantElement: "path", + irrelevantElement: null, }, "ry": { value: "1", relevantElement: "rect", - irrelevantElement: "path", + irrelevantElement: null, }, "shape-rendering": { value: "geometricPrecision", @@ -302,7 +302,7 @@ const PROPERTIES = { "transform": { value: "scale(2)", relevantElement: "g", - irrelevantElement: "linearGradient", + irrelevantElement: null, }, "unicode-bidi": { value: "embed", @@ -327,7 +327,7 @@ const PROPERTIES = { "width": { value: "1", relevantElement: "rect", - irrelevantElement: "path", + irrelevantElement: null, }, "word-spacing": { value: "1", @@ -342,12 +342,12 @@ const PROPERTIES = { "x": { value: "1", relevantElement: "rect", - irrelevantElement: "path", + irrelevantElement: null, }, "y": { value: "1", relevantElement: "rect", - irrelevantElement: "path", + irrelevantElement: null, }, };