Bug 786946. Don't propagate text-decoration to <select> by default. r=dbaron

--HG--
rename : layout/reftests/text-decoration/underline-button-1-ref.html => layout/reftests/text-decoration/underline-select-1-ref.html
rename : layout/reftests/text-decoration/underline-button-1.html => layout/reftests/text-decoration/underline-select-1.html
rename : layout/reftests/text-decoration/underline-button-1-ref.html => layout/reftests/text-decoration/underline-select-2-ref.html
rename : layout/reftests/text-decoration/underline-button-1.html => layout/reftests/text-decoration/underline-select-2.html
This commit is contained in:
Boris Zbarsky 2012-09-07 10:51:34 -04:00
Родитель cdbc9ea15d
Коммит 583e8302be
6 изменённых файлов: 38 добавлений и 1 удалений

Просмотреть файл

@ -101,4 +101,5 @@ fails == underline-block-propagation-2-quirks.html underline-block-propagation-2
== 676538-1.html 676538-1-ref.html
== underline-button-1.html underline-button-1-ref.html
fails-if(winWidget) == underline-button-2.html underline-button-2-ref.html # On windows, the underline spacing inside the button is different
== underline-select-1.html underline-select-1-ref.html
== underline-select-2.html underline-select-2-ref.html

Просмотреть файл

@ -0,0 +1,9 @@
<!doctype html>
<html>
<body>
<span style="text-decoration: underline">
Some</span><select><option>text</option></select><span
style="text-decoration: underline">and a button
</span>
</body>
</html>

Просмотреть файл

@ -0,0 +1,8 @@
<!doctype html>
<html>
<body>
<span style="text-decoration: underline">
Some<select><option>text</option></select>and a button
</span>
</body>
</html>

Просмотреть файл

@ -0,0 +1,9 @@
<!doctype html>
<html>
<body>
<span style="text-decoration: underline">
Some</span><select size="5"><option>text</option></select><span
style="text-decoration: underline">and a button
</span>
</body>
</html>

Просмотреть файл

@ -0,0 +1,8 @@
<!doctype html>
<html>
<body>
<span style="text-decoration: underline">
Some<select size="5"><option>text</option></select>and a button
</span>
</body>
</html>

Просмотреть файл

@ -196,6 +196,8 @@ select {
text-indent: 0;
overflow: -moz-hidden-unscrollable;
text-shadow: none;
/* No text-decoration reaching inside, by default */
display: inline-block;
}
/* Need the "select[size][multiple]" selector to override the settings on