1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/generated-content/dynamic-attr-01.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 + <title>CSS 2.1 Test Suite: generated content</title> 1.8 + <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" /> 1.9 + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 1.10 + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content"/> 1.11 + <meta name="flags" content="dom" /> 1.12 +<style> 1.13 +body { 1.14 + font-family:sans-serif; 1.15 +} 1.16 +body::before { 1.17 + content:attr(my-attr); 1.18 +} 1.19 +body::after { 1.20 + content:attr(my-attr-2); 1.21 +} 1.22 +</style> 1.23 +<script> 1.24 +function fixupDOM() { 1.25 + document.body.setAttribute("my-attr", "before"); 1.26 + document.body.setAttribute("my-attr-2", "after!"); 1.27 + document.documentElement.className = ""; 1.28 +} 1.29 +</script> 1.30 +</head> 1.31 +<body my-attr-2="xyz" onload="fixupDOM()"> 1.32 +</body> 1.33 +</html>