SShortSingh.
Back to feed

Firefox Print CSS Guide Covers Page Breaks, Table Headers and DevTools Preview

0
·1 views

A DEV Community article offers developers a walkthrough of print stylesheets in Firefox. It explains how to emulate print media in DevTools and how to preview output using Ctrl+P. The piece covers @media print rules, such as hiding navigation elements and controlling page breaks with modern break properties. It also addresses print-specific details for tables, code blocks, and page margins, and notes that background colors typically do not print by default.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Firefox Tools for Tracking Down Browser Memory Leaks

A developer guide explains how memory leaks in browser tabs can be measured and diagnosed using Firefox's built-in tools. It outlines common causes of leaks, such as event listeners that are never removed, closures holding large objects, accidental globals, uncleared timers, unbounded caches, and detached DOM trees. The article walks readers through using the about:memory page to take snapshots and interpret memory categories. It also describes the DevTools Memory panel, where heap snapshots can be compared and sorted by retained size to find objects holding the most memory. Code examples show how leaks occur and how to fix them by clearing references and removing listeners.

0
ProgrammingDEV Community ·

WebRTC in Firefox: Video Calls, Data Channels and Privacy Controls

A developer guide explains how WebRTC lets browsers handle real-time audio, video, screen sharing, and peer-to-peer data transfer without a server carrying the file data. It covers how Firefox requests camera and microphone access per site, and how users can check or revoke those permissions. Code examples show capturing media with getUserMedia, selecting specific devices, and sharing a screen, window, or tab with getDisplayMedia. The article notes that Firefox cannot capture system audio during screen sharing, unlike Chrome. It also outlines a basic peer-to-peer call setup using RTCPeerConnection and an external signaling channel.

0
ProgrammingDEV Community ·

Only one of 81 AI startup credit offers can be claimed automatically, data shows

A review of a machine-readable catalogue of 2026 startup credit offers found that the AI and ML category holds 81 offers from 72 companies. Roughly two-thirds state a dollar value in the title or summary, but most do not spell out what the company must give in return. Nearly half reference a funding stage in their eligibility rules, a criterion that typically requires human review. Of the 81 offers, 73 are obtained through a form, and only one can be claimed automatically.

0
ProgrammingDEV Community ·

Using XPath in Firefox: Console Shortcuts, JavaScript API, and DevTools

Firefox supports XPath both in JavaScript and through its built-in DevTools features. The DevTools console provides a $x() function that evaluates XPath expressions against the current page, which is useful for testing selectors. The JavaScript document.evaluate() API is more verbose but offers several result types, such as snapshots for collecting all matches or single nodes for the first match. The Inspector can copy an element's shortest or full XPath, and the article notes that XPath handles parent traversal and text-based selection better than CSS, while CSS remains more readable for standard selectors. The guide also covers scraping structured data and using namespace resolvers for XML documents such as SVG.