Closed Bug 5437 Opened 25 years ago Closed 25 years ago

iframe/frame visibility:hidden not working

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: karnaze, Assigned: karnaze)

Details

This is Eric's example. I'm opening a bug to have an audit trail. The <IFRAME>
is showing up even though the visibility is hidden.


<html><head></head><body>
<html>
     <head>
        <script>
           function show() {
              document.getElementById("div1").setAttribute("value","visible");
           }

           function hide() {
              document.getElementById("div1").setAttribute("value","hidden");
           }
        </script>

        <style>
           div[id="div1"][value="hidden"] {
              background-color: blue;
              visibility: hidden;
           }

           div[id="div1"][value="visible"] {
              background-color: red;
           }
        </style>
     </head>

     <body>
        <div id="div1" value="hidden">
           this is text
           <button> foo </button>
           <iframe src="http://www.yahoo.com">
        </div>
        <button onclick="show(this)">show</button>
        <button onclick="hide(this)">hide</button>
     </body>
  </html>
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
marking verified using 1999042608 build
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.