mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
style: Implement 'content: none' for ::marker
Differential Revision: https://phabricator.services.mozilla.com/D111707
This commit is contained in:
parent
c9d4f812e5
commit
183ec78be5
2 changed files with 10 additions and 8 deletions
|
@ -27,15 +27,16 @@ impl ToResolvedValue for computed::Content {
|
|||
.style
|
||||
.pseudo()
|
||||
.map_or(false, |p| p.is_before_or_after());
|
||||
let is_marker = context
|
||||
.style
|
||||
.pseudo()
|
||||
.map_or(false, |p| p.is_marker());
|
||||
|
||||
match self {
|
||||
Self::Normal if is_before_or_after => Self::None,
|
||||
// For now, make `content: none` compute to `normal` on other
|
||||
// elements, as we don't respect it.
|
||||
//
|
||||
// FIXME(emilio, bug 1605473): for marker this should be preserved
|
||||
// and respected, probably.
|
||||
Self::None if !is_before_or_after => Self::Normal,
|
||||
// For now, make `content: none` compute to `normal` for elements
|
||||
// other than ::before, ::after and ::marker, as we don't respect it.
|
||||
Self::None if !is_before_or_after && !is_marker => Self::Normal,
|
||||
other => other,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue