Bug 50020

Summary: Style not applied on parenting data attribute
Product: WebKit Reporter: Jeremy Selier <jerem.selier>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: bfulgham, mathias, paulirish
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.6   
URL: http://www.jeremyselier.com
Attachments:
Description Flags
Web page that reproduce the issue none

Description Jeremy Selier 2010-11-24 05:26:36 PST
Created attachment 74750 [details]
Web page that reproduce the issue

When I add a data attribute to an element via a click event and that I've set a style rule that apply based on this data attribute. On any webkit version I've tried (Safari/Chromium included), the style is not applied.
This works on Firefox 4b7.

Not sure my explanation is clear enough so here's a test page to reproduce it: http://www.jeremyselier.com/s/bug/css-datavar
Comment 1 Mathias Bynens 2010-11-24 06:30:13 PST
Not just data attributes — looks like *any* attributes that are toggled/changed via JavaScript don’t cause a repaint.
Comment 2 Brent Fulgham 2022-07-12 13:58:28 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.