mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
3968dbef77
Differential Revision: https://phabricator.services.mozilla.com/D36073 --HG-- extra : moz-landing-system : lando
28 lines
565 B
HTML
28 lines
565 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
#testElem {
|
|
border: 1px solid black;
|
|
background: yellow;
|
|
contain: layout size;
|
|
width: 300px;
|
|
}
|
|
</style>
|
|
<script>
|
|
function go() {
|
|
/* trigger an incremental reflow.
|
|
* Note: elem.style is undefined for MathML elements, so we have
|
|
* to use setAttribute().
|
|
*/
|
|
testElem.setAttribute("style", "width:150px");
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="go()">
|
|
<math>
|
|
<mtable id="testElem">Change my size</mtable>
|
|
</math>
|
|
</body>
|
|
</html>
|