I have this piece of html:
<?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en" >
<head>
<title>Minimal XHTML 1.1 Document</title>
<style type="text/css">
p.test {
border: 1px solid #000000;
white-space: nowrap;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
</head>
<body>
<p class="test">This is a minimal <a href="http://www.w3.org/TR/xhtml11">XHTML 1.1</a> document.</p>
</body>
</html>
But if I try to validate it here:
http://jigsaw.w3.org/css-validator/#validate_by_input+with_options
I get the following error:
p.test Parse Error [empty string]
Validation has nothing to do with whether any particular property works in any browser. It only indicates whether the syntax and content follows the standard. As this error states, it does not exist in CSS 2.1 but it does exist in CSS3. You can select CSS3 from the “More Options” drop down box