khanglol

@khanglol.bsky.social

A while back, I tried to make my own text-highlighting function that works on real and complex DOM elements. I wanted Claude to make it for me, but the code literally didn't work at all, so I ended up manually coding & learning the Selection API and TreeWalker😵‍💫Half-works with browser inconsistencies

On #Svelte, I wish there was a way to scope styles to a {#snippet} itself. Of course, once something gets large enough, it's time to split stuff into multiple files. But there exists an awkward middle ground where it would be nice if the styles were closer to snippet markup

BildBild

I hate when people vibecode graphics SOOOOOOOOOOOOOOOOOO much No, you cannot design graphics the same way you design Web UI YOUR VIDEOS AND IMAGES DON'T TAKE UP THE ENTIRE SCREEN!!!!!!!!!!!!!!!!!!!!! I CANT READ YOUR SMALL-ASS FONT-SIZES!!!!!!!!!!!!!!!!!!!!!!!😡 #CSS #WebDev

I should probably make my own personal site and have a blog there. I have a lot of weird #CSS opinions but I don't think anyone would read it, so it may end up being another design exercise. Currently occupied with one passion project right now, so after I finish it I'll make my site, woo #WebDev

Today I learned, that if a url ends with ".mov", the first item that appears in Safari's right-click menu is "Open with Quicktime Player". I totally didn't just open someone's profile with Quicktime...😓

I design stuff by manually coding it and iterating on what I imagine in head and what I like in progress. I love grid-template-areas a lot, because it makes implementation super easy. Grid is amazing for layout! I only use Flexbox for flex-wrap lol (which can do layout for multi-sized items) #CSS

The way #CSS work in native #Svelte sucks. Can't style children components in parent!!! I use Svelte, because rawdogging HTML, CSS, and JS was a mistake; I ended up reinventing JSX, reactivity, et al... Now, I know regular CSS is quite limiting too. The next projects I will try PandaCSS

It seems the country from my IP Address is blocked from accessing CodePens entirely. I need Browserling or a VPN to access the site, which is somewhat annoying. #CSS #WebDev Are there really no other CodePen-like alternatives people can use??

Are there more optimization methods to reduce resources used by the compositor thread? I know I can change z-indexes to shave off mbs used from unnecessary promotions, or replace some <span>s with pseudo-elements to reduce the weight of promotions #CSS #WebDev

Disappointed with #CSS anchor-positioning considering `@position-try` has a restrictive set of property descriptors. I wanted to make a pop-in effect change its `transform-origin` based on which `position-area` it was in, but unfortunately not possible + `anchor()` is not valid in `transform-origin`

i love how in Safari, `ex` and `ch` gently grow/shrink in absolute size the more your browser zooms. This makes layout and elements ever so slightly misaligned, stretches paragraphs at a length it shouldn't. And, ultimately trashes your entire #CSS, forcing you to rewrite everything using `em`❤️

Dear God, how in the world will Safari 27's describe-an-extension-and-itll-be-created even work. It has to be really limited, like cant-modify-pages limited or it'll 100% fail to deal with the nonsense DOM rendering and #CSS hell webpages tend to have. All they showed is that it adds to the toolbar😬

Has anyone tried replacing all `@media` size queries with a `@container` query equivalent? I did two small experiments and personally it isn't that hard to deal with the side effects these days. `@container` is much more pleasant and easier to reason about than `@media` tbh #CSS #WebDev #Frontend

browser inconsistences i encountered ☹ #CSS • outlines on grid items broken on Chrome (inline and block size are off 1px) • text-align on :first-line only working on Safari • inline images adding mysterious empty space on Safari • inline-size containment computing to 0px inline for grid item on iOS