[Webkit-unassigned] [Bug 85055] New: HTML5 "hidden" attribute is overridden by CSS "display" property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 27 05:33:38 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=85055

           Summary: HTML5 "hidden" attribute is overridden by CSS
                    "display" property
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: dubroy at chromium.org


Created an attachment (id=139175)
 --> (https://bugs.webkit.org/attachment.cgi?id=139175&action=review)
Sample that reproduces the bug

When an element has the "hidden" attribute, it will be visible if a matching CSS rule includes the "display" property. Example:

<!doctype html>
<html><head><title></title></head>
<body>
  <style>
    p {
      display: inline-block;
    }
  </style>
  <p hidden>Blah</p>
</body>
</html>

In WebKit nightly & Chrome Canary, the text "Blah" is visible. I believe it should be hidden.

If I remove the "display" line, it is hidden as expected.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list