Layout 2020: Remove the floats preference

Enable floats always. It doesn't make sense to have this preference as
it's a basic feature of an experimental layout engine.
This commit is contained in:
Martin Robinson 2023-06-06 10:22:33 +02:00
parent 9260683b5f
commit ae819d690e
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8
135 changed files with 37 additions and 315 deletions

View file

@ -445,9 +445,6 @@ mod gen {
flexbox: {
enabled: bool,
},
floats: {
enabled: bool,
},
#[serde(default = "default_layout_threads")]
threads: i64,
viewport: {

View file

@ -67,7 +67,6 @@ ${helpers.predefined_type(
"computed::Float::None",
engines="gecko servo-2013 servo-2020",
initial_specified_value="specified::Float::None",
servo_2020_pref="layout.floats.enabled",
spec="https://drafts.csswg.org/css-box/#propdef-float",
animation_value_type="discrete",
servo_restyle_damage="rebuild_and_reflow",
@ -79,7 +78,6 @@ ${helpers.predefined_type(
"Clear",
"computed::Clear::None",
engines="gecko servo-2013 servo-2020",
servo_2020_pref="layout.floats.enabled",
animation_value_type="discrete",
gecko_ffi_name="mBreakType",
spec="https://drafts.csswg.org/css-box/#propdef-clear",

View file

@ -100,7 +100,6 @@
"layout.animations.test.enabled": false,
"layout.columns.enabled": false,
"layout.flexbox.enabled": false,
"layout.floats.enabled": false,
"layout.threads": 3,
"layout.viewport.enabled": false,
"layout.writing-mode.enabled": false,

View file

@ -1 +0,0 @@
prefs: ["layout.floats.enabled:true"]

View file

@ -1,2 +0,0 @@
[border-color-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-color-006.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-color-shorthand-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-007.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-008.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-013.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-018.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-023.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-024.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-031.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-036.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-041.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-046.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-right-color-175.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-width-shorthand-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-width-shorthand-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-width-shorthand-003.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[border-width-shorthand-004.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[c5512-brdr-rw-001.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[c5514-brdr-lw-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[float-root.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-in-table-caption-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-placement-005.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-placement-vertical-001a.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-rule3-outside-right-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-rule7-outside-left-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[floats-rule7-outside-right-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[inline-formatting-context-004.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[inline-formatting-context-005.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[inline-formatting-context-006.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[margin-applies-to-009.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[margin-applies-to-012.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[margin-applies-to-013.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[margin-applies-to-014.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[margin-applies-to-015.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[padding-applies-to-007.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[padding-applies-to-009.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[padding-applies-to-012.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[padding-applies-to-013.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[padding-applies-to-014.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[padding-applies-to-015.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[block-in-inline-margins-004.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[width-non-replaced-inline-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[abspos-009.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-processing-048.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[background-gradient-subpixel-fills-area.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[background-repeat-round-roundup.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[background-repeat-round.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[background-repeat-space.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[box-shadow-overlapping-002.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[inline-opacity-float-child.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flex-abspos-staticpos-justify-self-001.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flex-abspos-staticpos-margin-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-aspect-ratio-img-column-006.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-aspect-ratio-img-column-007.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-aspect-ratio-img-column-009.html]
expected: FAIL

View file

@ -28,3 +28,6 @@
[.flex-item 11]
expected: FAIL
[.flex-item 1]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-flow-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-flow-004.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-grow-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[multi-line-wrap-reverse-row-reverse.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[multi-line-wrap-with-row-reverse.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flex-vertical-align-effect.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-break-request-horiz-002a.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-break-request-horiz-002b.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-iframe-intrinsic-size-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-overflow-horiz-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-sizing-horiz-001.xhtml]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-writing-mode-007.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flexbox-writing-mode-016.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[flexbox_fbfc.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_flex-formatting-interop.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_flex-natural-variable-auto-basis.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_flex-natural-variable-zero-basis.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_generated.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_item-bottom-float.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_stf-float.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexible-order.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[order-with-row-reverse.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[overflow-area-001.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[overflow-area-002.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[table-with-float-paint.html]
expected: FAIL

View file

@ -1,25 +1,4 @@
[float-interpolation.html]
[CSS Transitions: property <float> from [left\] to [right\] at (-0.3) should be [left\]]
expected: FAIL
[CSS Transitions: property <float> from [left\] to [right\] at (0) should be [left\]]
expected: FAIL
[CSS Transitions: property <float> from [left\] to [right\] at (0.3) should be [left\]]
expected: FAIL
[CSS Transitions: property <float> from [left\] to [right\] at (0.5) should be [right\]]
expected: FAIL
[CSS Transitions: property <float> from [left\] to [right\] at (0.6) should be [right\]]
expected: FAIL
[CSS Transitions: property <float> from [left\] to [right\] at (1) should be [right\]]
expected: FAIL
[CSS Transitions: property <float> from [left\] to [right\] at (1.5) should be [right\]]
expected: FAIL
[CSS Transitions with transition: all: property <float> from [left\] to [right\] at (-0.3) should be [right\]]
expected: FAIL
@ -29,39 +8,6 @@
[CSS Transitions with transition: all: property <float> from [left\] to [right\] at (0.3) should be [right\]]
expected: FAIL
[CSS Transitions with transition: all: property <float> from [left\] to [right\] at (0.5) should be [right\]]
expected: FAIL
[CSS Transitions with transition: all: property <float> from [left\] to [right\] at (0.6) should be [right\]]
expected: FAIL
[CSS Transitions with transition: all: property <float> from [left\] to [right\] at (1) should be [right\]]
expected: FAIL
[CSS Transitions with transition: all: property <float> from [left\] to [right\] at (1.5) should be [right\]]
expected: FAIL
[CSS Animations: property <float> from [left\] to [right\] at (-0.3) should be [left\]]
expected: FAIL
[CSS Animations: property <float> from [left\] to [right\] at (0) should be [left\]]
expected: FAIL
[CSS Animations: property <float> from [left\] to [right\] at (0.3) should be [left\]]
expected: FAIL
[CSS Animations: property <float> from [left\] to [right\] at (0.5) should be [right\]]
expected: FAIL
[CSS Animations: property <float> from [left\] to [right\] at (0.6) should be [right\]]
expected: FAIL
[CSS Animations: property <float> from [left\] to [right\] at (1) should be [right\]]
expected: FAIL
[CSS Animations: property <float> from [left\] to [right\] at (1.5) should be [right\]]
expected: FAIL
[Web Animations: property <float> from [left\] to [right\] at (-0.3) should be [left\]]
expected: FAIL

View file

@ -0,0 +1,2 @@
[logical-values-float-clear-1.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[logical-values-float-clear-2.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[logical-values-float-clear-reftest.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[position-absolute-chrome-bug-002.html]
[#target position is recalculated correctly.]
expected: FAIL

View file

@ -1,2 +0,0 @@
[transform-origin-013.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[outline-003.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[MediaQueryListEvent.html]
[constructor of "change" event]
expected: FAIL

View file

@ -5,9 +5,6 @@
[features - lexicographical sorting]
expected: FAIL
[one rule]
expected: FAIL
[type - omission of all]
expected: FAIL
@ -17,8 +14,5 @@
[type - inclusion of negated all]
expected: FAIL
[many rules]
expected: FAIL
[features - no lexicographical sorting]
expected: FAIL

View file

@ -161,21 +161,6 @@
[caption-side: inherit]
expected: FAIL
[clear: none]
expected: FAIL
[clear: left]
expected: FAIL
[clear: right]
expected: FAIL
[clear: both]
expected: FAIL
[clear: inherit]
expected: FAIL
[content: counter(par-num)]
expected: FAIL
@ -230,18 +215,6 @@
[empty-cells: inherit]
expected: FAIL
[float: left]
expected: FAIL
[float: right]
expected: FAIL
[float: none]
expected: FAIL
[float: inherit]
expected: FAIL
[font-variant: normal]
expected: FAIL

View file

@ -1,2 +0,0 @@
[filtered-inline-applies-to-float.html]
expected: FAIL

View file

@ -1 +0,0 @@
prefs: ["layout.floats.enabled:true"]

View file

@ -1,2 +0,0 @@
[absolute_block_format_ctx.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[absolute_hypothetical_float.html]
expected: FAIL

Some files were not shown because too many files have changed in this diff Show more