2009-02-05 08:15:52 +03:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
2010-01-28 02:46:48 +03:00
|
|
|
<title>CSS 2.1 Test Suite: Inline, non-replaced elements</title>
|
2009-02-05 08:15:52 +03:00
|
|
|
<link rel="author" title="L. David Baron" href="http://dbaron.org/" />
|
|
|
|
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
|
|
|
|
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-width" />
|
|
|
|
<meta name="flags" content="ahem" />
|
|
|
|
<style type="text/css"><![CDATA[
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
src: url(../fonts/Ahem.ttf);
|
2009-11-16 01:51:47 +03:00
|
|
|
font-family: Ahem;
|
|
|
|
}
|
2009-02-05 08:15:52 +03:00
|
|
|
|
|
|
|
html { background: white; }
|
|
|
|
|
|
|
|
body {
|
|
|
|
width: 100px; height: 100px;
|
|
|
|
border: 10px solid lime; background: red;
|
2009-11-16 01:51:47 +03:00
|
|
|
font: 20px/1 Ahem;
|
2009-02-05 08:15:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
span { background: red; color: green; }
|
|
|
|
|
2009-11-16 04:01:01 +03:00
|
|
|
.X::before, .space::before { background:green; color:transparent; }
|
|
|
|
.X::before { content:"X"; }
|
|
|
|
.space::before { content:" "; }
|
2009-11-16 01:51:47 +03:00
|
|
|
|
2009-02-05 08:15:52 +03:00
|
|
|
]]></style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<!-- First row -->
|
|
|
|
<!-- The width property does not apply -->
|
|
|
|
<!-- check padding-left and border-right too -->
|
2009-11-16 01:51:47 +03:00
|
|
|
<span style="width: 1px"><span class="X"></span></span
|
|
|
|
><span style="width: 200px"><span class="X"></span></span
|
|
|
|
><span style="width: 10px; padding-left: 10px;background:green"><span class="X"></span></span
|
|
|
|
><span style="border-right: 10px solid green; width: 40px"><span class="X"></span></span>
|
2009-02-05 08:15:52 +03:00
|
|
|
|
|
|
|
<!-- Second row -->
|
|
|
|
<!-- auto values for margin-left and margin-right are zero -->
|
|
|
|
<span style="background:green"
|
2009-11-16 01:51:47 +03:00
|
|
|
><span style="margin-right: auto"><span class="X"></span></span
|
|
|
|
><span style="margin-left: 5px"><span class="X"></span></span
|
|
|
|
><span style="margin-left:auto;background:green"><span class="space"></span></span
|
|
|
|
><span style="margin-right: 15px"><span class="X"></span></span
|
2009-02-05 08:15:52 +03:00
|
|
|
></span>
|
|
|
|
|
|
|
|
<!-- Third row -->
|
|
|
|
<!-- auto values for left and right are 0, and other values don't
|
|
|
|
do anything either, unless we have position:relative -->
|
2009-11-16 01:51:47 +03:00
|
|
|
<span style="left: auto"><span class="X"></span></span
|
|
|
|
><span style="left:8px"><span class="X"></span></span
|
|
|
|
><span style="right:73px"><span class="X"></span></span
|
|
|
|
><span style="right:auto"><span class="X"></span></span
|
|
|
|
><span style="background:transparent;color:red"><span class="X"></span><span style="position:relative;right:20px"><span class="X"></span></span></span>
|
2009-02-05 08:15:52 +03:00
|
|
|
|
|
|
|
<!-- Fourth row -->
|
|
|
|
<!-- toss in some negative and adjacent margins -->
|
2009-11-16 01:51:47 +03:00
|
|
|
<span style="margin-right: -5px;color:red;background:red"><span class="X"></span></span
|
|
|
|
><span style="margin-left: -15px"><span class="X"></span></span
|
2009-02-05 08:15:52 +03:00
|
|
|
><span style="background:green"
|
2009-11-16 01:51:47 +03:00
|
|
|
><span style="margin-right:25px"><span class="X"></span></span
|
|
|
|
><span style="margin-left: 15px"><span class="X"></span></span
|
2009-02-05 08:15:52 +03:00
|
|
|
></span>
|
|
|
|
|
|
|
|
<!-- Fifth row -->
|
|
|
|
<!-- border and padding and margin -->
|
|
|
|
<span style="margin-left:15px; margin-right:348px"
|
2009-11-16 01:51:47 +03:00
|
|
|
><span style="background: green; margin-left:-15px; border-left: 15px solid; padding-left: 25px;padding-right: 8px;border-right:32px solid;"><span class="X"></span></span
|
2009-02-05 08:15:52 +03:00
|
|
|
></span>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|