W3C home > Mailing lists > Public > www-validator-css@w3.org > October 2008

Re: Validate style="..."

From: Jean-Guilhem Rouel <jean-gui@w3.org>
Date: Fri, 17 Oct 2008 11:57:11 +0200
Message-ID: <48F86177.2020609@w3.org>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
CC: www-validator-css@w3.org

Lennart Borgman (gmail) a écrit :
> It would be nice if style="..." was validated to.
> Thanks.


That's already the case. Try validating the following document with 
warnings set to "all":
<?xml version="1.0" encoding="utf-8"?> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 



<h1 style="color: foo">Test</h1> 

<h1 style="color: red">Test2</h1> 


You should get 1 error and 1 warning, as expected.

Style attributes don't appear in the "computed stylesheet" though.

Received on Friday, 17 October 2008 09:57:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:45 UTC