зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1524897 - drop line-height:normal rule in html.css for <sub> and <sup> for interop. r=emilio
remove line-height:normal rule from html.css for <sub> and <sup> for interop. Differential Revision: https://phabricator.services.mozilla.com/D18636 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7be13dade4
Коммит
6f9de091e7
|
@ -360,3 +360,6 @@ random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == segment-break-transforma
|
|||
== letter-spacing-nolig-2.html letter-spacing-nolig-2.html
|
||||
|
||||
== ethiopic-wordspace.html ethiopic-wordspace-ref.html
|
||||
|
||||
# sub and sup elements should be influenced by their container's line-height - bug 1524897
|
||||
== sub-sup-and-line-height.html sub-sup-and-line-height-ref.html
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
p { line-height: 44px; }
|
||||
sub, sup { vertical-align: top; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test<sup style="line-height: inherit">Test</sup><sub style="line-height: inherit">Test</sub></p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
p { line-height: 44px; }
|
||||
sub, sup { vertical-align: top; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test<sup>Test</sup><sub>Test</sub></p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -544,13 +544,11 @@ small {
|
|||
sub {
|
||||
vertical-align: sub;
|
||||
font-size: smaller;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
sup {
|
||||
vertical-align: super;
|
||||
font-size: smaller;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
nobr {
|
||||
|
|
Загрузка…
Ссылка в новой задаче