/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/html/text_deco_simple.html
46 строк
2 KB
Martin Robinson
layout: Support `wavy` and `double` for `text-decoration-line` (#37079)
22 май 2025, 20:42
Не верифицирован
22 май 2025, 20:42
7f0cebd
Код
Авторство
О чём код?
<!DOCTYPE html> <html> <body> <style> p { font-family: "Times New Roman"; background: lightgrey; padding: 5px; margin: 5px; } </style> <p style="text-decoration: none blue;">text-decoration: </p> <p style="text-decoration: underline blue;">text-decoration: </p> <p style="text-decoration: overline blue;">text-decoration: </p> <p style="text-decoration: line-through blue;">text-decoration: </p> <p style="text-decoration: underline double blue;">text-decoration: </p> <p style="text-decoration: overline double blue;">text-decoration: </p> <p style="text-decoration: line-through double blue;">text-decoration: </p> <p style="text-decoration: underline wavy blue;">text-decoration: </p> <p style="text-decoration: overline wavy blue;">text-decoration: </p> <p style="text-decoration: line-through wavy blue;">text-decoration: </p> <p style="text-decoration: underline dashed blue;">text-decoration: </p> <p style="text-decoration: overline dashed blue;">text-decoration: </p> <p style="text-decoration: line-through dashed blue;">text-decoration: </p> <p style="text-decoration: underline dotted blue;">text-decoration: </p> <p style="text-decoration: overline dotted blue;">text-decoration: </p> <p style="text-decoration: line-through dotted blue;">text-decoration: </p> <script> for (paragraph of document.querySelectorAll("p")) { paragraph.innerText += " " + getComputedStyle(paragraph).textDecorationLine + " " + getComputedStyle(paragraph).textDecorationStyle; } </script> </body> </html>