Bug 123405

Summary: [CSS Regions] Elements in a named flow without an associated region chain still increment counters
Product: WebKit Reporter: Mihai Balan <mibalan>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: bfulgham, mihnea, WebkitBugTracker
Priority: P2 Keywords: AdobeTracked
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 128165    
Attachments:
Description Flags
HTML file highlighting the problem none

Description Mihai Balan 2013-10-28 08:49:17 PDT
Created attachment 215310 [details]
HTML file highlighting the problem

The CSS 2.1 spec says that elements that are not displayed and don't generate boxes (e.g. elements with display: none or children of such elements) do not increment counters.
The CSS Regions spec implies that children of regions or named flows without an associated region chain are in nature the same as elements with display: none.

However, setting counter-increment on elements in a named flow without an associated region chain still increments the counter.

E.g. in the attached file, the three elements should be numbered 1., 2., 3., but they are numbered 2, 4, 6 . Replacing flow-into/flow-from with display: none produces the proper numbering (1, 2, 3)
Comment 1 Mihai Balan 2013-10-28 08:51:36 PDT
The bug also reproduces with numbering generated by <ol> elements.
Comment 2 Brent Fulgham 2022-07-12 17:19:00 PDT
CSS Regions were removed in Bug 174978.