mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
script: Only enforce rowSpan >= 1 in actual quirks mode (#37820)
We were also enforcing that in limited-quirks mode, but no other browser does that. In fact, Blink and WebKit don't have this quirk at all, so we should consider removing it too, but for now restrict it to quirks mode like Firefox. Testing: adding new tests Part of #37813 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
4cbadde144
commit
95d9d3a412
4 changed files with 26 additions and 3 deletions
|
@ -210,7 +210,7 @@ impl VirtualMethods for HTMLTableCellElement {
|
|||
// > the range [0, 65534], and its default value is 1.
|
||||
// Note that rowspan = 0 is not supported in quirks mode.
|
||||
let document = self.upcast::<Node>().owner_doc();
|
||||
if document.quirks_mode() != QuirksMode::NoQuirks {
|
||||
if document.quirks_mode() == QuirksMode::Quirks {
|
||||
*value = (*value).clamp(1, 65534);
|
||||
} else {
|
||||
*value = (*value).clamp(0, 65534);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue