Revision 47d3a27b5697f47bc76923b80ff9cfbde1d57580 authored by Servo WPT Sync on 13 March 2018, 19:31:58 UTC, committed by GitHub on 13 March 2018, 19:31:58 UTC
Merge pull request #10011 from sync_ef805cb3832c2deaf1ab8fc4f3353b65671e6f32
2 parent s 3c78e4a + ef805cb
Raw File
variable-generated-content-dynamic-001.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: Dynamic attribute change handling in generated content</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.csswg.org/css-variables/#using-variables">
<link rel="match" href="variable-generated-content-dynamic-001-ref.html">
<style>
:root {
  --my-attr: attr(data-foo);
}
div::before {
  content: var(--my-attr);
}
</style>
<div data-foo="FAIL"></div>
<script>
document.body.offsetTop;
document.querySelector('div').setAttribute('data-foo', "PASS");
</script>
back to top