Skip to content

Instantly share code, notes, and snippets.

View ecommpro's full-sized avatar
💭
🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀

EcommPro ecommpro

💭
🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
View GitHub Profile
@davatron5000
davatron5000 / the-state-of-element-container-queries.md
Last active August 23, 2023 15:43
The State of Element/Container Queries

The State of Container Queries

tl;dr Developers would like the idea to style components based on a parent's width rather than depend solely on the viewport media query. This would allow modular components to style themselves while being agnostic to the viewport.

There is currently a lot of developer interest in getting a feature like Container Queries (née "Element Queryies") shipped in a browser.

2-min Catchup

Here are official'ish documents to outline the developer community's desires.

@Ocramius
Ocramius / README.md
Last active January 22, 2024 00:09
`__invoke` vs `function` vs `Closure`
@bitlyfied
bitlyfied / curry.php
Created January 30, 2011 19:31
Experiment with functional patterns in PHP
<?php
function curry() {
$curryArgs = func_get_args();
return function() use ($curryArgs){
$function = array_shift($curryArgs);
$mergedArgs = array_merge($curryArgs, func_get_args());
return call_user_func_array($function, $mergedArgs);
};
}