mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Implements :indeterminate pseudo-class
Addresses reviews
This commit is contained in:
parent
2d05ac537c
commit
504f968b20
14 changed files with 105 additions and 206 deletions
|
@ -1,8 +1,7 @@
|
|||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<!-- Run with nc -l 8000 -->
|
||||
<form action="http://localhost:8000" method=get id="foo">
|
||||
<form>
|
||||
<input name=bar type=checkbox checked>
|
||||
<input name=baz value="baz1" type=radio checked>
|
||||
<input name=baz value="baz2" type=radio>
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<!-- Run with nc -l 8000 -->
|
||||
<form action="http://localhost:8000" method=get id="foo">
|
||||
<form id="foo">
|
||||
<input name=bar type=checkbox checked>
|
||||
<input name=baz value="baz1" type=radio checked>
|
||||
<input name=baz value="baz2" type=radio>
|
||||
|
|
|
@ -12,7 +12,11 @@
|
|||
<div><input id=foo3 type="checkbox"></div>
|
||||
<div><button id=setdefault type=button>setDefaultChecked</button></div>
|
||||
<div><input type="submit"><input type="reset"><div>
|
||||
<div><input id=ch type="checkbox" checked></div>
|
||||
<div><input id=unch type="checkbox"></div>
|
||||
<script>
|
||||
document.getElementById("ch").indeterminate = true;
|
||||
document.getElementById("unch").indeterminate = true;
|
||||
var checkboxes = [document.getElementById("foo1"),
|
||||
document.getElementById("foo2"),
|
||||
document.getElementById("foo3")];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue