style: Don't apply property restrictions to pseudo-elements in UA stylesheets.

And remove some of the ::placeholder and ::cue hacks where we need to use
!important to make the property not apply for content but apply on UA sheets.

The comment about the white-space property was wrong, we don't enforce it with
!important in the UA stylesheets for <input> (we do for <textarea> though), so
I've kept the flag since it really applies.

Differential Revision: https://phabricator.services.mozilla.com/D37717
This commit is contained in:
Emilio Cobos Álvarez 2019-07-11 23:06:41 +00:00
parent e3b57efc7e
commit 10cb9c07aa
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
6 changed files with 2 additions and 21 deletions

View file

@ -153,7 +153,7 @@ where
// longhands are only allowed if they have our
// restriction flag set.
if let PropertyDeclarationId::Longhand(id) = declaration.id() {
if !id.flags().contains(restriction) {
if !id.flags().contains(restriction) && cascade_level.origin() != Origin::UserAgent {
return None;
}
}