WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
80163
[CSS Regions] ::before and ::after pseudo-elements are not displayed for regions
https://bugs.webkit.org/show_bug.cgi?id=80163
Summary
[CSS Regions] ::before and ::after pseudo-elements are not displayed for regions
Mihai Balan
Reported
2012-03-02 08:54:34 PST
If an element has the -webkit-flow-from property set, then the pseudo-elements ::before and ::after are not displayed. Trying to get the computed style for them returns a CSSStyleDeclaration object, but its properties do not have the values specified in CSS. Namely, the 'content' property has the value equal to the name of the flow that flows in the region, instead of what's specified via the 'content' declaration in CSS.
Attachments
Ref test highlighting the problem
(1.59 KB, application/zip)
2012-03-02 08:55 PST
,
Mihai Balan
no flags
Details
Proposed patch
(25.94 KB, patch)
2013-06-14 16:45 PDT
,
Igor Trindade Oliveira
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mihai Balan
Comment 1
2012-03-02 08:55:45 PST
Created
attachment 129906
[details]
Ref test highlighting the problem
Michelangelo De Simone
Comment 2
2013-06-13 20:47:50 PDT
Still repros on today's nightly (
r151543
)
Igor Trindade Oliveira
Comment 3
2013-06-14 16:45:36 PDT
Created
attachment 204749
[details]
Proposed patch patch
Dave Hyatt
Comment 4
2013-06-17 09:56:45 PDT
Comment on
attachment 204749
[details]
Proposed patch r=me
WebKit Commit Bot
Comment 5
2013-06-17 11:05:37 PDT
Comment on
attachment 204749
[details]
Proposed patch Clearing flags on attachment: 204749 Committed
r151647
: <
http://trac.webkit.org/changeset/151647
>
WebKit Commit Bot
Comment 6
2013-06-17 11:05:40 PDT
All reviewed patches have been landed. Closing bug.
Mihai Maerean
Comment 7
2013-06-18 00:07:39 PDT
Comment on
attachment 204749
[details]
Proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=204749&action=review
> LayoutTests/platform/mac/fast/regions/region-dynamic-after-before-expected.txt:1 > +layer at (0,0) size 800x600
These tests should be ref tests (the expected result should be an html file that renders the same as the test but without using regions). Please file another bug to change the expected results of these new tests.
Mihnea Ovidenie
Comment 8
2013-06-18 05:33:42 PDT
Hi Igor, Why did you need { position: absolute, top: 0, left: 0 } for before and { position: absolute, bottom: 0, right: 0 } for after in your tests? Looking at your patch, i doubt that it follows the processing model for pseudo-elements, as described
http://dev.w3.org/csswg/css-regions/#pseudo_elements
. Have you tested the regions pseudo-elements with different display values?
Igor Trindade Oliveira
Comment 9
2013-06-18 11:10:29 PDT
Hi Mihai, display: run-in is a totally different beast, specially because run-in + generated content open a can of worms. I will open a different bug for css region processing model. About the the current bug tests case, i will change it. (In reply to
comment #8
)
> Hi Igor, > > Why did you need { position: absolute, top: 0, left: 0 } for before and { position: absolute, bottom: 0, right: 0 } for after in your tests? Looking at your patch, i doubt that it follows the processing model for pseudo-elements, as described
http://dev.w3.org/csswg/css-regions/#pseudo_elements
. Have you tested the regions pseudo-elements with different display values?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug