New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS ::marker
does not support defining CSS variables
#7376
CSS ::marker
does not support defining CSS variables
#7376
Conversation
EWS run on previous version of this PR (hash 13f620f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a reftest (WPT would be the preference).
A test would be cool. |
@nt1m https://github.com/web-platform-tests/wpt/pull/37427/files I tried an automated test, but I can't extract the color with |
@karlcow I'm able to extract the colors for
Hope this helps π for (const li of document.querySelectorAll('li')) {
const markerStyles = window.getComputedStyle(li, 'marker');
const markerColor = markerStyles.color; // <-- the extracted color
}
|
doh! I realized my mistake this morning. OK. I have an automated test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you import the 2 tests you've added as part of this patch?
::marker
does not support defining CSS variables::marker
/::cue
does not support defining CSS variables
::marker
/::cue
does not support defining CSS variables::marker
/::cue
do not support defining CSS variables
13f620f
to
eab5e35
Compare
::marker
/::cue
do not support defining CSS variables::marker
does not support defining CSS variables
@nt1m DONE! |
EWS run on current version of this PR (hash eab5e35) |
https://bugs.webkit.org/show_bug.cgi?id=241566 rdar://problem/95551387 Reviewed by Tim Nguyen and Antti Koivisto. This aligns WebKit with Firefox and Chrome. It adds CSSPropertyCustom into isValidMarkerStyleProperty and isValidCueStyleProperty. This also adds two new Web Platform Tests for css marker. * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-variable-computed-style-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-variable-computed-style.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-variable-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-variable-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-variable.html: Added. * Source/WebCore/style/PropertyAllowlist.cpp: (WebCore::Style::isValidMarkerStyleProperty): (WebCore::Style::isValidCueStyleProperty): Canonical link: https://commits.webkit.org/257711@main
eab5e35
to
52052a2
Compare
Committed 257711@main (52052a2): https://commits.webkit.org/257711@main Reviewed commits have been landed. Closing PR #7376 and removing active labels. |
52052a2
eab5e35
π§ͺ ios-wk2π§ͺ api-macπ§ͺ gtk-wk2