W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2008

Amaya 9.99 styling bug with legends/fieldset

From: <ve3ll@cogeco.ca>
Date: Sun, 13 Jan 2008 16:38:41 -0500
To: www-amaya@w3.org
Message-ID: <478A3E91.18037.14C3CB@ve3ll.cogeco.ca>

The following example demos how you can apply a styling
rule to a legend element and have its effect show up
even though the document does not contain a legend element
it appears that the style is inherited by fieldset and a false 
spacing is given to a pseudo legend...... very strange bug this is
//-------------------------------------------------------------------------
<?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>cssLegend3:VE3LL@RAC.CA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<style type="text/css">legend {background:#ffdead}</style>
</head><body><h1>cssLegend3:VE3LL@RAC.CA</h1>
<p>Amaya 9.99 renders background styling for legend element
even though legend not used!</p>
<div class="fancy3"><fieldset><table>
<tr><th class="h" colspan="2">Registration Information</th></tr>
<tr><th class="i" colspan="2">Fields marked <span>*</span> are 
required!</th></tr>
<tr><th><label for="acct">Account:<span> * </span></label></th>
  <th><input id="acct" type="text"/></th></tr>
<tr><th><label for="pass1">Password:<span> * </span></label></th>
  <th><input id="pass1" type="password"/></th></tr>
<tr><th><label for="pass2">ReEntry:<span> * </span></label></th>
  <th><input id="pass2" type="password"/></th></tr>
<tr><th><label for="email">Email:<span> * </span></label></th>
  <th><input id="email" type="text"/></th></tr>
<tr><th class="i" colspan="2">
  <button onclick="return chkForm();">Send</button>
  <button onclick="return chkForm('no');">Clear Form</button>
  <button onclick="return chkForm('email');">Clear E-mail</button>
</th></tr></table></fieldset></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 Sunday, 13 January 2008 21:38:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:39 UTC