This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17163 - collapse should be a valid value for SVG graphic element visibility attribute
Summary: collapse should be a valid value for SVG graphic element visibility attribute
Status: RESOLVED FIXED
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 22:44 UTC by xinyang_qiu
Modified: 2013-06-26 13:28 UTC (History)
1 user (show)

See Also:


Attachments

Description xinyang_qiu 2012-05-23 22:44:19 UTC
Verify the following SVG htm5 doc:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>SVG 1.1, 2nd Edition Test Suite: 'Visibility' attribute set to 'collapse' value</title>
      <link rel="help" href="http://www.w3.org/TR/SVG11/painting.html#VisibilityControl" />
  </head>
  <body>
    <div class="testdata">
      <p id="instructions">Test passes if there is no red visible on the page.</p>
    </div>
    <div class="container">
<svg version="1.1" baseProfile="full" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <g id="test-body-content">
<rect width="96" height="96" visibility="collapse" fill="red" />
    
  </g>
  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
</svg>
    </div>
  </body>
</html>

Actual:
Error: Bad value collapse for attribute visibility on element rect.
From line 14, column 1; to line 14, column 64
content">↩<rect width="96" height="96" visibility="collapse" fill="red" />↩    ↩

Expected:
No error

See:
http://www.w3.org/TR/SVG11/painting.html#VisibilityControl
Comment 1 Michael[tm] Smith 2013-06-26 13:28:40 UTC
Fixed.