/
githubmirror
/
brackets
Обзор
Документация
Войти
/
githubmirror
/
brackets
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/spec/CSSUtils-test-files/embedded.html
43 строки
1 KB
Randy Edmunds
add unit test for finding embedded style blocks
10 мар 2013, 02:09
10 мар 2013, 02:09
36dccec
Код
Авторство
О чём код?
<!doctype html> <html> <head> <!-- This page has the string "style" wherever it seemed valid --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> div { margin: 0; padding: 0; } .foo { color: #f00; } #myDiv { display: block; }</style> <title>embedded-styles test page</title> <style type="text/css"> pre { display: block; padding: 8.5px; margin: 0 0 9px; font-size: 12px; line-height: 18px; background-color: #f5f5f5; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; white-space: pre; white-space: pre-wrap; word-break: break-all; } </style> <link href="bootstrap.css" rel="stylesheet" type="text/css" /> <style> footer .message #text { color: #369; } .style:hover { color: #963; } div[data-style='style'] { background-color: tan; content: "style"; } </style><style> body { color: red; } </style> </head> <body> <!-- should not find <style> tags in comments --> <p>Should not find encoded <style> tag</p> </body> </html>