Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Jan 26, 2024
1 parent 3266aee commit 47fdaef
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/jsdom/living/helpers/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,15 @@ const namedColors = {
// * 'transparent'

exports.getSpecifiedColor = color => {
/*
const lowercasedColor = color.toLowerCase();
if (Object.hasOwn(namedColors, lowercasedColor) || lowercasedColor === "transparent") {
return lowercasedColor;
}

return sharedSpecifiedAndComputedAndUsed(color);
*/
if (/^transparent$/i.test(color)) {
return "transparent";
}
return getResolvedValueForColor(color);
};

exports.getComputedOrUsedColor = color => {
/*
const lowercasedColor = color.toLowerCase();
const fromNamedColors = namedColors[lowercasedColor];
if (fromNamedColors !== undefined) {
Expand All @@ -191,8 +184,6 @@ exports.getComputedOrUsedColor = color => {
}

return sharedSpecifiedAndComputedAndUsed(color);
*/
return getResolvedValueForColor(color);
};

function sharedSpecifiedAndComputedAndUsed(color) {
Expand Down

0 comments on commit 47fdaef

Please sign in to comment.