variable-reference-38.html (870B)
1 <!-- 2 Any copyright is dedicated to the Public Domain. 3 http://creativecommons.org/publicdomain/zero/1.0/ 4 --> 5 <!DOCTYPE html> 6 <title>CSS Test: Test using variables in overlapping shorthands.</title> 7 <link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au"> 8 <link rel="help" href="http://www.w3.org/TR/css-variables-1/#variables-in-shorthands"> 9 <link rel="match" href="variable-reference-38-ref.html"> 10 <style> 11 p { padding-left: 1em; } 12 #a { --style: solid; --left: black dotted; border-style: var(--style); border-left: var(--left); border-top: none; border-right: none; border-bottom: none; } 13 #b { --style: solid; --left: black dotted; border-left: var(--left); border-style: var(--style); border-top: none; border-right: none; border-bottom: none; } 14 </style> 15 <p id=a>The left border must be dotted.</p> 16 <p id=b>The left border must be solid.</p>