mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implements the :checked pseudo-class for inputs
Relevant spec: https://html.spec.whatwg.org/multipage/scripting.html#selector-checked Also modifies HTMLInputElement::SetChecked to no longer modify its checked content value, instead making use of its internal checkedness state now that we can match `:checked` properly.
This commit is contained in:
parent
9ac817523c
commit
1b84bd22b8
7 changed files with 47 additions and 4 deletions
|
@ -10,9 +10,9 @@ input[type="checkbox"],
|
|||
input[type="radio"] { font-family: monospace !important; border: none !important; background: transparent; }
|
||||
|
||||
input[type="checkbox"]::before { content: "[ ]"; padding: 0; }
|
||||
input[type="checkbox"][checked]::before { content: "[✓]"; }
|
||||
input[type="checkbox"]:checked::before { content: "[✓]"; }
|
||||
input[type="radio"]::before { content: "( )"; padding: 0; }
|
||||
input[type="radio"][checked]::before { content: "(●)"; }
|
||||
input[type="radio"]:checked::before { content: "(●)"; }
|
||||
|
||||
td[align="left"] { text-align: left; }
|
||||
td[align="center"] { text-align: center; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue