repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
inspector-support
/
matchedrules.html
blob
31a5ff4661c6ac70084d3fea43c8d0caa91e7928
1
<html>
2
<style>
3
div {
4
color: red;
5
}
6
7
div::selection {
8
background-color: lime;
9
}
10
</style>
11
12
<div
id
=
"foo"
>
Hello world
</div>
13
14
<script>
15
document
.
write
(
'<p>The number of matched rules is: '
+
16
document
.
defaultView
.
getMatchedCSSRules
(
document
.
getElementById
(
'foo'
),
''
).
length
);
17
</script>