-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
First!!
Let's assume you can do this: window.CSS && window.CSS.supports("-webkit-initial-letter", "1");
I suggest you need two flags:
A. onlyExecuteIfNativeIsMissing (or something like that) where the JS will early return if the test above returned false. This would allow an author to write CSS rules that use initial-letter as well as include dropcap.js and not have them conflict.
B. preferNativeImplementation where dropcap.js would use initial-letter rather than setting the styles on the objects. This is actually quite annoying to do thanks to the 💩 that is the CSS OM, where you can't create a pseudo-style directly, but you have to create a whole new style rule, etc.
Metadata
Metadata
Assignees
Labels
No labels