RESOLVED FIXED 191224
[LFC][BFC] Resolve percentage height values.
https://bugs.webkit.org/show_bug.cgi?id=191224
Summary [LFC][BFC] Resolve percentage height values.
alan
Reported 2018-11-02 21:25:20 PDT
10.5 Content height: the 'height' property The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the used height is calculated as if 'auto' was specified. https://www.w3.org/TR/CSS22/visudet.html#propdef-height
Attachments
Patch (14.76 KB, patch)
2018-11-02 21:39 PDT, alan
koivisto: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews201 for win-future (12.75 MB, application/zip)
2018-11-02 23:18 PDT, EWS Watchlist
no flags
alan
Comment 1 2018-11-02 21:39:26 PDT
EWS Watchlist
Comment 2 2018-11-02 23:17:54 PDT
Comment on attachment 353761 [details] Patch Attachment 353761 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/9841484 New failing tests: fast/block/basic/height-percentage-simple.html
EWS Watchlist
Comment 3 2018-11-02 23:18:06 PDT
Created attachment 353767 [details] Archive of layout-test-results from ews201 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews201 Port: win-future Platform: CYGWIN_NT-6.1-2.10.0-0.325-5-3-x86_64-64bit
Antti Koivisto
Comment 4 2018-11-03 07:26:06 PDT
Comment on attachment 353761 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=353761&action=review > Source/WebCore/layout/FormattingContextGeometry.cpp:60 > +enum class HeightType { Min, Max }; How about adding type Logical and using this without optional?
alan
Comment 5 2018-11-03 07:44:42 PDT
Comment on attachment 353761 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=353761&action=review >> Source/WebCore/layout/FormattingContextGeometry.cpp:60 >> +enum class HeightType { Min, Max }; > > How about adding type Logical and using this without optional? I had it exactly like that in my original patch but I couldn't come up with a great name for the 3rd type (I called it Normal, since Min and Max are also logical)
alan
Comment 6 2018-11-03 10:57:55 PDT
Radar WebKit Bug Importer
Comment 7 2018-11-03 10:58:43 PDT
Note You need to log in before you can comment on or make changes to this bug.