Bug 50020 - Style not applied on parenting data attribute
Summary: Style not applied on parenting data attribute
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Normal
Assignee: Nobody
URL: http://www.jeremyselier.com
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 05:26 PST by Jeremy Selier
Modified: 2022-07-12 13:58 PDT (History)
3 users (show)

See Also:


Attachments
Web page that reproduce the issue (45 bytes, text/plain)
2010-11-24 05:26 PST, Jeremy Selier
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.