Bug 180237

Summary: Implement overflow media queries
Product: WebKit Reporter: Florian Rivoal <florian>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: dino, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: FromImplementor, InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

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>