-
+
-
Media queries allow authors to vary the layout of their page based on the dimensions of the viewport. Element queries will allow developers to vary the layout within specific elements on a page (and their children) based on the dimensions of the parent elements themselves, allowing for much more modular approaches to layout.
Work on element queries has just begun; we are still collecting use cases and working to understand technical constraints. Please contribute!
+
Media queries allow authors to vary the layout of their page based on the dimensions of the viewport. Container queries will allow developers to vary the layout within specific elements on a page (and their children) based on the dimensions of parent containers, allowing for much more modular approaches to layout.
Work on container queries has just begun; we are still collecting use cases and working to understand technical constraints. Please contribute!
+
-
@@ -92,27 +92,27 @@
-
+
The picture
element contains any number of child source
elements and one img
.
When this pattern is used with the media
attribute on source
elements, it allows developers to mandate that user agents must load specific sources when certain media conditions are met. This allows developers to specify alternate aspect ratios to align with layoutchanges, or alternate framing of image content for optimally highlighting the subject of the image at different sizes.
When picture
and source
are used with the type
attribute, authors may supply the same image in alternate formats to be requested only by browsers that support said format.
-
+
@@ -148,42 +148,42 @@
-
+
@@ -198,42 +198,42 @@