mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +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
|
@ -6,8 +6,6 @@
|
|||
<% from data import ALL_SIDES, maybe_moz_logical_alias %>
|
||||
<% data.new_style_struct("Padding", inherited=False) %>
|
||||
|
||||
// APPLIES_TO_PLACEHOLDER so we can set it in UA stylesheets. But we use a
|
||||
// !important value there, so pages can't set it.
|
||||
% for side in ALL_SIDES:
|
||||
<%
|
||||
spec = "https://drafts.csswg.org/css-box/#propdef-padding-%s" % side[0]
|
||||
|
@ -23,7 +21,7 @@
|
|||
logical=side[1],
|
||||
logical_group="padding",
|
||||
spec=spec,
|
||||
flags="APPLIES_TO_FIRST_LETTER APPLIES_TO_PLACEHOLDER GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
flags="APPLIES_TO_FIRST_LETTER GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
allow_quirks="No" if side[1] else "Yes",
|
||||
servo_restyle_damage="reflow rebuild_and_reflow_inline"
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue