servo/components/script
Emilio Cobos Álvarez b1f0581637 script: Fix MouseOver handling
Now we only query for the topmost node, and apply the hover state to all
of the parent elements.

This fixes things like #9705, where the hover state was applied only to
the children.

This also makes us more conformant with other browsers in the case of
taking in account margins and paddings.

For example, prior to this PR, when your mouse was over the inner
element, in the bottom part, `hover` styles didn't apply to the parent.

```html
<style>
div {
  padding: 10px;
  margin: 10px;
  height: 15px;
  background: blue;
}

div:hover {
  background: red;
}
</style>

<div>
  <div></div>
</div>
```

Fixes #9705
2016-03-02 20:01:41 +01:00
..
docs Move the DOM memory management blog post into the tree. 2015-10-29 17:25:00 +01:00
dom script: Fix MouseOver handling 2016-03-02 20:01:41 +01:00
parse Store a pointer to the browsing context in the Document. 2016-02-11 13:08:11 +01:00
build.rs
Cargo.toml Use piston_image instead of stb_image for decoding JPEGs 2016-03-02 09:13:49 +01:00
clipboard_provider.rs Remove unused imports in script 2016-01-17 12:41:28 +05:30
cors.rs CORS Preflight Logic Fix 2016-02-16 15:42:07 -07:00
devtools.rs Completed implementation of devtools' getLayout. 2016-02-24 13:51:47 -05:00
document_loader.rs Improve documentation for new methods. 2016-02-10 09:20:06 -05:00
layout_interface.rs script: Fix MouseOver handling 2016-03-02 20:01:41 +01:00
lib.rs Lazily define interface objects on globals (fixes #6419) 2016-02-25 15:56:47 +01:00
makefile.cargo Fix spurious rebuilds of the script crate 2015-10-08 21:37:56 -07:00
mem.rs Bump heapsize to 0.3 2016-02-13 11:13:19 +01:00
network_listener.rs task -> thread 2016-01-10 17:58:13 +09:00
page.rs Auto merge of #8481 - frewsxcv:iterablepage-iter, r=Ms2ger 2015-11-12 18:29:12 +05:30
reporter.rs Report CSS errors to script task for further processing. 2016-02-11 14:48:47 -05:00
script_thread.rs Implement GetElementRect webdriver command 2016-02-24 11:41:42 -05:00
textinput.rs Say farewell to in-tree HeapSizeOf 2016-02-04 22:03:32 +01:00
timers.rs Clean up of script timer code. 2016-02-20 22:43:16 +01:00
unpremultiplytable.rs add un-premultiply table for GetImageData 2015-10-20 04:51:29 -04:00
webdriver_handlers.rs find_node_by_unique_id should use find 2016-02-24 11:41:51 -05:00