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
185942
:out-of-range pseudo class doesn't match if value reaches a certain amount of characters
https://bugs.webkit.org/show_bug.cgi?id=185942
Summary
:out-of-range pseudo class doesn't match if value reaches a certain amount of...
m.renty
Reported
2018-05-24 05:11:35 PDT
When using the :out-of-range pseudo class I noticed it didn't match anymore when it reached a certain threshold of used characters. I've tested this both on Safari 11.1 and Safari Mobile. You can reproduce it using this codepen I made
https://codepen.io/mrenty/pen/QrRZwP
. If you type "111111111111111111111111111111111111111" it is invalid as expected, but if you add an extra number it becomes in range.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2018-05-26 19:12:05 PDT
Presumably when it gets so large that it fails to parse as a number.
Radar WebKit Bug Importer
Comment 2
2018-05-26 19:12:19 PDT
<
rdar://problem/40583017
>
Ahmad Saleem
Comment 3
2022-08-07 04:54:09 PDT
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached CodePen from
Comment 0
and pasting "111111111111111111111111111111111111111" and then adding "1" makes it in range and change background to "green", while all other browsers (Chrome Canary 106 and Firefox Nightly 105) keeps it "red" to show "out of range". Thanks!
Ryosuke Niwa
Comment 4
2022-08-07 14:03:39 PDT
(In reply to Alexey Proskuryakov from
comment #1
)
> Presumably when it gets so large that it fails to parse as a number.
This is exactly what's happening. sanitizeValue turns a very long integer into an empty string and that parses as a valid value.
Ahmad Saleem
Comment 5
2023-05-28 06:35:17 PDT
Fixed in even Safari 16.5. Marking as 'RESOLVED CONFIGURATION CHANGED'. Thanks!
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