Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Any copyright is dedicated to the Public Domain.
"use strict";
// Test that inherited CSS variables are case senstive.
const TEST_URI = URL_ROOT + "doc_variables_3.html";
add_task(async function () {
await addTab(TEST_URI);
const { inspector, view } = await openRuleView();
await selectNode("#target", inspector);
const upperCaseVarEl = getRuleViewProperty(
view,
"div",
"color"
).valueSpan.querySelector(".inspector-variable");
const lowerCaseVarEl = getRuleViewProperty(
view,
"div",
"background"
).valueSpan.querySelector(".inspector-variable");
is(upperCaseVarEl.textContent, "--COLOR", "upper case variable is matched");
is(
lowerCaseVarEl.textContent,
"--background",
"lower case variable is matched"
);
});