mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
Previously, attempting to get the computed value for a grid-template-rows or grid-template-columns property would cause a crash for inline elements.
21 lines
619 B
HTML
21 lines
619 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const elementsToTest = [
|
|
"br",
|
|
"span",
|
|
];
|
|
for (const elementName of elementsToTest) {
|
|
const element = document.createElement(elementName);
|
|
document.body.appendChild(element);
|
|
const style = getComputedStyle(element);
|
|
let values = [];
|
|
for (const propertyName of style) {
|
|
values.push(style[propertyName]);
|
|
}
|
|
element.remove();
|
|
}
|
|
println("PASS (didn't crash)");
|
|
});
|
|
</script>
|