Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
input[type="range"]
in vertical writing mode
https://bugs.webkit.org/show_bug.cgi?id=248208 rdar://102598641 Reviewed by Darin Adler. Re-use `appearance: slider-vertical` for painting natively and adjust the thumb positioning code to take in account various inline direction configurations. - horizontal writing mode + any appearance that is not slider-vertical: follows inline direction (left to right or right to left) - horizontal writing mode + `appearance: slider-vertical`: always bottom to top regardless of direction (preserves old behavior) - vertical writing mode + any appearance: follows inline direction (top to bottom in LTR, bottom to top in RTL) WPT imported from web-platform-tests/wpt@3f94991 * LayoutTests/TestExpectations: * LayoutTests/fast/multicol/client-rects-spanners-complex.html: * LayoutTests/fast/multicol/client-rects-spanners.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flex-item-compressible-002-expected.txt: * LayoutTests/platform/gtk/TestExpectations: * LayoutTests/platform/ios/TestExpectations: * Source/WebCore/css/horizontalFormControls.css: (@namespace "http://www.w3.org/1999/xhtml";): * Source/WebCore/css/html.css: (input:not([type="color"],[type="range"]), select, button, meter, progress): (input:not([type="color"]), select, button, meter, progress): Deleted. Enable input[type=range] when VerticalFormControlsEnabled setting is enabled. * Source/WebCore/html/shadow/SliderThumbElement.cpp: (WebCore::hasVerticalAppearance): Now also returns true for vertical writing modes regardless of the appearance value (WebCore::RenderSliderContainer::computeLogicalHeight const): Logical height is writing-mode aware, adjust check to reflect this is specifically for appearance: slider-vertical in horizontal mode. (WebCore::RenderSliderContainer::layout): Adjust initial positioning code for vertical writing mode support (WebCore::SliderThumbElement::setPositionFromPoint): Adjust dragging code for vertical writing mode support * Source/WebCore/rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustStyle): we now pass in the style in autoAppearanceForElement so we can query the writing mode reliably (WebCore::RenderTheme::autoAppearanceForElement const): paint slider using slider-vertical appearance in vertical writing mode (WebCore::RenderTheme::paintSliderTicks): Adjust tick positioning code to correctly query reversed inline direction * Source/WebCore/rendering/RenderTheme.h: * Source/WebCore/rendering/RenderThemeIOS.mm: (WebCore::RenderThemeIOS::paintSliderTicks): ditto. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-native-horizontal-rtl.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-native-horizontal-rtl.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-native-horizontal.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-native-horizontal.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-native-vertical-rtl.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-native-vertical-rtl.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-native-vertical.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-native-vertical.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-none-horizontal-rtl.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-none-horizontal-rtl.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-none-horizontal.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-none-horizontal.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-none-vertical-rtl.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-none-vertical-rtl.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-none-vertical.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/range-input-appearance-none-vertical.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-native-horizontal.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-native-horizontal.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-native-vlr.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-native-vlr.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-native-vrl.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-native-vrl.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-none-horizontal.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-none-horizontal.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-none-vlr.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-none-vlr.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-none-vrl.optional-expected-mismatch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-appearance-none-vrl.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-scrolling.optional-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-multiple-scrolling.optional.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-size-scrolling-and-sizing.optional-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/forms/select-size-scrolling-and-sizing.optional.html: Added. Canonical link: https://commits.webkit.org/256994@main
- Loading branch information
Showing
45 changed files
with
1,929 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...-modes/forms/range-input-appearance-native-horizontal-rtl.optional-expected-mismatch.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>native input[type=range] in horizontal writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-native-vertical.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-none-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10"> |
12 changes: 12 additions & 0 deletions
12
...ts/css/css-writing-modes/forms/range-input-appearance-native-horizontal-rtl.optional.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>native input[type=range] in horizontal writing mode & RTL direction</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-native-horizontal.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-none-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="direction: rtl"> |
12 changes: 12 additions & 0 deletions
12
...ting-modes/forms/range-input-appearance-native-horizontal.optional-expected-mismatch.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>native input[type=range] in vertical writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-native-horizontal.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-none-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="writing-mode: vertical-rl"> |
12 changes: 12 additions & 0 deletions
12
...-tests/css/css-writing-modes/forms/range-input-appearance-native-horizontal.optional.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>native input[type=range] in horizontal writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-native-vertical.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-none-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10"> |
12 changes: 12 additions & 0 deletions
12
...ng-modes/forms/range-input-appearance-native-vertical-rtl.optional-expected-mismatch.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>native input[type=range] in vertical writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-native-horizontal.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-none-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="writing-mode: vertical-rl"> |
12 changes: 12 additions & 0 deletions
12
...ests/css/css-writing-modes/forms/range-input-appearance-native-vertical-rtl.optional.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>native input[type=range] in vertical writing mode & RTL direction</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-native-vertical.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-none-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="writing-mode: vertical-rl; direction: rtl;"> |
12 changes: 12 additions & 0 deletions
12
...riting-modes/forms/range-input-appearance-native-vertical.optional-expected-mismatch.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>native input[type=range] in horizontal writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-native-vertical.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-none-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10"> |
12 changes: 12 additions & 0 deletions
12
...rm-tests/css/css-writing-modes/forms/range-input-appearance-native-vertical.optional.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>native input[type=range] in vertical writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-native-horizontal.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-none-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="writing-mode: vertical-rl"> |
12 changes: 12 additions & 0 deletions
12
...ng-modes/forms/range-input-appearance-none-horizontal-rtl.optional-expected-mismatch.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>unstyled input[type=range] in horizontal writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-none-vertical.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-native-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="appearance: none;"> |
12 changes: 12 additions & 0 deletions
12
...ests/css/css-writing-modes/forms/range-input-appearance-none-horizontal-rtl.optional.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>unstyled input[type=range] in horizontal writing mode & RTL direction</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-none-horizontal.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-native-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="direction: rtl; appearance: none;"> |
12 changes: 12 additions & 0 deletions
12
...riting-modes/forms/range-input-appearance-none-horizontal.optional-expected-mismatch.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>unstyled input[type=range] in vertical writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-none-horizontal.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-native-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="writing-mode: vertical-lr; appearance: none;"> |
12 changes: 12 additions & 0 deletions
12
...rm-tests/css/css-writing-modes/forms/range-input-appearance-none-horizontal.optional.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>unstyled input[type=range] in horizontal writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-none-vertical.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-native-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="appearance: none;"> |
12 changes: 12 additions & 0 deletions
12
...ting-modes/forms/range-input-appearance-none-vertical-rtl.optional-expected-mismatch.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>unstyled input[type=range] in vertical writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-none-horizontal.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-native-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="writing-mode: vertical-lr; appearance: none;"> |
12 changes: 12 additions & 0 deletions
12
...-tests/css/css-writing-modes/forms/range-input-appearance-none-vertical-rtl.optional.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>unstyled input[type=range] in vertical writing mode & RTL direction</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-none-vertical.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-native-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="writing-mode: vertical-lr; direction: rtl; appearance: none;"> |
12 changes: 12 additions & 0 deletions
12
...-writing-modes/forms/range-input-appearance-none-vertical.optional-expected-mismatch.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>unstyled input[type=range] in horizontal writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-none-vertical.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-native-vertical.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="appearance: none;"> |
12 changes: 12 additions & 0 deletions
12
...form-tests/css/css-writing-modes/forms/range-input-appearance-none-vertical.optional.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)"> | ||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> | ||
<title>unstyled input[type=range] in vertical writing mode</title> | ||
<meta charset="utf-8"> | ||
<link rel="mismatch" href="range-input-appearance-none-horizontal.optional.html"> | ||
<link rel="mismatch" href="range-input-appearance-native-horizontal.optional.html"> | ||
|
||
<!-- Note test description should be the same across all files to mismatch on. --> | ||
<p>The range input below should match the correct writing mode & direction.</p> | ||
<input type="range" min="0" max="100" value="10" style="writing-mode: vertical-lr; appearance: none;"> |
Oops, something went wrong.