mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +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
|
@ -832,10 +832,11 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
fn adjust_for_marker_pseudo(&mut self) {
|
||||
use crate::values::computed::font::{FontFamily, FontSynthesis};
|
||||
use crate::values::computed::text::{LetterSpacing, WordSpacing};
|
||||
use crate::values::computed::counters::{Content};
|
||||
|
||||
let is_legacy_marker = self.style.pseudo.map_or(false, |p| p.is_marker()) &&
|
||||
self.style.get_counters().ineffective_content_property() &&
|
||||
self.style.get_list().clone_list_style_type().is_bullet();
|
||||
self.style.get_list().clone_list_style_type().is_bullet() &&
|
||||
self.style.get_counters().clone_content() == Content::Normal;
|
||||
if !is_legacy_marker {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue