[Webkit-unassigned] [Bug 22127] New: Changing className causes :before content to be rendered split from its element content

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 7 07:17:33 PST 2008


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

           Summary: Changing className causes :before content to be rendered
                    split from its element content
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: Macintosh
               URL: http://www.markjudd.com/before.html
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mark_judd at mac.com


I'm trying to change the "prefix" content of a DIV by changing its className
and leveraging the :before pseudo-element.

.stateOne:before { content: "prefix1" }
.stateTwo:before { content: "prefix2" }

In theory, toggling the className of a DIV between stateOne and stateTwo should
just change the prefix string being used.  Unfortunately, in the case where the
DIV contains further inner DIVs, the :before content and the DIV content become
rendered on separate lines.

Check out the URL noted here for an encapsulated test case.


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



More information about the webkit-unassigned mailing list