Ko tenda hembiapoite sa’ivéta oñemba’apokuévo hese hembiapo porãve hag̃ua. Peteĩ jehaipyre nomoĩporãiramo ne apañuái ha eporanduséramo, roguerekohína ore nepytyvõ rekoha ikatútava ndeykeko @FirefoxSupport Twitter-pe ha avei /r/firefox Reddit-pe.

Eheka Pytyvõha

Emboyke pytyvõha apovai. Ndorojeruremo’ãi ehenói térã eñe’ẽmondóvo pumbyrýpe ha emoherakuãvo marandu nemba’etéva. Emombe’u tembiapo imarãkuaáva ko “Marandu iñañáva” rupive.

Kuaave

Does Firefox support break-after: avoid?

  • 5 Mbohovái
  • 1 oguereko ko apañuái
  • 1 Hecha
  • Mbohovái ipaháva jdablin

more options

I'm creating a print stylesheet, and trying to use break-after: avoid to keep headings on the same page as the following paragraph, but it doesn't seem to work.

To investigate, I created a simple page with an

in between a number of paragraphs to that the <h2> printed as the last item on the page. I then added the following styles. @media print { h2 { break-after: avoid; } } I expected the heading to move to the next page, but nothing happened. So then I added the following: CSS: @supports (break-after: avoid) { .message { display: block; } } HTML:

break-after: avoid is supported.

When I refreshed the page, the message appeared. So is break-after supported or not, or is it not supported for paged media? Or if it is supported, what am I doing wrong? MDN suggests it's been supported since Firefox 65, but maybe I'm misunderstanding the compatibility table.

Thanks in anticipation. If this is the wrong forum to ask this question, perhaps somebody could direct me to the correct one.

I'm creating a print stylesheet, and trying to use break-after: avoid to keep headings on the same page as the following paragraph, but it doesn't seem to work. To investigate, I created a simple page with an <h2> in between a number of paragraphs to that the <h2> printed as the last item on the page. I then added the following styles. @media print { h2 { break-after: avoid; } } I expected the heading to move to the next page, but nothing happened. So then I added the following: CSS: @supports (break-after: avoid) { .message { display: block; } } HTML: <p class="message">break-after: avoid is supported.</p> When I refreshed the page, the message appeared. So is break-after supported or not, or is it not supported for paged media? Or if it is supported, what am I doing wrong? MDN suggests it's been supported since Firefox 65, but maybe I'm misunderstanding the compatibility table. Thanks in anticipation. If this is the wrong forum to ask this question, perhaps somebody could direct me to the correct one.

Ñemoĩporã poravopyre

This forum is for end user support, so not really the right place to ask :-) but https://bugzilla.mozilla.org/show_bug.cgi?id=775617 being unresolved suggests this isn't expected to work.

Emoñe’ẽ ko mbohavái ejeregua reheve 👍 0

Opaite Mbohovái (5)

more options

Sorry, it looks like my question has made the display go mad, I hope you can make sense of it.

more options

Ñemoĩporã poravopyre

This forum is for end user support, so not really the right place to ask :-) but https://bugzilla.mozilla.org/show_bug.cgi?id=775617 being unresolved suggests this isn't expected to work.

more options

On my own sites I user the older method of putting the heading and first paragraph following in a div styled with:

page-break-inside: avoid;

Not the best design, but possibly useful in some cases.

more options

Thank you, that's a shame. It's curious that @supports suggests it should work, and MDN is ambiguous too. Maybe that bug report will get fixed one day, we can but hope.

more options

To jscher2000: thanks for the suggestion, I might try that.