mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
e3b57efc7e
commit
10cb9c07aa
6 changed files with 2 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue