Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 963151c

Browse files
Accessibility: We don't need to move hidden elements off screen when we set height, width and clip.
We were combining two techniques here. Setting top and left will cause issues when we work on dir="rtl" support, so we use the other solution. Also removed IE6/7 clip notation because IE7 is C-grade now as well.
1 parent 9e30114 commit 963151c

10 files changed

+1
-33
lines changed

css/structure/jquery.mobile.button.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ button.ui-btn-icon-notext {
5151
/* Fixes IE/WP filter alpha opacity bugs */
5252
.ui-input-btn.ui-state-disabled input {
5353
position: absolute !important;
54-
top: -9999px;
55-
left: -9999px;
5654
height: 1px;
5755
width: 1px;
5856
overflow: hidden;
59-
clip: rect(1px 1px 1px 1px);
6057
clip: rect(1px,1px,1px,1px);
6158
}

css/structure/jquery.mobile.collapsible.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,9 @@
3333
}
3434
.ui-collapsible-heading-status {
3535
position: absolute !important;
36-
top: -9999px;
37-
left: -9999px;
3836
height: 1px;
3937
width: 1px;
4038
overflow: hidden;
41-
clip: rect(1px 1px 1px 1px);
4239
clip: rect(1px,1px,1px,1px);
4340
}
4441
.ui-collapsible-content {

css/structure/jquery.mobile.controlgroup.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,8 @@ fieldset.ui-controlgroup {
114114
}
115115
.ui-controlgroup-controls > label {
116116
position: absolute !important;
117-
top: -9999px;
118-
left: -9999px;
119117
height: 1px;
120118
width: 1px;
121119
overflow: hidden;
122-
clip: rect(1px 1px 1px 1px);
123120
clip: rect(1px,1px,1px,1px);
124121
}

css/structure/jquery.mobile.core.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,9 @@ div.ui-mobile-viewport {
6868
/* Non-js content hiding */
6969
.ui-nojs {
7070
position: absolute !important;
71-
top: -9999px;
72-
left: -9999px;
7371
height: 1px;
7472
width: 1px;
7573
overflow: hidden;
76-
clip: rect(1px 1px 1px 1px);
7774
clip: rect(1px,1px,1px,1px);
7875
}
7976

@@ -374,11 +371,8 @@ div.ui-mobile-viewport {
374371
.ui-hide-label .ui-rangeslider label,
375372
.ui-hidden-accessible {
376373
position: absolute !important;
377-
top: -9999px;
378-
left: -9999px;
379374
height: 1px;
380375
width: 1px;
381376
overflow: hidden;
382-
clip: rect(1px 1px 1px 1px);
383377
clip: rect(1px,1px,1px,1px);
384378
}

css/structure/jquery.mobile.fixedToolbar.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,9 @@
5252
.ui-page-header-fullscreen .ui-fixed-hidden,
5353
.ui-page-footer-fullscreen .ui-fixed-hidden {
5454
position: absolute !important;
55-
top: -9999px;
56-
left: -9999px;
5755
height: 1px;
5856
width: 1px;
5957
overflow: hidden;
60-
clip: rect(1px 1px 1px 1px);
6158
clip: rect(1px,1px,1px,1px);
6259
}
6360
.ui-header-fixed .ui-btn,

css/structure/jquery.mobile.forms.checkboxradio.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@
4444
}
4545
.ui-checkbox input:disabled,
4646
.ui-radio input:disabled {
47-
top: -9999px;
48-
left: -9999px;
47+
position: absolute !important;
4948
height: 1px;
5049
width: 1px;
5150
overflow: hidden;
52-
clip: rect(1px 1px 1px 1px);
5351
clip: rect(1px,1px,1px,1px);
5452
}

css/structure/jquery.mobile.forms.rangeslider.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,9 @@ html >/**/body .ui-rangeslider.ui-mini .ui-rangeslider-sliders .ui-slider-track:
5050
/* Hide the second label (the first is moved outside the div) */
5151
div.ui-rangeslider label {
5252
position: absolute !important;
53-
top: -9999px;
54-
left: -9999px;
5553
height: 1px;
5654
width: 1px;
5755
overflow: hidden;
58-
clip: rect(1px 1px 1px 1px);
5956
clip: rect(1px,1px,1px,1px);
6057
}
6158
.ui-field-contain .ui-rangeslider input.ui-slider-input,

css/structure/jquery.mobile.forms.select.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
}
66
.ui-select > select {
77
position: absolute !important;
8-
top: -9999px;
9-
left: -9999px;
108
height: 1px;
119
width: 1px;
1210
overflow: hidden;
13-
clip: rect(1px 1px 1px 1px);
1411
clip: rect(1px,1px,1px,1px);
1512
}
1613
.ui-select .ui-btn {

css/structure/jquery.mobile.forms.slider.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,9 @@ input.ui-slider-input {
7575
}
7676
select.ui-slider-switch {
7777
position: absolute !important;
78-
top: -9999px;
79-
left: -9999px;
8078
height: 1px;
8179
width: 1px;
8280
overflow: hidden;
83-
clip: rect(1px 1px 1px 1px);
8481
clip: rect(1px,1px,1px,1px);
8582
}
8683
div.ui-slider-switch {

css/structure/jquery.mobile.popup.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@
3737
}
3838
.ui-popup-hidden {
3939
position: absolute !important;
40-
top: -9999px;
41-
left: -9999px;
4240
height: 1px;
4341
width: 1px;
4442
overflow: hidden;
45-
clip: rect(1px 1px 1px 1px);
4643
clip: rect(1px,1px,1px,1px);
4744
visibility: hidden;
4845
}

0 commit comments

Comments
 (0)