layout/reftests/generated-content/floated-01.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>CSS 2.1 Test Suite: generated content</title>
michael@0 5 <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" />
michael@0 6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
michael@0 7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content"/>
michael@0 8 <meta name="flags" content="" />
michael@0 9 <style>
michael@0 10 div { counter-reset:ctr; quotes:"\0022" "\0022" "\0022" "\0022"; }
michael@0 11
michael@0 12 div::before {
michael@0 13 content:counter(ctr) url(square-outline-32x32.png) open-quote "Before " attr(class);
michael@0 14 counter-increment:ctr;
michael@0 15 }
michael@0 16 div::after {
michael@0 17 content:counter(ctr) url(square-outline-32x32.png) "After " attr(class) close-quote;
michael@0 18 counter-increment:ctr;
michael@0 19 }
michael@0 20
michael@0 21 .beforeleft::before {
michael@0 22 float:left;
michael@0 23 }
michael@0 24 .beforeright::before {
michael@0 25 float:right;
michael@0 26 }
michael@0 27 .afterleft::after {
michael@0 28 float:left;
michael@0 29 }
michael@0 30 .afterright::after {
michael@0 31 float:right;
michael@0 32 }
michael@0 33
michael@0 34 div { border:1px solid green; margin:5px; }
michael@0 35 div { overflow:auto; }
michael@0 36 </style>
michael@0 37 </head>
michael@0 38 <body>
michael@0 39 <div class="beforeleft afterleft">Inner</div>
michael@0 40 <div class="beforeleft afterright">Inner</div>
michael@0 41 <div class="beforeright afterleft">Inner</div>
michael@0 42 <div class="beforeright afterright">Inner</div>
michael@0 43 </body>
michael@0 44 </html>

mercurial