Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Etsi tuesta

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Lue lisää

Why is display:block; required in FF 3.6 to get HTML5 styleable elements to work properly?

  • 1 vastaus
  • 8 henkilöllä on sama ongelma
  • 1 näyttö
  • Viimeisin kirjoittaja AnonymousUser

more options

I had all sorts of problems getting styleable elements to work in Firefox 3.6. The below code works:



Test

 article { display: block; border: 1px solid red }



Welcome This is a test.



However, it works only because of:

display: block;

when styling the HTML5 article element. If I leave the above code out of the style then the red border is not displayed properly. This code works fine in Chrome and even versions of IE when the article element is added to the DOM.

This happened

Every time Firefox opened

== Always

I had all sorts of problems getting styleable elements to work in Firefox 3.6. The below code works: Test article { display: block; border: 1px solid red } Welcome This is a test. However, it works only because of: display: block; when styling the HTML5 article element. If I leave the above code out of the style then the red border is not displayed properly. This code works fine in Chrome and even versions of IE when the article element is added to the DOM. == This happened == Every time Firefox opened == Always

Valittu ratkaisu

The HTML5 parsing engine is not turned on by default in the 3.6.x versions, it is turned on in Firefox 4

Lue tämä vastaus kontekstissaan 👍 0

Kaikki vastaukset (1)

more options

Valittu ratkaisu

The HTML5 parsing engine is not turned on by default in the 3.6.x versions, it is turned on in Firefox 4