Bug 290125 - Adjust first-letter reftests to be robust against change to floating-firstletter metrics. r=emilio

And fix the overflow-float-overflow.html test to do a != comparison, as indicated by the
-notref naming of the reference file.

No behavior change; this is just adjusting a couple of old reftests so they will not be
affected by the exact detail of how we wrap around a floating first-letter (which is
incidental to what they were aiming to test).

Differential Revision: https://phabricator.services.mozilla.com/D165007
This commit is contained in:
Jonathan Kew 2022-12-20 07:55:24 +00:00
Родитель a57a65c6bc
Коммит 9f96171c3e
5 изменённых файлов: 6 добавлений и 3 удалений

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

@ -4,6 +4,7 @@
<style type="text/css">
p:first-letter {
float: left;
color: red;
}
</style>
<title>a first-letter testcase</title>

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

@ -4,6 +4,7 @@
<style type="text/css">
p:first-letter {
float: left;
color: red;
}
</style>
<title>a first-letter testcase</title>

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

@ -5,9 +5,10 @@ div {
height: 3em; width: 8em;
padding: 3px;
background: yellow; color: black;
overflow: hidden;
line-height: 1.0;
}
div::first-letter { font-size: 4em; float: left; }
div::first-letter { font-size: 6em; float: left; }
</style>

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

@ -8,7 +8,7 @@ div {
overflow: auto;
line-height: 1.0;
}
div::first-letter { font-size: 4em; float: left; }
div::first-letter { font-size: 6em; float: left; }
</style>

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

@ -70,7 +70,7 @@ random-if(gtkWidget) random-if(winWidget&&!d2d) == font-text-styles-floater.html
== inline-height-empty.html inline-height-empty-ref.html
== indic-clusters-1.html indic-clusters-1-ref.html
== overflow-float-nooverflow.html overflow-float-nooverflow-ref.html
== overflow-float-overflow.html overflow-float-overflow-notref.html
!= overflow-float-overflow.html overflow-float-overflow-notref.html
== overflow-inline-nooverflow.html overflow-inline-nooverflow-ref.html
!= overflow-inline-overflow.html overflow-inline-overflow-notref.html
== overflow-inline-overflow.html overflow-inline-overflow-ref.html