Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-values/attr-pseudo-element-marker.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Values and Units Test: attr() in ::marker pseudo element</title> <link rel="author" title="Swarup Ukil" href="mailto:sukil@mozilla.com"> <link rel="help" href="https://drafts.csswg.org/css-values/#attr-notation"> <link rel="match" href="attr-pseudo-element-marker-ref.html"> <style> li::marker { color: attr(data-color type(<color>), red); } </style> <ul><li id="special-bullet" data-color="yellow">Text</li></ul> <script> const bullet = document.getElementById("special-bullet"); bullet.getBoundingClientRect(); bullet.setAttribute("data-color", "green"); </script>
/css/css-values/attr-pseudo-element-marker-ref.html
<!DOCTYPE html> <title>CSS Values and Units Test: attr() in ::marker pseudo element</title> <style> li::marker { color: green; } </style> <ul><li>Text</li></ul>