ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

h1 font-size in section

  • 3 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 1 ნახვა
  • ბოლოს გამოეხმაურა johannes

The stock html.css renders h1 tags inside a section with equal size as h2 both in and outside a section.

If h1 font-size is different inside a section than also a h2 font-size is expected to have different, smaller size.

The stock html.css renders h1 tags inside a section with equal size as h2 both in and outside a section. If h1 font-size is different inside a section than also a h2 font-size is expected to have different, smaller size.

გადაწყვეტა შერჩეულია

If you believe this to be a bug -- File a bug report at https://bugzilla.mozilla.org -- Once there if you have not an account already, you will need to create one. When registered follow the documentation for bug filing to help you get started.

პასუხის ნახვა სრულად 👍 0

ყველა პასუხი (3)

შერჩეული გადაწყვეტა

If you believe this to be a bug -- File a bug report at https://bugzilla.mozilla.org -- Once there if you have not an account already, you will need to create one. When registered follow the documentation for bug filing to help you get started.

That is odd: https://jsfiddle.net/1v2L9Lkm/

This is the internal rules file that scales down h1 depending on how many of article, aside, nav, or section it is nested in. As you point out, that does not apply to other heading types.

https://dxr.mozilla.org/mozilla-release/source/layout/style/res/html.css#185

I don't know if this will be changed (maybe there's a standard??), but you could file a bug: https://bugzilla.mozilla.org/

Until then, you would need to override the built-in rule with your own CSS.