ppk, to CSS
@ppk@front-end.social avatar

So I wrote a quick outline of which I need to treat, and which chapters the Selector part should have.

https://quirksmode.org/booktests/SELECTORS-notes-short.txt

Would be much appreciated if you could take a quick look, especially to see if I forget any important selectors.

(I mean, there are SO many pseudo-classes nowadays.)

nhoizey, to accessibility French
@nhoizey@mamot.fr avatar
amxmln, to CSS
@amxmln@mastodon.design avatar

Wait, you can use currentColorin color-mix()? 😳

This is awesome! 😀

mia, to random
@mia@front-end.social avatar

Sometimes dvh units are what you want - but I actually expect to use svh the most in my work.

Dynamic units for a hero image or similar will make your page jump around on mobile. That's not great. And in most cases, something like that doesn't have to be exact-viewport-height-at-all-times.

I'd only use dvh for something actually positioned at the bottom of the viewport.

keithjgrant, to CSS
@keithjgrant@front-end.social avatar

Does anybody know what color space/interpolation method gradients use when you don't specify one?

I can't find any documentation that specifies, including the spec. As far as I can tell testing, the behavior doesn't quite match any of the color spaces I can specify (it's closest to oklch or maybe xyz-d50, but not exact)

cc @argyleink

mason, to fediverse Polish
@mason@f-t.net.pl avatar

Dobra, czy jest tu jakiś magik od i ? Potrzebna mi !

Próbuję sobie ostylować domyślny wygląd webowy i o ile w przypadku odpowiedzi na posty - sobie poradziłem, tak za cholerę nie mogę odnaleźć klasy, która odpowiadałaby za podbicia.

Albo coś mnie zaślepiło, albo treść podbicia nie jest zamknięta w żadnej klasie?

5t3ph, to webdev
@5t3ph@front-end.social avatar

What's always been "weird" to you about ? As in, how something works? Less intuitive aspects? Stuff that trips you up even though you "know" how it works?

This is not a gripe thread, I'm looking for constructive input, thanks!

mattwilcox, to CSS
@mattwilcox@mstdn.social avatar

Hitting some "fun glitches" with page transitions that seem to be related in some way to dynamic injection of classes on the transferring elements. For example, my header I'm expecting to "not animate" because:

html {  
 view-transition-name: none;  
}  
header {  
 view-transition-name: site-header;  
}  

But instead it's glitching a stretched partially styled version and blending between.

New tech... "is it a bug, is it me doing something weird?"

ppk, (edited ) to CSS
@ppk@front-end.social avatar

Momentous decision taken: the book will copy W3C and only treat features that are interoperably implemented in at least two browsers - and not behind flags, either.

So right now no masonry, no anchored position.

However, I will review the situation when I'm writing draft 2.

mahryekuh, to javascript
@mahryekuh@fosstodon.org avatar

💡 Tip: you can use window.matchMedia() in to perform media queries similar to .

I use it to determine whether animations should fire, an interesting new thing I learned in the project I'm working on.

For example, check for the following media to toggle animations per the user's preferences:

  • (prefers-reduced-motion: reduce)
  • (update: slow)
  • print

I hope to write a blog article with more details once the project is up.

https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia

schizanon, to webdev

I've decided to build one of my long-time pet-projects just to hone my skills a little.

I've been working on sites professionally for about 8 years so I think I should stick to that.

My most recent job was on a app that used so I think I'll use those too.

seems like a good place to host those things.

The idea is like Foursquare/Swarm, but on !

Wish me luck!

matthiasott, to webdev
@matthiasott@mastodon.social avatar

What is your approach when using logical properties in ? They have broad browser support now, but supporting browsers that are more than two years old by prefixing and not using shorthand properties seems reasonable, right? 🤔
I mean, 91.58 % globally are not 98.34 %… 😉
https://caniuse.com/css-logical-props

keithjgrant, to webdev
@keithjgrant@front-end.social avatar

📝 New post: Web components aren’t components.

…Where I try to make sense of thoughts that have been swirling around my head for years now

https://keithjgrant.com/posts/2023/07/web-components-arent-components/

mjgardner, to webdev
@mjgardner@social.sdf.org avatar

Ouch @gruber. “Browser rendering is surprisingly resource-intensive — partially because modern , , and are remarkably complex, and partially because most web are remarkably untalented and careless .” https://mastodon.social/@daringfireball/111365357800033072

Glad I’m mostly . We sweat the cycles because they’re on our dime.

FYI I’ve done since before lured @BrendanEich with the false promise to “put in the browser.”

joelanman, (edited ) to CSS
@joelanman@hachyderm.io avatar

Edit: I needed position fixed instead, see thread

I must be missing something simple, but I can't get position sticky to work, applied to a footer. It just displays as default at the top, both Safari and Chrome - help?

css:

footer { position: sticky; bottom: 0; }  

html:

<body>  
 <footer>test</footer>  
</body>  

matthiasott, to webdev
@matthiasott@mastodon.social avatar
stevenwoodson, to CSS
@stevenwoodson@mastodon.online avatar

1/4
When it comes to web dev, I'm a huge fan of finding simple solutions that leverage fundamental web technologies.

Here are two excellent articles I've stumbled across recently, one explaining 5 new CSS properties and the other about structuring vanilla JavaScript, both very much highlighting some great web fundamentals.

Coincidentally, both were written by a Chris that I admire so that's neat.

#CSS
#FrontEndDeveloper
#JavaScript
#SoftwareEngineering
#WebDevelopment

smallcircles, to webdev
@smallcircles@social.coop avatar

"Towards a Modern Web Stack"

This is interesting.

Ian "Hixie" Hickson editor of HTML specification for 10 years, in January 2023 criticises the use of , , for intricate applications, and proposes an alternate approach based on 4 lower-level :

  1. (for )

Gets criticised for it and defends his proposal on HN: https://news.ycombinator.com/item?id=34612696

(Correct link to the Google Doc is in bottom comment by Hixie)

knowler, to CSS

I know that #CSS style queries probably need a container to avoid looping situations, but couldn’t there just be some rule that you can’t style the property being queried? I guess that still wouldn’t solve the problem since you could have multiple style queries affecting each other. Seems like a solvable problem though with some rules, like maybe style queries don’t run for properties that are the result of another style query?

cory, to 11ty
@cory@social.lol avatar
carlton, to CSS
@carlton@fosstodon.org avatar

I keep seeing all these luminaries arguing that you shouldn’t use utility-first tools, and REDACTED in particular.

Yet to see one address how useful they are for the many, or why that might be.

Plenty of moral aspersions. Unwillingness to learn and so on. Couldn’t possibly be anything about the tech.

Finally twigged, it’s the Frontend version of “You mustn’t use an ORM”. Exact same vibe.

artlung, to CSS
@artlung@xoxo.zone avatar

New Toy shows off the "angle," optional first parameter to show what the various angles can do. Feel free to fork and play with it. I so so love CSS gradients after being terrified of them for, uh, a decade. https://codepen.io/artlung/full/qBwOYeJ

css, to CSS
@css@front-end.social avatar

Looking for new ideas for my CSS Generators website.

https://css-generators.com

What kind of CSS code would you like to get with one click? 🤔

Shapes, Components, Color stuff, Complex formulas, etc. Let me know 👇

SaraSoueidan, to accessibility
@SaraSoueidan@front-end.social avatar

If you were in the audience, what would you hope to learn from an accessibility talk at a CSS conference?

@cssdayconf

scottjenson, to CSS
@scottjenson@social.coop avatar

challenge!

<body>
<div class="container">
<div class="item">item 1</div>
<div class="item">item 2</div>
<div class="item">item 3</div>
<div class="item hidden">item 4</div>
</div>
</body>

where .hidden { display: none }

Question: Can I use item:last-child {} to stylize item 3?

Apparently :last-child targets the last child in the DOM, not the last visible child. (this means hidden item 4 is styled.

Is there any way to do this using only CSS?

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