ladybird/Tests/LibWeb/Text/input/css/border-image-non-fill-keyword.html
Callum Law a8fc15c6b3 LibWeb: Don't fail on non-fill keyword parsing <border-image-slice>
Previously if we encountered a keyword other than `fill` when parsing
`<border-image-slice` we would return a nullptr.

This could cause issues when we parse `<border-image-slice>` as part of
parsing `border-image`, for example `border-image: 100% none` would fail
as we would try parse `none` as part of the `<border-image-slice>`
instead of `<border-image-source>`.

This change makes it so that we don't consume the token and leave it to
be parsed as part of the next section of the grammar.
2025-07-09 16:59:22 +01:00

12 lines
227 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<style>
#foo {
border-image: 100% none;
}
</style>
<script>
test(() => {
println(document.styleSheets[0].cssRules[0].cssText);
});
</script>