W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 2007

CSS bug in Amaya 9.99

From: <ve3ll@cogeco.ca>
Date: Tue, 20 Nov 2007 11:49:42 -0500
To: www-amaya@w3.org
Message-ID: <4742C9D6.7588.1381C6@ve3ll.cogeco.ca>

For a descendant selector with asterisk.... say el1 * el2
the rule should apply only when el2 is grandchild or 
further removed. it should not apply to a child element
Unfortunately this is not true for Amaya 9.99 on WinXP

//------- test case -----------

<?xml version="1.1" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head><title>Descendants:VE3LL@RAC.CA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<style type="text/css">
span {color:red}
div * span {color:blue}
</style>
</head><body><h1>Descendants:VE3LL@RAC.CA</h1>
<p>el1 * el2 descendant selectors should not work if the el2
element is a child element. Only grandchildren and further down
the chain should react to rule. However Amaya 9.99 allows
child element to get the style.</p>
<div><span>Hello!</span></div>
</body></html>


-- 
-- 
John Russell, VE3LL@COGECO.CA
http://home.cogeco.ca/~ve3ll
http://home.cogeco.ca/~trains
http://home.cogeco.ca/~cipher
Received on Tuesday, 20 November 2007 16:49:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:54 UTC