https://github.com/mozilla/gecko-dev
Raw File
Tip revision: f9cba8382063d003aeee8e329ef2a03d01c902b9 authored by ffxbld on 04 March 2015, 22:12:33 UTC
Added FENNEC_36_0_1_RELEASE FENNEC_36_0_1_BUILD1 tag(s) for changeset de94ecf54660. DONTBUILD CLOSED TREE a=release
Tip revision: f9cba83
dynamic-attr-01.html
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
    <title>CSS 2.1 Test Suite: generated content</title>
    <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" />
    <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
    <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content"/>
    <meta name="flags" content="dom" />
<style>
body {
  font-family:sans-serif;
}
body::before {
  content:attr(my-attr);
}
body::after {
  content:attr(my-attr-2);
}
</style>
<script>
function fixupDOM() {
  document.body.setAttribute("my-attr", "before");
  document.body.setAttribute("my-attr-2", "after!");
  document.documentElement.className = "";
}
</script>
</head>
<body my-attr-2="xyz" onload="fixupDOM()">
</body>
</html>
back to top