Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/CSS2/borders/border-shorthands-003.xht - WPT Dashboard Interop Dashboard
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: border-color shorthand (basic)</title>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/border/color/003.html" type="text/html"/>
<link rel="match" href="border-shorthands-003-ref.xht" />
<style type="text/css">
.test { border-top: solid 1em; }
div { color: green; border-color: red; }
</style>
</head>
<body>
<p>There should be a green bar below.</p>
<div class="test"></div>
</body>
</html>