Home » Development » Javascript » Polyfill
„Element queries are a new way of thinking about responsive web design where the responsive conditions apply to elements on the page instead of the width or height of the browser. Unlike CSS @media queries, @element Queries are aware of more than just the width and height of the browser, you can write responsive conditions for a number of different situations like how many characters of text or child elements an element contains. Another concept that element queries brings to CSS is the idea of ‘scoping’ your styles to one element in the same way that JavaScript functions define a new scope for the variables they contain.“
min-width
max-width
min-height
max-height
min-characters
max-characters
min-lines
max-lines
min-children
max-children
min-scroll-y
max-scroll-y
min-scroll-x
max-scroll-x
orientation
min-aspect-ratio
max-aspect-ratio
$this
$parent
$root
$prev
$next
Element Queries
jquery.Stacky makes it easy to create UIs with panels that open horizontally using jQuery.
GitHub
„The picture element, srcset and sizes attributes, and associated features allow web developers to deliver an appropriate image to every user depending on a variety of conditions like screen size, viewport size, screen resolution, and more. Picturefill enables support for the picture element and associated features in browsers that do not yet support them, so you can start using them today!“
Picturefill @ Github