Bug 154164
Summary: | Do not expose -webkit-text CSS value in quirks mode | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Pieters (:zcorpan) <zcorpan> |
Component: | CSS | Assignee: | Tim Nguyen (:ntim) <ntim> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | ahmad.saleem792, bfulgham, ntim, simon.fraser, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3883 |
Simon Pieters (:zcorpan)
What steps will reproduce the problem?
1. Go to http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3883
<style>
body { color:red }
div { color:green }
span { color:-webkit-text }
</style>
<div><span>This should be green.</span></div>
What is the expected output? What do you see instead?
The text should be green. It's red.
Please use labels and text to provide additional information.
Spec
https://quirks.spec.whatwg.org/#the-tables-inherit-color-from-body-quirk
(Note in particular "a special value that has no keyword mapping to it.", meaning an author should not be able to trigger this behavior for other elements as in the test case.)
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Brent Fulgham
This test case works properly in Safari 15.5+.
Ahmad Saleem
I am able to reproduce this in Safari 16 and Safari Technology Preview 148 and using attached testcase, I get "red" color text compared to other browsers (Chrome Canary 108 and Firefox Nightly 107), in which I get "green" color text.
@Brent - is it some regression? Thanks!
Tim Nguyen (:ntim)
This is still reproducible.
Tim Nguyen (:ntim)
Pull request: https://github.com/WebKit/WebKit/pull/4665
EWS
Committed 254935@main (25abb3d63d29): <https://commits.webkit.org/254935@main>
Reviewed commits have been landed. Closing PR #4665 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/100482471>