Skip to content

Commit

Permalink
Accept 'cursor' on ::marker pseudo-elements
Browse files Browse the repository at this point in the history
According to this CSSWG resolution:
w3c/csswg-drafts#6203 (comment)

Bug: 352335092
Change-Id: I5d1c2f89cabf10e397de70bd70bfbe03910a0676
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5756462
Reviewed-by: Steinar H Gunderson <sesse@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1337776}
  • Loading branch information
Loirooriol authored and chromium-wpt-export-bot committed Aug 6, 2024
1 parent 82f2066 commit 994963b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@
midPoint: "rgb(50, 100, 100) 2px 2px 2px",
},

// ::marker supports `cursor`.
{
property: "cursor",
from: "auto",
to: "move",
midPoint: "move",
},

// ::marker does NOT support layout properties
{
property: "display",
Expand Down
3 changes: 3 additions & 0 deletions css/css-pseudo/parsing/marker-supported-properties.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
test_pseudo_computed_value("::marker", "text-emphasis-style", "dot");
test_pseudo_computed_value("::marker", "text-shadow", "rgb(0, 255, 0) 1px 2px 3px");

// ::marker supports `cursor`.
test_pseudo_computed_value("::marker", "cursor", "move");

// ::marker does NOT support layout properties
test_pseudo_computed_value("::marker", "display", "none", ["block", "inline", "inline-block"]);
test_pseudo_computed_value("::marker", "position", "absolute", "static");
Expand Down

0 comments on commit 994963b

Please sign in to comment.