Axel Rauschmayer on Nostr: I used (a)import in the middle of a CSS file (not at the top). Worked in Chrome but ...
I used (a)import in the middle of a CSS file (not at the top). Worked in Chrome but not in Safari.
MDN says: “An (a)import rule must be defined at the top of the stylesheet, before any other at-rule (except (a)charset and (a)layer) and style declarations, or it will be ignored.”
https://developer.mozilla.org/en-US/docs/Web/CSS/@importPublished at
2024-06-21 16:23:50Event JSON
{
"id": "2fa278e0e7b9c2e4c547ce68c61f8338cae67526cbed5b7b2d32ec340b0b6478",
"pubkey": "7a7a0978cc46ef7fd548fb125e51c04de7d4ca639417a21b56aa95e3711c0b38",
"created_at": 1718987030,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@rauschma/112655534045832158",
"web"
],
[
"proxy",
"https://fosstodon.org/users/rauschma/statuses/112655534045832158",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/rauschma/statuses/112655534045832158",
"pink.momostr"
]
],
"content": "I used (a)import in the middle of a CSS file (not at the top). Worked in Chrome but not in Safari.\n\nMDN says: “An (a)import rule must be defined at the top of the stylesheet, before any other at-rule (except (a)charset and (a)layer) and style declarations, or it will be ignored.”\nhttps://developer.mozilla.org/en-US/docs/Web/CSS/@import",
"sig": "20015a94995517cb7f9fc62fe2e619b3e1f6a96b9dc5603ad2d3cdd577c9b1a5fa6e1b26101c96da69db61379fa285b71cc8ef1e72c6e4a4ae6d70d1a67fa9d5"
}