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"?>
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<style type="text/css">legend {background:#ffdead}</style>
<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 
<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>


John Russell, VE3LL@COGECO.CA
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