Bug 180237 - Implement overflow media queries
Summary: Implement overflow media queries
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: FromImplementor, InRadar
Depends on:
Blocks:
 
Reported: 2017-11-30 22:10 PST by Florian Rivoal
Modified: 2017-12-04 08:10 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Rivoal 2017-11-30 22:10:32 PST
The overflow-block and overflow-inline media queries from Media queries level 4 let people tell apart media that paginate vs media that scroll or media that clip using media features instead of media types.

That way, you can do

@media (overflow-block: paged) {
  /* do something smart for pagination */
}

and that will do the right thing when printing AND in ebook readers that paginate instead of scrolling, instead of 

@media print {
  /* do something smart for pagination */
}

which would work on print but fail in ebook readers.

The specification is over here:
https://drafts.csswg.org/mediaqueries-4/#mf-overflow-block
https://drafts.csswg.org/mediaqueries-4/#mf-overflow-inline
Comment 1 Florian Rivoal 2017-11-30 22:13:45 PST Comment hidden (obsolete)
Comment 2 Florian Rivoal 2017-11-30 22:14:30 PST Comment hidden (obsolete)
Comment 3 Radar WebKit Bug Importer 2017-12-04 08:10:37 PST
<rdar://problem/35829620>