What can cause this problem with HTML / CSS rendering in Firefox?

Styles:

h2 {
    color: #71D0FF;
    font-size: 11px;
    font-weight: bold;
    margin: 0px 0px 5px 0px;
}
a.box {
    color: #FFFFFF !important;
    cursor: pointer;
    display: block;
    padding: 10px;
    text-align: justify;
}
a.box:hover {
    background-color: #0C0C0C;
}
a.box span.down {
    display: block;
    color: #D04242;
    float: right;
    font-size: 11px;
    margin-left: 5px;
}
a.box span.up {
    display: block;
    color: #71D013;
    float: right;
    font-size: 11px;
}
span.noob {
    color: #FFA142;
}
span.pro {
    color: #A142A1;
}

HTML (this is mostly repeated for every link):

<a href="/library/blaze" class="box">
<span class="down">-0</span>
<span class="up">+0</span>
<h2><span class="noob">NOOB</span> BLAZE</h2>
HAS CREATED 0 MAPS, WON 0 BATTLES, AND LOST 0 MAPS
</a>

What I don't understand is why sometimes this sometimes happens in Firefox. Sometimes it appears, as expected, and sometimes it appears in this strange format, as shown here:

Example

I never had what it was before, does anyone know what causes it? Does it even do it for someone else? As I said, sometimes it loads just fine (exactly the same HTML, CSS and all), and sometimes not. It seems random. It loads just fine in IE without any weird issues.

+3
source share
6 answers

. FF3.6, .

, , Firefox, - . " " Firebug, , DOM . Firebug _moz-rs-heading , .

W3C , .

+4

, , .

(h2) (a). , , . , , , .

h2 CSS, , .

+4

.

http://www.jameshughbanks.com/

. , ( ( ) ( ) .

, , -, " " "", , . , . ( 2-, ( H2, h2 .

, , , , .

- - firefox, , . , IE, Opera Chrome.

, , , html5, ( javascript/etc) . Firefox , , - , - . , , , , , .

+2

Safari, Chrome Firefox 3.5.

. . ?

Safari - ( FF) .

N00B BLAZE , , ?

0

Firefox CSS, , , . . ?

0

, FF3.6. Firebug, HTML, , , , <a>, , <span>. , - HTML , ?

0

Source: https://habr.com/ru/post/1733444/


All Articles