/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/minimize-environment/page.html
20 строк
734 B
Alexander Akait
feat(css): merge a shorthand's longhands where the result is provably identical (#21605)
05 авг 2026, 00:44
Не верифицирован
05 авг 2026, 00:44
93102a3
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="en"> <head> <style> /* the keyword stays a keyword */ .t01 { background-color: rgba(0, 0, 0, 0) } /* the four longhands stay longhands: `inset` is CSS Position 3 */ .t02 { top: 1px; right: 2px; bottom: 1px; left: 2px } /* the media feature keeps the `min-` spelling */ @media (min-width: 1200px) { .t03 { color: red } } /* rounding is not gated, so it still applies; the length keeps its unit because that rewrite is off for every target, not only a gated one */ .t04 { width: 16px; height: 33.33333333% } </style> </head> <body> <p style="color: rgba(0, 0, 0, 0)">a style attribute is gated too</p> <p style="top: 1px; right: 2px; bottom: 1px; left: 2px">...for every gate</p> </body> </html>