mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibWeb: Implement the ::marker pseudo-element
This matches the marker boxes of list-items.
This commit is contained in:
parent
8411ff3f14
commit
817cd13d59
6 changed files with 10 additions and 3 deletions
|
@ -66,8 +66,7 @@ void ListItemMarkerBox::paint(PaintContext& context, PaintPhase phase)
|
|||
return;
|
||||
}
|
||||
|
||||
// FIXME: It would be nicer to not have to go via the parent here to get our inherited style.
|
||||
auto color = parent()->computed_values().color();
|
||||
auto color = computed_values().color();
|
||||
|
||||
int marker_width = (int)enclosing.height() / 2;
|
||||
Gfx::IntRect marker_rect { 0, 0, marker_width, marker_width };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue