Bug 123405 - [CSS Regions] Elements in a named flow without an associated region chain still increment counters
Summary: [CSS Regions] Elements in a named flow without an associated region chain sti...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: AdobeTracked
Depends on:
Blocks: 128165
  Show dependency treegraph
 
Reported: 2013-10-28 08:49 PDT by Mihai Balan
Modified: 2014-04-08 23:14 PDT (History)
2 users (show)

See Also:


Attachments
HTML file highlighting the problem (2.25 KB, text/html)
2013-10-28 08:49 PDT, Mihai Balan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.