Ghi chú phát hành được viết bằng tiếng Anh.
Aspect-ratio boxes hold their shape, and centred CTAs centre
Two layout fixes for the shapes modern pages are built from. A box with aspect-ratio (a 16:9 video embed, a 1:1 square tile) that took its width from the page was ignoring the ratio and collapsing to the height of its content - so hero banners became thin strips and grids of 'square' tiles came out as bars. The height is now derived from the width and ratio, for plain blocks, flex containers and grid cells alike. And an inline button or link centred under a headline now actually centres instead of hugging the left edge. Both found by rendering real pages and looking at them.
Những gì đã thay đổi
3 thay đổi- Hiển thịaspect-ratio boxes are the right shape. A box that sets aspect-ratio and takes its width from its container now works out its height from the width and the ratio, instead of collapsing to its content - so a 16:9 hero is 16:9 and a 1:1 tile is square, whether it is a plain block, a flex container, or a grid cell.
- Hiển thịCentred call-to-action buttons centre. An inline button or link placed among headings and paragraphs under text-align:center used to hug the left edge, because the invisible box the engine wraps such content in dropped the alignment; it now inherits it and centres as intended.
- Hiển thịMore real pages render right. These came out of rendering full pages - a landing page, a modern-CSS showcase - and inspecting the pixels, which is now a standard part of how layout and paint changes get verified here.


