-
Notifications
You must be signed in to change notification settings - Fork 244
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hello!
Parcel CSS combining text-decoration properties is giving me some trouble in Safari.
Given:
text-decoration: underline;
text-decoration-thickness: 8%;
text-underline-offset: 1px;
This is combined into:
text-underline-offset: 1px;
text-decoration: underline 8%; // <-- fails to be interpreted in unsupported browsers
Safari 15.4 supports text-decoration-thickness in percent, but Safari 15.3 does not. Since Parcel combines this into a shorthand statement it causes the entire CSS-line to short circut, and I'm left with no text-decoration at all. I tried this fallback:
text-decoration: underline;
text-decoration-thickness: 1px; // Safari supports this
text-decoration-thickness: 8%;
text-underline-offset: 1px;
...thinking that maybe Safari would interpret "1px" and ingore "8%". But no. Parcel CSS combines this, and renders my fallback useless. It's combined into:
text-underline-offset: 1px;
text-decoration: underline 8%; // fails
I simply want text-decoration: underline to be preserved. Is this possible?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working