Bug 75587 - [CSS Regions] Can't flow into block-styled ::before and ::after elements with no other content
Summary: [CSS Regions] Can't flow into block-styled ::before and ::after elements with...
Status: RESOLVED DUPLICATE of bug 90079
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Mihnea Ovidenie
URL:
Keywords:
Depends on:
Blocks: 57312
  Show dependency treegraph
 
Reported: 2012-01-04 16:38 PST by Alan Stearns
Modified: 2012-10-01 01:12 PDT (History)
3 users (show)

See Also:


Attachments
reftest (896 bytes, application/zip)
2012-01-04 16:38 PST, Alan Stearns
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Stearns 2012-01-04 16:38:16 PST
Created attachment 121186 [details]
reftest

The flow-into property only works on block-level elements, and ::before and ::after pseudos can be styled with display:block. Styling the pseudos as block elements is not sufficient for flow-into to work on them, though.

// this does not display any namedFlow content in the pseudo element
display:block;
-webkit-flow-into: namedFlow;

If you add a content property, then the pseudo elements will throw that content away and work as regions:

// this works
display: block;
content: 'a';
-webkit-flow-into: namedFlow;

I'm assuming there's an optimization that ignores pseudo elements if they have no content, but this path will need to check to see if flow-into is assigning content to the element.
Comment 1 Mihai Balan 2012-10-01 01:12:42 PDT
This was fixed as part of a larger fix of regions & pseudo-elements in #90079.

*** This bug has been marked as a duplicate of bug 90079 ***