W3C home > Mailing lists > Public > public-cdf@w3.org > January 2007

SVG in a HTML:table

From: Jeff Schiller <codedread@gmail.com>
Date: Tue, 2 Jan 2007 15:45:08 -0600
Message-ID: <da131fde0701021345v761b25ceke43eb346fce16052@mail.gmail.com>
To: www-svg@w3.org, public-cdf@w3.org

I have a question about XHTML+SVG when it comes to laying out SVG in a
HTML:table.  Here's my minimal test case.  I'm also going to point
this question at the svg-developers list too:

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
  <style type="text/css">* { border-style:solid }</style>
  <table border="1">
        <p>Paragraph One</p>
        <p>Paragraph Two</p>
        <p>Paragraph Three</p>
        <p>Paragraph Four</p>
        <p>Paragraph Five</p>
        <p>Paragraph Six</p>
        <p>Paragraph Seven</p>
        <svg version="1.1" width="40px" height="100%"
xmlns="http://www.w3.org/2000/svg" >
          <rect x="0" y="0" width="100%" height="100%" fill="red" />

Firefox 1.5, 2 and 3 (latest nightly) consider the <svg> element's
height of 100% to be the height of the browser window.  Opera 9
considers the <svg> element's height of 100% as a static 150 pixels in
this instance (?).  Both seem wrong to me - it seems like the browser
should take 100% to mean the "tallest element in the table's row"
(which would be defined by the seven HTML:p elements in the other

Can someone tell me what the spec states about the file above and what
SHOULD happen?  I can do the browser bug opening, if required...

Received on Tuesday, 2 January 2007 21:51:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:02:22 UTC