[Webkit-unassigned] [Bug 152674] Web Inspector: Elements with the "hidden" attribute still show up if "display: flex; "

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 4 16:22:33 PST 2016


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

Joseph Pecoraro <joepeck at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Joseph Pecoraro <joepeck at webkit.org> ---
I believe this is behaving correctly. We match Firefox and Chrome here.

Web Inspector shows the style cascade being:

  inline style:
    display: flex

  html attributes: (from `hidden`)
    display: none

  user agent styles for `div`:
    display: block

The HTML Attributes section could just as easily have been treated as a user agent style like that recommended in the HTML spec:
https://html.spec.whatwg.org/multipage/interaction.html#the-hidden-attribute
https://html.spec.whatwg.org/multipage/rendering.html#hiddenCSS

  [hidden] {
    display: none;
  }

In which case, the more-specific inline style of `display: flex` overrides it.

User styles (page styles) can include their own styles to make the hidden attribute stronger...

  [hidden] {
    display: none !important;
  }

... but I think right now we are behaving as expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160105/6caf8ae3/attachment.html>


More information about the webkit-unassigned mailing list