Bug 87966 - [CSS Regions] Flowing content that's styled using pseudo-elements doesn't carry along all the styles
Summary: [CSS Regions] Flowing content that's styled using pseudo-elements doesn't car...
Status: RESOLVED WONTFIX
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: 71487
  Show dependency treegraph
 
Reported: 2012-05-31 06:19 PDT by Mihai Balan
Modified: 2022-07-12 17:15 PDT (History)
5 users (show)

See Also:


Attachments
Reftest showcasing the bug (1.49 KB, application/octet-stream)
2012-05-31 07:00 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 2012-05-31 06:19:16 PDT
When content that's part of a named flow is styled using pseudo-elements (e.g. ::before, ::after, ::first-letter, ::first-line) some of the styling doesn't get properly carried along in the region.
For instance,
Comment 1 Mihai Balan 2012-05-31 06:55:31 PDT
What styles get through and what not is not very consistent. For instance:
  * font-variant - gets through and is rendered properly
  * font-size - seems to get through, but is incorrectly rendered: the box is scaled according to the font-size, but the text is actually rendered at the same size
  * font-weight, font-style, color, background-color - are simply ignored (not rendered)

The list above is not complete - just let me know if further investigation is needed.

All these use-cases are depicted in the attachement.
Comment 2 Mihai Balan 2012-05-31 07:00:05 PDT
Created attachment 145081 [details]
Reftest showcasing the bug
Comment 3 Mihai Balan 2012-05-31 07:04:11 PDT
*IMPORTANT*: This bug reproduces only when there's a @region rule that tries to apply styles to the region. The styles don't necessarily need to apply to content that flows in the region.
For instance, in the attached reftest, the content in the named flow is an <article> with some <p>s in it, and the @-webkit-region rules tries styling the <span>s. Dropping the @-webkit-region rule altogether stops the bug from (re)producing.
Comment 4 Michelangelo De Simone 2013-06-13 20:35:51 PDT
Still repros on today's nightly (r151543)
Comment 5 Brent Fulgham 2022-07-12 17:15:00 PDT
CSS Regions were removed in Bug 174978.