wpt icon indicating copy to clipboard operation
wpt copied to clipboard

add tests for constructed stylesheet invalidation

Open keithamus opened this issue 1 year ago • 3 comments

When experimenting with constructed CSSStyleSheets I noticed they don't always invalidate properly in Safari, so here are some tests that assert on style invalidation in various forms.

keithamus avatar Feb 19 '24 15:02 keithamus

In Safari, this issue exists when working with a StylePropertyMap as well (i.e. the styleMap property for the CSSStyleRule instead of style using a slightly different API), would it make sense to add the tests for that here too?

knowler avatar Feb 19 '24 16:02 knowler

Is there a WebKit bug filed?

nt1m avatar Feb 19 '24 16:02 nt1m

Just filed https://bugs.webkit.org/show_bug.cgi?id=269717

keithamus avatar Feb 19 '24 17:02 keithamus

LGTM with a few comments (although I'd be interested to see the results for Chrome and Firefox, but they don't seem to be available yet)

I tested locally and Chrome & Firefox both pass all 3. Safari fails the third, for me.

keithamus avatar Feb 21 '24 12:02 keithamus