[Webkit-unassigned] [Bug 69071] New: Invisible content with positioned html::before and html::after pseudo-elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 29 01:39:02 PDT 2011


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

           Summary: Invisible content with positioned html::before and
                    html::after pseudo-elements
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
               URL: covertprestige.info/bugs/webkit-html-pseudo/
        OS/Version: Mac OS X 10.7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: florent at fvsch.com


Created an attachment (id=109134)
 --> (https://bugs.webkit.org/attachment.cgi?id=109134&action=review)
ZIP with 3 HTML pages showing the issue

The following CSS will make the BODY content invisible in WebKit:

html::before {
  content: "";
  position: absolute;
}

Conditions for the bug:
- A rendered html::before or html::after pseudo-element.
- With absolute or fixed position.

Effects:
- The pseudo-element seems to take the full width and height of the viewport (ignoring width and height properties).
- All page content becomes invisible but is still there and can still be clicked or inspected.

I've prepared a small test case (3 pages, attached).
This problem affects current WebKit nightlies (OSX), Chrome 14 et 12 (OSX, Windows), Safari 5.1 (OSX, Windows), but not Safari 5.0 and 4.0 (Windows). Non-WebKit browsers are not affected.

This might be related to, or indeed a duplicate of, Bug 62862.

-- 
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