Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /css/css-pseudo/marker-variable.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <link rel="match" href="marker-variable-ref.html">
  <title>::marker with variables</title>
  <style>
    .firstTest::marker {
      --alpha: 0.75;
      color: rgb(255 119 0 / var(--alpha));
    }
    .secondTest::marker {
      --color: rgb(255 119 0);
      color: var(--color);
    }
  </style>
</head>
<body>
  <ul>
    <li class="firstTest">Item 1</li>
    <li class="secondTest">Item 2</li>
  </ul>
</body>
</html>