WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
26570
webkit fails to respect :empty with display: none;
https://bugs.webkit.org/show_bug.cgi?id=26570
Summary
webkit fails to respect :empty with display: none;
Jerome Leclanche
Reported
2009-06-20 01:15:29 PDT
Very easy to reproduce: <style type="text/css"> .e { background-color: red; margin: 5px; width: 90%; } .e:empty { border: display: none; } </style> <div class="e">This is not empty</div> See attached url for a more detailed testcase.
Attachments
Testcase
(946 bytes, text/html)
2009-06-20 01:16 PDT
,
Jerome Leclanche
no flags
Details
Simple test case
(580 bytes, text/html)
2010-03-03 15:27 PST
,
bohwaz
no flags
Details
Patch
(1.96 KB, patch)
2011-07-20 19:38 PDT
,
noel gordon
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jerome Leclanche
Comment 1
2009-06-20 01:16:15 PDT
Created
attachment 31590
[details]
Testcase
bohwaz
Comment 2
2010-03-03 15:27:14 PST
Created
attachment 49956
[details]
Simple test case
bohwaz
Comment 3
2010-03-03 15:27:48 PST
Bug confirmed, :empty is bogus when used with display: none; (see my testcase)
Anthony Ricaud
Comment 4
2010-03-03 15:35:15 PST
The two attached testcases confirmed this behavior. The testcase inlined in the first comment is wrong (border: display: none;) but confirm too by removing "border:"
Simon Charette
Comment 5
2010-07-20 10:30:51 PDT
***
Bug 42614
has been marked as a duplicate of this bug. ***
Alexey Proskuryakov
Comment 6
2010-08-30 10:13:48 PDT
***
Bug 44871
has been marked as a duplicate of this bug. ***
Jerome Leclanche
Comment 7
2011-05-20 17:01:38 PDT
Looks fixed WebKit 534.36 (trunk@86496)
Alexey Proskuryakov
Comment 8
2011-05-20 22:34:57 PDT
Thank you for following up! I'm wondering if we should land a regression test for this.
noel gordon
Comment 9
2011-07-20 01:08:46 PDT
(In reply to
comment #8
)
> I'm wondering if we should land a regression test for this.
Does fast/css/empty-display-none.html suffice?
noel gordon
Comment 10
2011-07-20 19:38:58 PDT
Created
attachment 101547
[details]
Patch Add a specific test case for variety.
noel gordon
Comment 11
2011-07-25 21:26:59 PDT
(In reply to
comment #8
)
> Thank you for following up! > > I'm wondering if we should land a regression test for this.
Yes we should. Could you review please?
Alexey Proskuryakov
Comment 12
2011-07-25 23:09:01 PDT
Comment on
attachment 101547
[details]
Patch Nice!
WebKit Review Bot
Comment 13
2011-07-26 00:06:05 PDT
Comment on
attachment 101547
[details]
Patch Clearing flags on attachment: 101547 Committed
r91744
: <
http://trac.webkit.org/changeset/91744
>
WebKit Review Bot
Comment 14
2011-07-26 00:06:10 PDT
All reviewed patches have been landed. Closing bug.
Frédéric Scherma
Comment 15
2014-06-27 06:57:32 PDT
In chromium 34 on linux and 35 on osx I've have an issue with a similar case but a bit more complex (see the following jsfiddle):
http://jsfiddle.net/YprUV/47/
When 'remove' button is clicked, 'is empty' should appears, but it doesn't without the workaround I've added (the first empty css 'ul:empty {}'). Try to comment it, and then 'is empty' would not appears.
noel gordon
Comment 16
2014-06-27 07:36:24 PDT
Different because of the combinator perhaps.
>In chromium 34 on linux and 35 on osx
Please do file a bug at crbug.com
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