Open Bug 1197736 Opened 9 years ago Updated 1 year ago

Implement the `:blank` pseudo-class

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

Tracking Status
firefox43 --- affected

People

(Reporter: dbaron, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-needed)

We should implement the :blank pseudo-class.  We already have :moz-only-whitespace which is almost the same, except :moz-only-whitespace considers '\f' (form feed) to be whitespace and the current spec for https://drafts.csswg.org/selectors-4/#the-blank-pseudo does not.  (We should figure out whether that's a spec bug!)
Form feed is considered white space in the HTML spec:
https://html.spec.whatwg.org/multipage/syntax.html
(search for 0x0C to find the places it's mentioned)

It seems like a good idea if these two specs agreed.
I think the CSS spec should be updated to include \f.

:blank now matches user input elements (<input>, <textarea>, etc.) that have a value of null or the empty string.

Blocks: selectors-4
Type: defect → enhancement
Summary: implement :blank pseudo-class → Implement the `:blank` pseudo-class
See Also: → 1106296
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.