Skip to content

Commit 7facc78

Browse files
committed
Bug 1610238 [wpt PR 21256] - Relax feature-detection for <menclose>, a=testonly
Automatic update from web-platform-tests Relax feature-detection for <menclose> (#21256) Discussion is still open: w3c/mathml#105 so let's only check some minimal <mrow> support. Igalia does not plan to implement this element in Chromium for now so making detection too strict is causing test failures. -- wpt-commits: ee2b3c3d8740dcfccf6d6a0c5a371335dd198654 wpt-pr: 21256 UltraBlame original commit: 636f59cb8640669c6417462eae91bda7fbd29029
1 parent 2b92879 commit 7facc78

File tree

1 file changed

+45
-206
lines changed

1 file changed

+45
-206
lines changed

testing/web-platform/tests/mathml/support/feature-detection.js

+45-206
Original file line numberDiff line numberDiff line change
@@ -134,239 +134,78 @@ function
134134
(
135135
)
136136
{
137-
if
138-
(
139-
!
140-
this
141-
.
142-
hasOwnProperty
143-
(
144-
"
145-
_has_menclose
146-
"
147-
)
148-
)
149-
{
150-
document
151-
.
152-
body
153-
.
154-
insertAdjacentHTML
155-
(
156-
"
157-
beforeend
158-
"
159-
"
160-
<
161-
math
162-
>
163-
\
164-
<
165-
mrow
166-
style
167-
=
168-
'
169-
font
170-
-
171-
size
172-
:
173-
20px
174-
!
175-
important
176-
'
177-
>
178-
\
179-
<
180-
mrow
181-
>
182-
\
183-
<
184-
mrow
185-
>
186-
\
187-
<
188-
mrow
189-
>
190-
\
191-
<
192-
mtext
193-
>
194-
A
195-
<
196137
/
197-
mtext
198-
>
199-
\
200-
<
201138
/
202-
mrow
203-
>
204-
\
139+
Just
140+
check
141+
whether
205142
<
206-
/
207143
mrow
208144
>
209-
\
210-
<
145+
is
146+
supported
147+
because
148+
discussion
149+
on
150+
this
151+
is
211152
/
212-
mrow
213-
>
214-
\
215-
<
216153
/
217-
mrow
218-
>
219-
\
220-
<
221-
menclose
222-
notation
223-
=
224-
'
225-
box
226-
'
227-
style
228-
=
229-
'
230-
font
231-
-
232-
size
154+
still
155+
open
156+
(
157+
https
233158
:
234-
20px
235-
!
236-
important
237-
'
238-
>
239-
\
240-
<
241-
menclose
242-
notation
243-
=
244-
'
245-
box
246-
'
247-
>
248-
\
249-
<
250-
menclose
251-
notation
252-
=
253-
'
254-
box
255-
'
256-
>
257-
\
258-
<
259-
menclose
260-
notation
261-
=
262-
'
263-
box
264-
'
265-
>
266-
\
267-
<
268-
mtext
269-
>
270-
A
271-
<
272159
/
273-
mtext
274-
>
275-
\
276-
<
277160
/
278-
menclose
279-
>
280-
\
281-
<
161+
github
162+
.
163+
com
282164
/
283-
menclose
284-
>
285-
\
286-
<
165+
mathml
166+
-
167+
refresh
287168
/
288-
menclose
289-
>
290-
\
291-
<
169+
mathml
292170
/
293-
menclose
294-
>
295-
\
296-
<
171+
issues
297172
/
298-
math
299-
>
300-
"
173+
105
301174
)
302-
;
303-
var
304-
math
305-
=
306-
document
307-
.
308-
body
309-
.
310-
lastElementChild
311-
;
312175
/
313176
/
314-
The
315-
boxes
316-
will
317-
make
318-
menclose
319-
wider
320-
than
177+
and
178+
it
179+
would
180+
have
181+
to
182+
behave
183+
at
184+
least
185+
like
186+
an
321187
mrow
188+
even
322189
if
190+
it
191+
becomes
192+
/
193+
/
194+
an
195+
unknown
196+
element
197+
at
323198
the
324-
former
325-
is
326-
supported
199+
end
327200
.
201+
return
328202
this
329203
.
330-
_has_menclose
331-
=
332-
math
333-
.
334-
lastElementChild
335-
.
336-
getBoundingClientRect
337-
(
338-
)
339-
.
340-
width
341-
-
342-
math
343-
.
344-
firstElementChild
345-
.
346-
getBoundingClientRect
347-
(
348-
)
349-
.
350-
width
351-
>
352-
5
353-
;
354-
document
355-
.
356-
body
357-
.
358-
removeChild
204+
has_mrow
359205
(
360-
math
361206
)
362207
;
363208
}
364-
return
365-
this
366-
.
367-
_has_menclose
368-
;
369-
}
370209
"
371210
has_merror
372211
"

0 commit comments

Comments
 (0)