[Webkit-unassigned] [Bug 71621] New: [REGRESSION] generated content based on attribute selectors is incorrectly applied with inline elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 5 19:58:09 PDT 2011


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

           Summary: [REGRESSION] generated content based on attribute
                    selectors is incorrectly applied with inline elements
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: phiw at l-c-n.com


Created an attachment (id=113777)
 --> (https://bugs.webkit.org/attachment.cgi?id=113777&action=review)
test case

Tested on OS X 10.6.8

Given this rule set:
a[href$=".pdf"]::after {
margin: 0 0 0 3px;
padding: 0 1px;
content: '[PDF]';
}

The generated content is applied to ALL links, if the 1st link is a link to a PDF file. If the PDF link is not the 1st one in the block, then the generated content is not applied.

Inspecting the links shows that the generated content is applied correctly. An now for the most weird part - inspecting the link makes the GC being painted correctly…

STR:
1. view test case, notice that all links in parag. 1 and 2 have [PDF] appended (the second ones should not).
2. Inspect the second links - the Inspector reports the styling correctly (no GC), and suddenly the link has no [PDF] appended.


This is a regression from Safari 5.1.1 (works correcly), and goes back at least to r96897. Chrome dev channel (17.0.928.0 dev) exhibits the same issue (not unexpectedly) but Chrome release (15.0.874.106) works.

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