WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 111585
[CSS Regions] The presence of a flow-from declaration in a CSS rule using :hover effectively disables the rule
https://bugs.webkit.org/show_bug.cgi?id=111585
Summary
[CSS Regions] The presence of a flow-from declaration in a CSS rule using :ho...
Mihai Balan
Reported
2013-03-06 08:36:43 PST
If a CSS rule that uses the :hover pseudo-class tries to change the value of the flow-from property, that rule seems to be effectively ignored. Removing the flow-from declaration from the rule lets all other property changes to apply. In the attached test-case, try moving the mouse over the green square. EXPECTED: the green square should turn red (border color changes) and the black square should turn green (content is not flowed anymore and background color - green - is revealed) ACTUAL: nothing happens If the -webkit-flow-from: none; declaration is dropped from the #region:hover rule, the green square will turn red (border color changes).
Attachments
HTML file highlighting the problem
(851 bytes, text/html)
2013-03-06 08:37 PST
,
Mihai Balan
no flags
Details
Patch
(13.02 KB, patch)
2013-06-07 01:49 PDT
,
Radu Stavila
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mihai Balan
Comment 1
2013-03-06 08:37:19 PST
Created
attachment 191758
[details]
HTML file highlighting the problem
Mihai Balan
Comment 2
2013-03-06 08:39:17 PST
However, the rule is not actually disabled, since forcing the :hover state on the region (via the Web Inspector for instance), produces the expected results.
Radu Stavila
Comment 3
2013-05-28 05:12:14 PDT
This is not a bug that affects just regions. Basically, changing any style in the :hover class that requires the element to be detached and reattached (such as changing it's display property) causes the :hover class to be ignored.
Radu Stavila
Comment 4
2013-05-30 08:49:28 PDT
Linked issue:
https://bugs.webkit.org/show_bug.cgi?id=7555
Radu Stavila
Comment 5
2013-06-07 01:49:12 PDT
Created
attachment 204014
[details]
Patch The actual problem was fixed by
https://bugs.webkit.org/show_bug.cgi?id=7555
This patch only adds tests for this particular problem (changing flow-from and flow-into inside :hover).
Mihai Maerean
Comment 6
2013-06-07 02:49:33 PDT
Comment on
attachment 204014
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=204014&action=review
> LayoutTests/fast/regions/hover-single-flow-from-none.html:47 > + testRunner.notifyDone();
is this really needed? If you remove the calls to waitUntilDone and notifyDone, will the test still work?
> LayoutTests/fast/regions/hover-single-flow-from-other.html:54 > + testRunner.notifyDone();
the previous comment applies to this test too.
WebKit Commit Bot
Comment 7
2013-06-07 03:07:16 PDT
Comment on
attachment 204014
[details]
Patch Clearing flags on attachment: 204014 Committed
r151311
: <
http://trac.webkit.org/changeset/151311
>
WebKit Commit Bot
Comment 8
2013-06-07 03:07:18 PDT
All reviewed patches have been landed. Closing bug.
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