WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
116874
CSSOM: getComputedStyle for ::first-letter returns inherited values when it shouldn't
https://bugs.webkit.org/show_bug.cgi?id=116874
Summary
CSSOM: getComputedStyle for ::first-letter returns inherited values when it s...
Martin Bouladour
Reported
2013-05-28 10:24:10 PDT
Created
attachment 203064
[details]
Test case (bad) The values of the CSS properties float, vertical-align, border-*, margin-* and padding-* are not inherited. Yet `getComputedStyle(reference_element, '::first-letter')` returns reference_element's value for these properties (unless they've been explicitly overridden for the pseudo-element), when it should instead return their respective initial values.
Attachments
Test case (bad)
(2.95 KB, text/html)
2013-05-28 10:24 PDT
,
Martin Bouladour
no flags
Details
Test case
(2.93 KB, text/html)
2013-05-28 10:27 PDT
,
Martin Bouladour
no flags
Details
Safari 15.6 matches other browsers
(2.37 MB, image/png)
2022-07-21 15:17 PDT
,
Ahmad Saleem
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Martin Bouladour
Comment 1
2013-05-28 10:27:11 PDT
Created
attachment 203066
[details]
Test case
Martin Bouladour
Comment 2
2013-05-29 04:16:10 PDT
Note that in the attached test case, in the last column of the result table ("expected"), the values `medium` could be replace by `0px`, since getComputedStyle is expected to convert any lengths in absolute pixel unit.
Ahmad Saleem
Comment 3
2022-07-21 15:17:33 PDT
Created
attachment 461124
[details]
Safari 15.6 matches other browsers I haven't looked into Expected column of test case but Safari 15.6 matches with other browsers as can be seen in the attached screenshot based on out output of test results. I think since all browsers are aligned, this can be marked as "RESOLVED WONTFIX" or "RESOLVED INVALID". Thanks! If I am wrong, please ignore my comment.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug