mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 02:17:45 -10:00
Displays which CSS variable is used in the rule view. Displays the actual variable value on the variable name's title property. Displays all the inherited CSS variables on the selected element in the rule view. MozReview-Commit-ID: 52uLJA123AP
24 lines
457 B
HTML
24 lines
457 B
HTML
<!-- Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
<html>
|
|
<head>
|
|
<title>variables test</title>
|
|
|
|
<style>
|
|
* {
|
|
--color: tomato;
|
|
--bg: violet;
|
|
}
|
|
|
|
div {
|
|
--color: chartreuse;
|
|
color: var(--color, red);
|
|
background-color: var(--not-set, var(--bg));
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="target" style="--bg: seagreen;"> the ocean </div>
|
|
</body>
|
|
</html>
|