@csscade@mastodon.social avatar

csscade

@csscade@mastodon.social

A blog about the past, present, and future of CSS by @fonts.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

csscade, to random
@csscade@mastodon.social avatar

Okay, so when making a popover I think the logic should go something like this:

  1. Use title if the content of the popover is just text.

  2. Use the popover attribute if the content is more than plain text and like a menu of options or something.

  3. Use <dialog> if you need to force the user to make a decision or block all other interactions on the page.

https://www.csscade.com/popover-api

csscade, to random
@csscade@mastodon.social avatar

Did ya know that it’s possible to style an element if it’s overflowing the parent element? I certainly didn’t!

.parent {  
 max-width: 300px;  
}

.child {  
 width: 500px;

 @media@mastodon.social (overflow-inline) {  
 background: yellow;  
 }  
}  

https://www.csscade.com/cool-queries

csscade,
@csscade@mastodon.social avatar

@sarajw I believe so! It almost sounds too good to be true huh?

csscade,
@csscade@mastodon.social avatar

@sarajw @Kilian oh that’s a great example! The spec is super unclear about how you’re actually supposed to use this thing…

csscade,
@csscade@mastodon.social avatar

@Kilian @sarajw ah this is an extreme bummer! I updated the original post and blog entry – so thx for the clarification! Now I’m just gonna brood about this all day.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • GTA5RPClips
  • provamag3
  • InstantRegret
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • lostlight
  • All magazines