Skip to content

Commit ef12292

Browse files
committed
Update
1 parent b9ad7ae commit ef12292

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

normalize.css

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ canvas,
2121
video {
2222
display: inline-block;
2323
*display: inline;
24+
_display: expression(this.controls ? 'inline' : 'none');
2425
*zoom: 1;
2526
}
2627

@@ -33,14 +34,13 @@ video {
3334
* Improves page center consistency regardless of content height in all browsers
3435
* 3.
3536
* Remove text size adjust tap color for <html> element
36-
* Fixes text size and tap color displayed oddly in iOS
37+
* Fixes tap color displayed oddly in iOS
3738
*/
3839

3940
html {
4041
cursor: default; /* 1 */
4142
overflow-y: scroll; /* 2 */
4243
-webkit-tap-highlight-color: transparent; /* 3 */
43-
-webkit-text-size-adjust: none; /* 3 */
4444
}
4545

4646
/*
@@ -101,14 +101,18 @@ mark {
101101

102102
/*
103103
* Redeclare monospace font family to <pre> <code> <kbd> <samp> elements
104+
* 1.
104105
* Fixes font family set oddly in C10 S5
106+
* 2.
107+
* Fixes monospace line-height overflow in iOS
105108
*/
106109

107110
pre,
108111
code,
109112
kbd,
110113
samp {
111-
font-family: monospace, sans-serif;
114+
font-family: monospace, sans-serif; /* 1 */
115+
vertical-align: top; /* 2 */
112116
}
113117

114118
/*
@@ -145,13 +149,25 @@ q:after {
145149
}
146150

147151
/*
148-
* Remove line height for <sub> <sup> elements
149-
* Fixes line height within multi-line text displayed oddly in all browsers
152+
* Define alignment for <sub> <sup> elements
153+
* Fixes alignment within multi-line text displayed oddly in all browsers
150154
*/
151155

152156
sub,
153157
sup {
158+
font-size: 75%;
154159
line-height: 0;
160+
position: relative;
161+
}
162+
163+
sup {
164+
top: 0.75em;
165+
vertical-align: top;
166+
}
167+
168+
sub {
169+
bottom: 0.75em;
170+
vertical-align: bottom;
155171
}
156172

157173
/*

0 commit comments

Comments
 (0)