layout/reftests/w3c-css/submitted/values3/calc-max-width-block-1.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>CSS Test: max-width: calc() on blocks</title>
     5   <link rel="author" title="L. David Baron" href="http://dbaron.org/">
     6   <link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation">
     7   <meta name="flags" content="">
     8 <style type="text/css">
    10 body { width: 500px }
    11 p { background: green; color: white; margin: 1px 0; font-size: 10px; width: 1000px; }
    13 </style>
    14 </head>
    15 <body>
    17 <p style="max-width: calc(50% - 3px)">50% - 3px</p>
    18 <p style="max-width: calc(25% - 3px + 25%)">25% - 3px + 25%</p>
    19 <p style="max-width: calc(25% - 3px + 12.5% * 2)">25% - 3px + 12.5% * 2</p>
    20 <p style="max-width: calc(25% - 3px + 12.5%*2)">25% - 3px + 12.5%*2</p>
    21 <p style="max-width: calc(25% - 3px + 2*12.5%)">25% - 3px + 2*12.5%</p>
    22 <p style="max-width: calc(25% - 3px + 2 * 12.5%)">25% - 3px + 2 * 12.5%</p>
    23 <p style="max-width: calc(30% + 20%)">30% + 20%</p>
    24 </body>
    25 </html>

mercurial