mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision 2221fe343f0f4cb4e4e382bfd43bc8b1e69a98ba
This commit is contained in:
parent
8073e9a505
commit
733bcbdd2b
9 changed files with 89 additions and 21 deletions
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Test: ::marker is created dynamically properly</title>
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Mozilla" href="https://mozilla.org">
|
||||
<link rel="match" href="marker-color-ref.html">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1538589">
|
||||
<style>
|
||||
li {
|
||||
color: green;
|
||||
font-size: 40px;
|
||||
list-style-type: square;
|
||||
}
|
||||
::marker {
|
||||
display: none;
|
||||
}
|
||||
.tweak::marker {
|
||||
display: initial;
|
||||
}
|
||||
</style>
|
||||
<ol>
|
||||
<li><!-- The list marker should be a green square.--></li>
|
||||
</ol>
|
||||
<script>
|
||||
onload = function() {
|
||||
let li = document.querySelector("li");
|
||||
li.offsetTop;
|
||||
li.classList.add("tweak");
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue