mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 18:06:56 +02:00
Previously the input element was displayed with value 0, when no value was set in the HTML. Now it uses `value_sanitization_algorithm()`, which will calculate the default value. In `value_sanitization_algorithm()` there was a logical mistake/typo. The comment from the spec says "unless the maximum is less than the minimum". The added layout test would fail without the code changes. Fixes #520 (cherry picked from commit 191531b7b18d2edf97dc7bf88a9c19903eeae2d5)
9 lines
212 B
HTML
9 lines
212 B
HTML
<!DOCTYPE html><html><head><style>
|
|
* {
|
|
font: 20px 'SerenitySans';
|
|
}
|
|
input {
|
|
width: 200px;
|
|
}
|
|
</style></head><body><input type="range" min="0" max="100" /><input type="range" min="0" max="100" value="10"/>
|