Eric Portis

Results 124 comments of Eric Portis

`max-density` is cool, but I think we need to think about who gets to make max-useful-resolution decisions, and why... Initial conversations around max-useful-resolutions were predicated on `srcset` selection being a...

Are responsive [sidenotes](https://www.gwern.net/Sidenotes) a possible use case? They're far too hard, with the CSS we have today.

@melanierichards: > Thanks for the sidenotes use case! From what I observe: > > 1. The sidenote's start position is to the right of the element (in an LTR language,...

@7iomka You could break the loop by giving the `btn` an explicit width, rather than having its width shrink-to-fit the size of its descendants: https://codepen.io/eeeps/pen/NYzYdm The loop happens because you're...

@7iomka maybe a job for http://fittextjs.com ? Fundamentally, if you're trying to query AND change the same thing (here, the width of the text), you're going to have looping problems.

In slapdash testing that I conducted over the summer (so, please note that these tests use months-old versions of the plugins), css-element-queries could just *barely* handle 6 nested ``s (~25s...

@marcj – I’ve deleted the second link/comparison from my comment. I don’t work on a polyfill and don’t want to push any library over any other. I’m pretty embarrassed to...

What happens when ```html p { font-size: 100px; } @media (min-height: 50px) { p { font-size: 1px; } } hi ``` gets iframed into ```html iframe { height: max-content; }...

I wonder if the output here should be "Try using `sizes="0px"`", or if the bookmarklet can be even smarter about `display: none`’d images than that (skip them?).

Sounds good to me. There are good use cases for having the image preloaded but initially invisible -- but most of the time, best practice is going to be to...